arpakitlib 1.6.50__py3-none-any.whl → 1.6.51__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.
- arpakitlib/ar_fastapi_util.py +4 -4
- {arpakitlib-1.6.50.dist-info → arpakitlib-1.6.51.dist-info}/METADATA +1 -1
- {arpakitlib-1.6.50.dist-info → arpakitlib-1.6.51.dist-info}/RECORD +6 -6
- {arpakitlib-1.6.50.dist-info → arpakitlib-1.6.51.dist-info}/LICENSE +0 -0
- {arpakitlib-1.6.50.dist-info → arpakitlib-1.6.51.dist-info}/NOTICE +0 -0
- {arpakitlib-1.6.50.dist-info → arpakitlib-1.6.51.dist-info}/WHEEL +0 -0
arpakitlib/ar_fastapi_util.py
CHANGED
@@ -439,14 +439,14 @@ def get_transmitted_api_data(request: starlette.requests.Request) -> BaseTransmi
|
|
439
439
|
return request.app.state.transmitted_api_data
|
440
440
|
|
441
441
|
|
442
|
-
class
|
442
|
+
class BaseAPIAuthData(BaseModel):
|
443
443
|
model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True, from_attributes=True)
|
444
444
|
|
445
445
|
token_string: str | None = None
|
446
446
|
api_key_string: str | None = None
|
447
447
|
|
448
448
|
|
449
|
-
def
|
449
|
+
def base_api_auth(
|
450
450
|
*,
|
451
451
|
require_api_key_string: bool = False,
|
452
452
|
require_token_string: bool = False,
|
@@ -458,14 +458,14 @@ def base_need_api_auth(
|
|
458
458
|
),
|
459
459
|
api_key_string: str | None = Security(APIKeyHeader(name="apikey", auto_error=False)),
|
460
460
|
request: fastapi.Request
|
461
|
-
) ->
|
461
|
+
) -> BaseAPIAuthData:
|
462
462
|
|
463
463
|
_error_data = {
|
464
464
|
"require_api_key_string": require_api_key_string,
|
465
465
|
"require_token_string": require_token_string
|
466
466
|
}
|
467
467
|
|
468
|
-
res =
|
468
|
+
res = BaseAPIAuthData()
|
469
469
|
|
470
470
|
# api_key
|
471
471
|
|
@@ -31,7 +31,7 @@ arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css,sha256=jzPZlgJTFwSdSphk9C
|
|
31
31
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.css.map,sha256=5wq8eXMLU6Zxb45orZPL1zAsBFJReFw6GjYqGpUX3hg,262650
|
32
32
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js,sha256=ffrLZHHEQ_g84A-ul3yWa10Kk09waOAxHcQXPuZuavg,339292
|
33
33
|
arpakitlib/ar_fastapi_static/swagger-ui/swagger-ui.js.map,sha256=9UhIW7MqCOZPAz1Sl1IKfZUuhWU0p-LJqrnjjJD9Xhc,1159454
|
34
|
-
arpakitlib/ar_fastapi_util.py,sha256
|
34
|
+
arpakitlib/ar_fastapi_util.py,sha256=gyF6lulmwF7PXS85olblUPnZOzKsAeOem6sdDfFzlFQ,21179
|
35
35
|
arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyjNsjj2UhyHRbE,3674
|
36
36
|
arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
|
37
37
|
arpakitlib/ar_http_request_util.py,sha256=hMzu2yedUvwIg6gafSakDjXUEC7WH5iplDGiRW9fgPw,3322
|
@@ -59,8 +59,8 @@ arpakitlib/ar_str_util.py,sha256=xSEzmsDvRiZVaxyqFFjcgzpphktCbXg2FHcvsd1DYpA,188
|
|
59
59
|
arpakitlib/ar_type_util.py,sha256=I6jbTz7_dxR1lkhz1JfUb5ZyLLdXVhG_-hzjdgT6N6s,1932
|
60
60
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=5GMvu8paByni8buhc1vpHB7n6oXe0gPfj1LSvnyZCrQ,5307
|
61
61
|
arpakitlib/ar_zabbix_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
|
62
|
-
arpakitlib-1.6.
|
63
|
-
arpakitlib-1.6.
|
64
|
-
arpakitlib-1.6.
|
65
|
-
arpakitlib-1.6.
|
66
|
-
arpakitlib-1.6.
|
62
|
+
arpakitlib-1.6.51.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
63
|
+
arpakitlib-1.6.51.dist-info/METADATA,sha256=EbhEZvMZlyNBrFPF9anWJ2aP_2GZ7_fp26D6NmKMhjU,2656
|
64
|
+
arpakitlib-1.6.51.dist-info/NOTICE,sha256=PxM7bI06pP5flh9MDCUc2LzY3zTeunamwwPihBCLfjU,51
|
65
|
+
arpakitlib-1.6.51.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
66
|
+
arpakitlib-1.6.51.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|