maleo-enums 0.0.13__py3-none-any.whl → 0.0.15__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.
- maleo/enums/connection.py +129 -0
- {maleo_enums-0.0.13.dist-info → maleo_enums-0.0.15.dist-info}/METADATA +1 -1
- {maleo_enums-0.0.13.dist-info → maleo_enums-0.0.15.dist-info}/RECORD +6 -6
- maleo/enums/request.py +0 -74
- {maleo_enums-0.0.13.dist-info → maleo_enums-0.0.15.dist-info}/WHEEL +0 -0
- {maleo_enums-0.0.13.dist-info → maleo_enums-0.0.15.dist-info}/licenses/LICENSE +0 -0
- {maleo_enums-0.0.13.dist-info → maleo_enums-0.0.15.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
from typing import List, Optional, Sequence, TypeVar
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Scheme(StrEnum):
|
|
6
|
+
HTTP = "http"
|
|
7
|
+
HTTPS = "https"
|
|
8
|
+
WS = "ws"
|
|
9
|
+
WSS = "wss"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
SchemeT = TypeVar("SchemeT", bound=Scheme)
|
|
13
|
+
OptionalScheme = Optional[Scheme]
|
|
14
|
+
OptionalSchemeT = TypeVar("OptionalSchemeT", bound=OptionalScheme)
|
|
15
|
+
ListOfSchemes = List[Scheme]
|
|
16
|
+
OptionalListOfSchemes = Optional[ListOfSchemes]
|
|
17
|
+
SequenceOfSchemes = Sequence[Scheme]
|
|
18
|
+
OptionalSequenceOfSchemes = Optional[SequenceOfSchemes]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Method(StrEnum):
|
|
22
|
+
GET = "GET"
|
|
23
|
+
POST = "POST"
|
|
24
|
+
PATCH = "PATCH"
|
|
25
|
+
PUT = "PUT"
|
|
26
|
+
DELETE = "DELETE"
|
|
27
|
+
OPTIONS = "OPTIONS"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
MethodT = TypeVar("MethodT", bound=Method)
|
|
31
|
+
OptionalMethod = Optional[Method]
|
|
32
|
+
OptionalMethodT = TypeVar("OptionalMethodT", bound=OptionalMethod)
|
|
33
|
+
ListOfMethods = List[Method]
|
|
34
|
+
OptionalListOfMethods = Optional[ListOfMethods]
|
|
35
|
+
SequenceOfMethods = Sequence[Method]
|
|
36
|
+
OptionalSequenceOfMethods = Optional[SequenceOfMethods]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class Header(StrEnum):
|
|
40
|
+
# --- Authentication & Authorization ---
|
|
41
|
+
AUTHORIZATION = "authorization"
|
|
42
|
+
PROXY_AUTHORIZATION = "proxy-authorization"
|
|
43
|
+
WWW_AUTHENTICATE = "www-authenticate"
|
|
44
|
+
|
|
45
|
+
# --- Content & Caching ---
|
|
46
|
+
CACHE_CONTROL = "cache-control"
|
|
47
|
+
CONTENT_DISPOSITION = "content-disposition"
|
|
48
|
+
CONTENT_ENCODING = "content-encoding"
|
|
49
|
+
CONTENT_LENGTH = "content-length"
|
|
50
|
+
CONTENT_TYPE = "content-type"
|
|
51
|
+
ETAG = "etag"
|
|
52
|
+
LAST_MODIFIED = "last-modified"
|
|
53
|
+
EXPIRES = "expires"
|
|
54
|
+
VARY = "vary"
|
|
55
|
+
|
|
56
|
+
# --- Client & Request Context ---
|
|
57
|
+
ACCEPT = "accept"
|
|
58
|
+
ACCEPT_ENCODING = "accept-encoding"
|
|
59
|
+
ACCEPT_LANGUAGE = "accept-language"
|
|
60
|
+
ACCEPT_CHARSET = "accept-charset"
|
|
61
|
+
HOST = "host"
|
|
62
|
+
ORIGIN = "origin"
|
|
63
|
+
REFERER = "referer"
|
|
64
|
+
USER_AGENT = "user-agent"
|
|
65
|
+
|
|
66
|
+
# --- Range / Conditional Requests ---
|
|
67
|
+
RANGE = "range"
|
|
68
|
+
CONTENT_RANGE = "content-range"
|
|
69
|
+
IF_MATCH = "if-match"
|
|
70
|
+
IF_NONE_MATCH = "if-none-match"
|
|
71
|
+
IF_MODIFIED_SINCE = "if-modified-since"
|
|
72
|
+
IF_UNMODIFIED_SINCE = "if-unmodified-since"
|
|
73
|
+
|
|
74
|
+
# --- Correlation / Observability ---
|
|
75
|
+
X_COMPLETED_AT = "x-completed-at"
|
|
76
|
+
X_CONNECTION_ID = "x-connection-id"
|
|
77
|
+
X_DURATION = "x-duration"
|
|
78
|
+
X_EXECUTED_AT = "x-executed-at"
|
|
79
|
+
X_OPERATION_ID = "x-operation-id"
|
|
80
|
+
X_TRACE_ID = "x-trace-id"
|
|
81
|
+
X_SPAN_ID = "x-span-id"
|
|
82
|
+
|
|
83
|
+
# --- Organization / User Context ---
|
|
84
|
+
X_ORGANIZATION_ID = "x-organization-id"
|
|
85
|
+
X_USER_ID = "x-user-id"
|
|
86
|
+
|
|
87
|
+
# --- API Keys / Clients ---
|
|
88
|
+
X_API_KEY = "x-api-key"
|
|
89
|
+
X_CLIENT_ID = "x-client-id"
|
|
90
|
+
X_CLIENT_SECRET = "x-client-secret"
|
|
91
|
+
X_SIGNATURE = "x-signature"
|
|
92
|
+
|
|
93
|
+
# --- Cookies & Sessions ---
|
|
94
|
+
COOKIE = "cookie"
|
|
95
|
+
SET_COOKIE = "set-cookie"
|
|
96
|
+
|
|
97
|
+
# --- Redirects & Responses ---
|
|
98
|
+
LOCATION = "location"
|
|
99
|
+
ALLOW = "allow"
|
|
100
|
+
RETRY_AFTER = "retry-after"
|
|
101
|
+
LINK = "link"
|
|
102
|
+
|
|
103
|
+
# --- Proxy / Networking ---
|
|
104
|
+
FORWARDED = "forwarded"
|
|
105
|
+
X_FORWARDED_FOR = "x-forwarded-for"
|
|
106
|
+
X_FORWARDED_PROTO = "x-forwarded-proto"
|
|
107
|
+
X_FORWARDED_HOST = "x-forwarded-host"
|
|
108
|
+
X_FORWARDED_PORT = "x-forwarded-port"
|
|
109
|
+
X_REAL_IP = "x-real-ip"
|
|
110
|
+
|
|
111
|
+
# --- Security ---
|
|
112
|
+
STRICT_TRANSPORT_SECURITY = "strict-transport-security"
|
|
113
|
+
CONTENT_SECURITY_POLICY = "content-security-policy"
|
|
114
|
+
X_FRAME_OPTIONS = "x-frame-options"
|
|
115
|
+
X_CONTENT_TYPE_OPTIONS = "x-content-type-options"
|
|
116
|
+
REFERRER_POLICY = "referrer-policy"
|
|
117
|
+
PERMISSIONS_POLICY = "permissions-policy"
|
|
118
|
+
|
|
119
|
+
# --- Experimental / Misc ---
|
|
120
|
+
X_NEW_AUTHORIZATION = "x-new-authorization"
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
HeaderT = TypeVar("HeaderT", bound=Header)
|
|
124
|
+
OptionalHeader = Optional[Header]
|
|
125
|
+
OptionalHeaderT = TypeVar("OptionalHeaderT", bound=OptionalHeader)
|
|
126
|
+
ListOfHeaders = List[Header]
|
|
127
|
+
OptionalListOfHeaders = Optional[ListOfHeaders]
|
|
128
|
+
SequenceOfHeaders = Sequence[Header]
|
|
129
|
+
OptionalSequenceOfHeaders = Optional[SequenceOfHeaders]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
maleo/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
maleo/enums/cardinality.py,sha256=VWqMB6j8gxe5VtyUyLJIr_B0vzIRU144HuujHlujRHI,1594
|
|
3
|
+
maleo/enums/connection.py,sha256=s_cNYQuCe7mzRH1xhRxOKmJi5Jo1GiRGM7y7Y6NaH3o,3755
|
|
3
4
|
maleo/enums/environment.py,sha256=1deZOMXcrRuLc9kZTeciU0QhlGaUXbG56DSdQ40LqqQ,429
|
|
4
5
|
maleo/enums/expiration.py,sha256=Jld9-BYA0K4zTfUwdXKXmnPyi_YLA-39uamiVLNJeJw,814
|
|
5
6
|
maleo/enums/order.py,sha256=x4p5--jIcHHixdDTlXy04u_Xja7DnEFhGnxAjT6uI_0,323
|
|
6
|
-
maleo/enums/request.py,sha256=noConqVhJI0dHjQMNreAAuIX76kNhsiATosziBpd5dE,2058
|
|
7
7
|
maleo/enums/service.py,sha256=TGm4gGvZmPFSf-DSu2b1t04fxsDTIUqu4g7PyovBx18,3151
|
|
8
8
|
maleo/enums/status.py,sha256=2puZRw8fafKxyNtr5xn69UMU2jFKnAVuyJPE5KVGSxQ,644
|
|
9
|
-
maleo_enums-0.0.
|
|
10
|
-
maleo_enums-0.0.
|
|
11
|
-
maleo_enums-0.0.
|
|
12
|
-
maleo_enums-0.0.
|
|
13
|
-
maleo_enums-0.0.
|
|
9
|
+
maleo_enums-0.0.15.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
|
|
10
|
+
maleo_enums-0.0.15.dist-info/METADATA,sha256=P9BMxDLR7a6AVzibP23CuTrL02mGkOTz10IBxT5ehVM,1280
|
|
11
|
+
maleo_enums-0.0.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
maleo_enums-0.0.15.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
|
|
13
|
+
maleo_enums-0.0.15.dist-info/RECORD,,
|
maleo/enums/request.py
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
from enum import StrEnum
|
|
2
|
-
from typing import List, Optional, Sequence
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Method(StrEnum):
|
|
6
|
-
GET = "GET"
|
|
7
|
-
POST = "POST"
|
|
8
|
-
PATCH = "PATCH"
|
|
9
|
-
PUT = "PUT"
|
|
10
|
-
DELETE = "DELETE"
|
|
11
|
-
OPTIONS = "OPTIONS"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
OptionalMethod = Optional[Method]
|
|
15
|
-
ListOfMethods = List[Method]
|
|
16
|
-
OptionalListOfMethods = Optional[ListOfMethods]
|
|
17
|
-
SequenceOfMethods = Sequence[Method]
|
|
18
|
-
OptionalSequenceOfMethods = Optional[SequenceOfMethods]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class Header(StrEnum):
|
|
22
|
-
# --- Authentication & Authorization ---
|
|
23
|
-
AUTHORIZATION = "authorization"
|
|
24
|
-
PROXY_AUTHORIZATION = "proxy-authorization"
|
|
25
|
-
WWW_AUTHENTICATE = "www-authenticate"
|
|
26
|
-
|
|
27
|
-
# --- Content & Caching ---
|
|
28
|
-
CACHE_CONTROL = "cache-control"
|
|
29
|
-
CONTENT_DISPOSITION = "content-disposition"
|
|
30
|
-
CONTENT_ENCODING = "content-encoding"
|
|
31
|
-
CONTENT_LENGTH = "content-length"
|
|
32
|
-
CONTENT_TYPE = "content-type"
|
|
33
|
-
ETAG = "etag"
|
|
34
|
-
LAST_MODIFIED = "last-modified"
|
|
35
|
-
|
|
36
|
-
# --- Client & Request Context ---
|
|
37
|
-
ACCEPT = "accept"
|
|
38
|
-
ACCEPT_ENCODING = "accept-encoding"
|
|
39
|
-
ACCEPT_LANGUAGE = "accept-language"
|
|
40
|
-
HOST = "host"
|
|
41
|
-
ORIGIN = "origin"
|
|
42
|
-
REFERER = "referer"
|
|
43
|
-
USER_AGENT = "user-agent"
|
|
44
|
-
|
|
45
|
-
# --- Correlation / Observability ---
|
|
46
|
-
X_OPERATION_ID = "x-operation-id"
|
|
47
|
-
X_PROCESS_TIME = "x-process-time"
|
|
48
|
-
X_REQUEST_ID = "x-request-id"
|
|
49
|
-
X_REQUESTED_AT = "x-requested-at"
|
|
50
|
-
X_RESPONDED_AT = "x-responded-at"
|
|
51
|
-
X_TRACE_ID = "x-trace-id"
|
|
52
|
-
X_SPAN_ID = "x-span-id"
|
|
53
|
-
|
|
54
|
-
# --- Organization / User Context ---
|
|
55
|
-
X_ORGANIZATION_ID = "x-organization-id"
|
|
56
|
-
X_USER_ID = "x-user-id"
|
|
57
|
-
|
|
58
|
-
# --- API Keys / Clients ---
|
|
59
|
-
X_API_KEY = "x-api-key"
|
|
60
|
-
X_CLIENT_ID = "x-client-id"
|
|
61
|
-
X_CLIENT_SECRET = "x-client-secret"
|
|
62
|
-
X_SIGNATURE = "x-signature"
|
|
63
|
-
|
|
64
|
-
# --- Experimental / Misc ---
|
|
65
|
-
X_FORWARDED_FOR = "x-forwarded-for"
|
|
66
|
-
X_NEW_AUTHORIZATION = "x-new-authorization"
|
|
67
|
-
X_REAL_IP = "x-real-ip"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
OptionalHeader = Optional[Header]
|
|
71
|
-
ListOfHeaders = List[Header]
|
|
72
|
-
OptionalListOfHeaders = Optional[ListOfHeaders]
|
|
73
|
-
SequenceOfHeaders = Sequence[Header]
|
|
74
|
-
OptionalSequenceOfHeaders = Optional[SequenceOfHeaders]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|