maleo-enums 0.0.11__tar.gz → 0.0.15__tar.gz
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-0.0.11 → maleo_enums-0.0.15}/PKG-INFO +1 -1
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/maleo_enums.egg-info/PKG-INFO +1 -1
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/maleo_enums.egg-info/SOURCES.txt +1 -1
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/pyproject.toml +1 -1
- maleo_enums-0.0.15/src/connection.py +129 -0
- maleo_enums-0.0.11/src/request.py +0 -42
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/LICENSE +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/README.md +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/maleo_enums.egg-info/dependency_links.txt +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/maleo_enums.egg-info/requires.txt +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/maleo_enums.egg-info/top_level.txt +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/setup.cfg +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/__init__.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/cardinality.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/environment.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/expiration.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/order.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/service.py +0 -0
- {maleo_enums-0.0.11 → maleo_enums-0.0.15}/src/status.py +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,42 +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
|
-
AUTHORIZATION = "authorization"
|
|
23
|
-
CONTENT_TYPE = "content-type"
|
|
24
|
-
X_API_KEY = "x-api-key"
|
|
25
|
-
X_CLIENT_ID = "x-client-id"
|
|
26
|
-
X_CLIENT_SECRET = "x-client-secret"
|
|
27
|
-
X_NEW_AUTHORIZATION = "x-new-authorization"
|
|
28
|
-
X_OPERATION_ID = "x-operation-id"
|
|
29
|
-
X_ORGANIZATION_ID = "x-organization-id"
|
|
30
|
-
X_PROCESS_TIME = "x-process-time"
|
|
31
|
-
X_REQUEST_ID = "x-request-id"
|
|
32
|
-
X_REQUESTED_AT = "x-requested-at"
|
|
33
|
-
X_RESPONDED_AT = "x-responded-at"
|
|
34
|
-
X_SIGNATURE = "x-signature"
|
|
35
|
-
X_USER_ID = "x-user-id"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
OptionalHeader = Optional[Header]
|
|
39
|
-
ListOfHeaders = List[Header]
|
|
40
|
-
OptionalListOfHeaders = Optional[ListOfHeaders]
|
|
41
|
-
SequenceOfHeaders = Sequence[Header]
|
|
42
|
-
OptionalSequenceOfHeaders = Optional[SequenceOfHeaders]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|