square-authentication 10.0.2__py3-none-any.whl → 10.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- square_authentication/configuration.py +13 -4
- square_authentication/data/config.sample.ini +3 -0
- square_authentication/data/config.testing.sample.ini +3 -0
- {square_authentication-10.0.2.dist-info → square_authentication-10.0.4.dist-info}/METADATA +24 -31
- {square_authentication-10.0.2.dist-info → square_authentication-10.0.4.dist-info}/RECORD +7 -8
- {square_authentication-10.0.2.dist-info → square_authentication-10.0.4.dist-info}/WHEEL +1 -2
- square_authentication-10.0.2.dist-info/top_level.txt +0 -1
- {square_authentication-10.0.2.dist-info → square_authentication-10.0.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -65,6 +65,12 @@ try:
|
|
|
65
65
|
config_int_log_backup_count = int(
|
|
66
66
|
ldict_configuration["SQUARE_LOGGER"]["LOG_BACKUP_COUNT"]
|
|
67
67
|
)
|
|
68
|
+
config_formatter_choice = ldict_configuration["SQUARE_LOGGER"]["FORMATTER_CHOICE"]
|
|
69
|
+
if config_formatter_choice not in ("human_readable", "json"):
|
|
70
|
+
raise ValueError(f"Invalid formatter choice: {config_formatter_choice}")
|
|
71
|
+
config_bool_enable_redaction = eval(
|
|
72
|
+
ldict_configuration["SQUARE_LOGGER"]["ENABLE_REDACTION"]
|
|
73
|
+
)
|
|
68
74
|
# ===========================================
|
|
69
75
|
|
|
70
76
|
# ===========================================
|
|
@@ -93,6 +99,7 @@ try:
|
|
|
93
99
|
config_int_square_file_store_port = int(
|
|
94
100
|
ldict_configuration["SQUARE_FILE_STORE_HELPER"]["SQUARE_FILE_STORE_PORT"]
|
|
95
101
|
)
|
|
102
|
+
|
|
96
103
|
# ===========================================
|
|
97
104
|
|
|
98
105
|
# ===========================================
|
|
@@ -143,10 +150,12 @@ try:
|
|
|
143
150
|
|
|
144
151
|
# Initialize logger
|
|
145
152
|
global_object_square_logger = SquareLogger(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
log_file_name=config_str_log_file_name,
|
|
154
|
+
log_level=config_int_log_level,
|
|
155
|
+
log_path=config_str_log_path,
|
|
156
|
+
log_backup_count=config_int_log_backup_count,
|
|
157
|
+
formatter_choice=config_formatter_choice,
|
|
158
|
+
enable_redaction=config_bool_enable_redaction,
|
|
150
159
|
)
|
|
151
160
|
global_object_square_database_helper = SquareDatabaseHelper(
|
|
152
161
|
param_str_square_database_ip=config_str_square_database_ip,
|
|
@@ -40,6 +40,9 @@ LOG_PATH = logs
|
|
|
40
40
|
# number of backup log files to keep during rotation
|
|
41
41
|
# if backupCount is zero, rollover never occurs.
|
|
42
42
|
LOG_BACKUP_COUNT = 3
|
|
43
|
+
# json or human_readable
|
|
44
|
+
FORMATTER_CHOICE = json
|
|
45
|
+
ENABLE_REDACTION = True
|
|
43
46
|
|
|
44
47
|
[SQUARE_DATABASE_HELPER]
|
|
45
48
|
|
|
@@ -40,6 +40,9 @@ LOG_PATH = logs
|
|
|
40
40
|
# number of backup log files to keep during rotation
|
|
41
41
|
# if backupCount is zero, rollover never occurs.
|
|
42
42
|
LOG_BACKUP_COUNT = 3
|
|
43
|
+
# json or human_readable
|
|
44
|
+
FORMATTER_CHOICE = json
|
|
45
|
+
ENABLE_REDACTION = True
|
|
43
46
|
|
|
44
47
|
[SQUARE_DATABASE_HELPER]
|
|
45
48
|
|
|
@@ -1,48 +1,41 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: square_authentication
|
|
3
|
-
Version: 10.0.
|
|
3
|
+
Version: 10.0.4
|
|
4
4
|
Summary: authentication layer for my personal server.
|
|
5
|
-
|
|
6
|
-
Author: Parth Mukesh Mangtani
|
|
7
|
-
|
|
5
|
+
Project-URL: homepage, https://github.com/thepmsquare/square_authentication
|
|
6
|
+
Author-email: Parth Mukesh Mangtani <thepmsquare@gmail.com>
|
|
7
|
+
License: GPLv3
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: authentication,fastapi,server,utilities
|
|
8
10
|
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Framework :: FastAPI
|
|
9
12
|
Classifier: Intended Audience :: Developers
|
|
10
13
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
11
14
|
Classifier: Operating System :: OS Independent
|
|
12
15
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
14
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier:
|
|
16
|
-
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
18
|
-
Classifier:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Requires-Dist:
|
|
19
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
20
|
+
Classifier: Topic :: Security
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Requires-Dist: bcrypt>=4.1.2
|
|
23
|
+
Requires-Dist: cryptography>=42.0.7
|
|
22
24
|
Requires-Dist: fastapi>=0.104.1
|
|
23
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: google-auth>=2.40.3
|
|
26
|
+
Requires-Dist: httpx>=0.27.2
|
|
24
27
|
Requires-Dist: pydantic>=2.5.3
|
|
25
|
-
Requires-Dist: bcrypt>=4.1.2
|
|
26
28
|
Requires-Dist: pyjwt>=2.8.0
|
|
27
|
-
Requires-Dist: requests>=2.32.3
|
|
28
|
-
Requires-Dist: cryptography>=42.0.7
|
|
29
|
-
Requires-Dist: square_commons>=3.0.0
|
|
30
|
-
Requires-Dist: square_logger>=2.0.0
|
|
31
|
-
Requires-Dist: square_database_helper>=2.6.1
|
|
32
|
-
Requires-Dist: square_database_structure>=2.6.0
|
|
33
|
-
Requires-Dist: square_file_store_helper>=3.0.0
|
|
34
29
|
Requires-Dist: pytest>=8.0.0
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Dynamic: requires-dist
|
|
45
|
-
Dynamic: summary
|
|
30
|
+
Requires-Dist: python-multipart>=0.0.6
|
|
31
|
+
Requires-Dist: requests>=2.32.3
|
|
32
|
+
Requires-Dist: square-commons>=3.0.0
|
|
33
|
+
Requires-Dist: square-database-helper>=2.6.1
|
|
34
|
+
Requires-Dist: square-database-structure>=2.6.0
|
|
35
|
+
Requires-Dist: square-file-store-helper>=3.0.0
|
|
36
|
+
Requires-Dist: square-logger>=3.0.0
|
|
37
|
+
Requires-Dist: uvicorn>=0.24.0.post1
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
46
39
|
|
|
47
40
|
# square_authentication
|
|
48
41
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
square_authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
square_authentication/configuration.py,sha256=
|
|
2
|
+
square_authentication/configuration.py,sha256=kJpX1ftTBpWuOvZ2rmxJKOwjvj2tDj7SZVns6LjeS2Y,6882
|
|
3
3
|
square_authentication/main.py,sha256=nhkv8U4E9b7VIH7Aaj8iMWIwA4VIL-vzRXjZaYEFWPw,1755
|
|
4
4
|
square_authentication/messages.py,sha256=yDyr3SpBKg5KHb7dUDIUnpuz21EEAg3dnoaLnvX0IcU,2812
|
|
5
|
-
square_authentication/data/config.sample.ini,sha256=
|
|
6
|
-
square_authentication/data/config.testing.sample.ini,sha256=
|
|
5
|
+
square_authentication/data/config.sample.ini,sha256=2m-c4MwL9E6jo4ASWhZYdPXnePsTNVtpcGY6LFU1Nwo,1730
|
|
6
|
+
square_authentication/data/config.testing.sample.ini,sha256=XYkTo4NjC4P4VbJjpPfo32TyRoGRgbzMhlyI8UrEwEg,1777
|
|
7
7
|
square_authentication/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
square_authentication/pydantic_models/core.py,sha256=7H1N1y8VpPA_-NrudX8j0YG_YzpHnPXZuwtGaKRPSy0,1268
|
|
9
9
|
square_authentication/pydantic_models/profile.py,sha256=tq7RJMfbMBMi7FaRQksWJR3Iucr2l8P2ziKgQvV4owg,110
|
|
@@ -19,8 +19,7 @@ square_authentication/utils/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
|
19
19
|
square_authentication/utils/routes/core.py,sha256=4xvPPSHFm564EJoitKjJWmQOKFFwXkncaA2ypzV--UM,133487
|
|
20
20
|
square_authentication/utils/routes/profile.py,sha256=twX0vjpv6Jq1o1g36s4WTDwOU44jmDTES8BK32cRfag,26346
|
|
21
21
|
square_authentication/utils/routes/utility.py,sha256=DsppWVXQtlsGXidfbnHPT4GCVSMdQ7P4gvFFF7lhuKk,1683
|
|
22
|
-
square_authentication-10.0.
|
|
23
|
-
square_authentication-10.0.
|
|
24
|
-
square_authentication-10.0.
|
|
25
|
-
square_authentication-10.0.
|
|
26
|
-
square_authentication-10.0.2.dist-info/RECORD,,
|
|
22
|
+
square_authentication-10.0.4.dist-info/METADATA,sha256=fs2jARib5fwDNt6DHRNqIMVAJZJ7IHHJ17rzbMbB0Z8,1982
|
|
23
|
+
square_authentication-10.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
24
|
+
square_authentication-10.0.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
25
|
+
square_authentication-10.0.4.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
square_authentication
|
{square_authentication-10.0.2.dist-info → square_authentication-10.0.4.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|