sotkalib 0.0.5.post4__py3-none-any.whl → 0.0.6.post1__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.
sotkalib/http/client_session.py
CHANGED
|
@@ -177,6 +177,24 @@ class ClientSettings(BaseModel):
|
|
|
177
177
|
session_kwargs: dict[str, Any] = Field(default_factory=dict)
|
|
178
178
|
use_cookies_from_response: bool = Field(default=False)
|
|
179
179
|
|
|
180
|
+
def with_(self, **kws) -> Self:
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
apply kws to settings
|
|
184
|
+
|
|
185
|
+
'.' is a separator so you can access underlying status_settings and exception_settings
|
|
186
|
+
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
for k, v in kws.items():
|
|
190
|
+
if "." in k:
|
|
191
|
+
pk, ck = k.split(".")
|
|
192
|
+
setattr(self, pk, setattr(getattr(self, pk), ck, v))
|
|
193
|
+
|
|
194
|
+
setattr(self, k, v)
|
|
195
|
+
|
|
196
|
+
return self
|
|
197
|
+
|
|
180
198
|
|
|
181
199
|
def _make_ssl_context(disable_tls13: bool = False) -> ssl.SSLContext:
|
|
182
200
|
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
|
|
@@ -11,7 +11,7 @@ sotkalib/exceptions/handlers/__init__.py,sha256=Pz1akT2x3SaRsPezNPYnCoTcejxy4n4_
|
|
|
11
11
|
sotkalib/exceptions/handlers/args_incl_error.py,sha256=rYiBximsXVw1YDUBbdsqeqsfTWxshyX4EdISXWYkPDE,533
|
|
12
12
|
sotkalib/exceptions/handlers/core.py,sha256=5fhusoxBhUz59TaVWobplBvD-sbkZKBnmmu-fcSyRk4,836
|
|
13
13
|
sotkalib/http/__init__.py,sha256=xi4qStyHRgLufX_3ziSL5_-hDlbVLzA1Eg8JtjfHMz8,421
|
|
14
|
-
sotkalib/http/client_session.py,sha256=
|
|
14
|
+
sotkalib/http/client_session.py,sha256=TOi_BwyYVgrvo4dmWzp6bcLwYyITV9C5ODx18uYTG_8,12757
|
|
15
15
|
sotkalib/log/__init__.py,sha256=xrBx--c8QU5xkb3_n61LuqF8ySUaxlQkHCxHyH_D8aE,58
|
|
16
16
|
sotkalib/log/factory.py,sha256=BM8gTHoITCsS4b9JNGST4czpDql5mVTIPsESutO2OGQ,214
|
|
17
17
|
sotkalib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -20,6 +20,6 @@ sotkalib/redis/client.py,sha256=W13VOlPtEb9HuDomQ9Uz7Fh3iq94mBWX6EXOeRRYtiQ,1137
|
|
|
20
20
|
sotkalib/redis/lock.py,sha256=nEZjIyXmgq3vH-Urs8qXC_N8lmXNho00SaTZ7wJIEIo,2528
|
|
21
21
|
sotkalib/sqla/__init__.py,sha256=n-I_hoRS-N7XN02yYCTtw6Dh4BBSQRmolS19tEB2KMM,87
|
|
22
22
|
sotkalib/sqla/db.py,sha256=6ZckKQ8kmRlYrwCAzKidc_JNPwqp38tSGEy3XMGnv08,3376
|
|
23
|
-
sotkalib-0.0.
|
|
24
|
-
sotkalib-0.0.
|
|
25
|
-
sotkalib-0.0.
|
|
23
|
+
sotkalib-0.0.6.post1.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
|
|
24
|
+
sotkalib-0.0.6.post1.dist-info/METADATA,sha256=2_4eonP0GVU1z9EAdmrzG_YM-lSeWuc6n41bcKYUd9U,392
|
|
25
|
+
sotkalib-0.0.6.post1.dist-info/RECORD,,
|
|
File without changes
|