python3-commons 0.21.2__tar.gz → 0.22.4__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.
- {python3_commons-0.21.2/src/python3_commons.egg-info → python3_commons-0.22.4}/PKG-INFO +2 -2
- {python3_commons-0.21.2 → python3_commons-0.22.4}/pyproject.toml +1 -1
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/__init__.py +5 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4/src/python3_commons.egg-info}/PKG-INFO +2 -2
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/requires.txt +1 -1
- {python3_commons-0.21.2 → python3_commons-0.22.4}/uv.lock +10 -10
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.coveragerc +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.devcontainer/Dockerfile +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.devcontainer/devcontainer.json +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.devcontainer/docker-compose.yml +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.env_template +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.github/workflows/checks.yml +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.github/workflows/python-publish.yaml +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.github/workflows/release-on-tag-push.yml +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.gitignore +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.pre-commit-config.yaml +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/.python-version +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/AUTHORS.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/CHANGELOG.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/LICENSE +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/README.md +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/README.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/Makefile +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/_static/.gitignore +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/authors.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/changelog.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/conf.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/index.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/docs/license.rst +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/setup.cfg +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/api_client.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/async_functools.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/audit.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/auth.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/cache.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/conf.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/helpers.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/models/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/models/auth.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/models/common.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/models/rbac.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/db/models/users.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/exceptions.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/fs.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/generators.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/helpers.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/log/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/log/filters.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/log/formatters.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/object_storage.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/permissions.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/common.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/json.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/msgpack.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/msgspec.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/soap_client.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/SOURCES.txt +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/dependency_links.txt +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/top_level.txt +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/integration/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/integration/conftest.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/integration/test_auth.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/integration/test_cache.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/integration/test_osc.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/conftest.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/db/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/db/test_async_session_manager.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/log/__init__.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/log/test_formatters.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/test_async_functools.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/test_audit.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/test_helpers.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/test_msgpack.py +0 -0
- {python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/test_msgspec.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-commons
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.4
|
|
4
4
|
Summary: Re-usable Python3 code
|
|
5
5
|
Author-email: Oleg Korsak <kamikaze.is.waiting.you@gmail.com>
|
|
6
6
|
License-Expression: GPL-3.0
|
|
@@ -39,7 +39,7 @@ Requires-Dist: asyncpg~=0.31.0; extra == "database"
|
|
|
39
39
|
Requires-Dist: SQLAlchemy[asyncio]~=2.0.50; extra == "database"
|
|
40
40
|
Provides-Extra: object-storage
|
|
41
41
|
Requires-Dist: aiobotocore~=3.7.0; extra == "object-storage"
|
|
42
|
-
Requires-Dist: object-storage-client~=0.0.
|
|
42
|
+
Requires-Dist: object-storage-client~=0.0.37; extra == "object-storage"
|
|
43
43
|
Provides-Extra: soap-client
|
|
44
44
|
Requires-Dist: aiohttp[speedups]<3.15.0,>=3.14.1; extra == "soap-client"
|
|
45
45
|
Requires-Dist: certifi~=2026.5.20; extra == "soap-client"
|
|
@@ -172,6 +172,11 @@ class AsyncSessionManager:
|
|
|
172
172
|
# handler for the duration of pool_timeout.
|
|
173
173
|
async with asyncio.timeout(self.pool_acquire_timeout):
|
|
174
174
|
await session.connection()
|
|
175
|
+
# session.connection() autobegins a transaction. Roll it
|
|
176
|
+
# back so the session is returned to the caller in a clean
|
|
177
|
+
# state; otherwise an explicit session.begin() would fail
|
|
178
|
+
# with "a transaction is already begun on this Session".
|
|
179
|
+
await session.rollback()
|
|
175
180
|
|
|
176
181
|
session_acquired = True
|
|
177
182
|
elapsed = time.monotonic() - t0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-commons
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.4
|
|
4
4
|
Summary: Re-usable Python3 code
|
|
5
5
|
Author-email: Oleg Korsak <kamikaze.is.waiting.you@gmail.com>
|
|
6
6
|
License-Expression: GPL-3.0
|
|
@@ -39,7 +39,7 @@ Requires-Dist: asyncpg~=0.31.0; extra == "database"
|
|
|
39
39
|
Requires-Dist: SQLAlchemy[asyncio]~=2.0.50; extra == "database"
|
|
40
40
|
Provides-Extra: object-storage
|
|
41
41
|
Requires-Dist: aiobotocore~=3.7.0; extra == "object-storage"
|
|
42
|
-
Requires-Dist: object-storage-client~=0.0.
|
|
42
|
+
Requires-Dist: object-storage-client~=0.0.37; extra == "object-storage"
|
|
43
43
|
Provides-Extra: soap-client
|
|
44
44
|
Requires-Dist: aiohttp[speedups]<3.15.0,>=3.14.1; extra == "soap-client"
|
|
45
45
|
Requires-Dist: certifi~=2026.5.20; extra == "soap-client"
|
|
@@ -138,14 +138,14 @@ wheels = [
|
|
|
138
138
|
|
|
139
139
|
[[package]]
|
|
140
140
|
name = "anyio"
|
|
141
|
-
version = "4.
|
|
141
|
+
version = "4.14.0"
|
|
142
142
|
source = { registry = "https://pypi.org/simple" }
|
|
143
143
|
dependencies = [
|
|
144
144
|
{ name = "idna" },
|
|
145
145
|
]
|
|
146
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
146
|
+
sdist = { url = "https://files.pythonhosted.org/packages/1c/b5/001890774a9552aff22502b8da382593109ce0c95314abaebbb116567545/anyio-4.14.0.tar.gz", hash = "sha256:b47c1f9ccf73e67021df785332508f99379c68fa7d0684e8e3492cb1d4b23f89", size = 253586, upload-time = "2026-06-15T22:00:49.021Z" }
|
|
147
147
|
wheels = [
|
|
148
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
148
|
+
{ url = "https://files.pythonhosted.org/packages/ba/16/9826f089383c593cdfc4a6e5aca94d9e91ae1692c57af82c3b2aa5e810f7/anyio-4.14.0-py3-none-any.whl", hash = "sha256:dd9b7a2a9799ed6552fde617b2c5df02b7fdd7d88392fc48101e51bae46164d9", size = 123506, upload-time = "2026-06-15T22:00:47.595Z" },
|
|
149
149
|
]
|
|
150
150
|
|
|
151
151
|
[[package]]
|
|
@@ -728,14 +728,14 @@ wheels = [
|
|
|
728
728
|
|
|
729
729
|
[[package]]
|
|
730
730
|
name = "object-storage-client"
|
|
731
|
-
version = "0.0.
|
|
731
|
+
version = "0.0.37"
|
|
732
732
|
source = { registry = "https://pypi.org/simple" }
|
|
733
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
733
|
+
sdist = { url = "https://files.pythonhosted.org/packages/85/0c/454ee97e24a53f6e3ce95286ae63efdbf84bbe05a8d29c11509397347d21/object_storage_client-0.0.37.tar.gz", hash = "sha256:50ccaa1aa2a2f36dbeea1c919125df306b1871ed5b257f69818981c0fd114449", size = 69385, upload-time = "2026-06-16T10:54:57.08Z" }
|
|
734
734
|
wheels = [
|
|
735
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
736
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
737
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
738
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
735
|
+
{ url = "https://files.pythonhosted.org/packages/76/09/45e8087b408a3a30cf774f5beb596068003892b500353f120fd53369edbf/object_storage_client-0.0.37-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:64b18d759d92e2c819234c56b41abfcf1403a6658bc5aa0a6abc84a7e47ed463", size = 3327631, upload-time = "2026-06-16T10:54:51.745Z" },
|
|
736
|
+
{ url = "https://files.pythonhosted.org/packages/95/7a/9fea9cb06f395966c7dec001496a9ef3d436c3ac3e644d42773bb72dbbd1/object_storage_client-0.0.37-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac5cc375983756d5f4b11898693bef68de4021053c95d5e64e689454250b0885", size = 3767425, upload-time = "2026-06-16T10:54:54.463Z" },
|
|
737
|
+
{ url = "https://files.pythonhosted.org/packages/89/e4/a97eb2034edb78c4ce6bf9172715abb8023357cb69e9db919e22d728bbac/object_storage_client-0.0.37-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:52ff75cf30d54b9055b12a6301eb2ea492fb3b2b2ef955810d17d9632e861864", size = 3502673, upload-time = "2026-06-16T10:54:50.464Z" },
|
|
738
|
+
{ url = "https://files.pythonhosted.org/packages/2c/c3/f06a401edae247b9f251f06ae933d7cbc18f0b671536897874538ee4473b/object_storage_client-0.0.37-cp314-cp314-win_amd64.whl", hash = "sha256:a8cadf75c47fc3bf5b496cb29777da6a3ce2a9231d72527259962dedbd47cd6a", size = 3257348, upload-time = "2026-06-16T10:54:55.948Z" },
|
|
739
739
|
]
|
|
740
740
|
|
|
741
741
|
[[package]]
|
|
@@ -1173,7 +1173,7 @@ requires-dist = [
|
|
|
1173
1173
|
{ name = "lxml", marker = "extra == 'soap-client'", specifier = "~=6.1.1" },
|
|
1174
1174
|
{ name = "msgpack", specifier = "~=1.2.0" },
|
|
1175
1175
|
{ name = "msgspec", specifier = "~=0.21.1" },
|
|
1176
|
-
{ name = "object-storage-client", marker = "extra == 'object-storage'", specifier = "~=0.0.
|
|
1176
|
+
{ name = "object-storage-client", marker = "extra == 'object-storage'", specifier = "~=0.0.37" },
|
|
1177
1177
|
{ name = "pydantic-settings", specifier = "~=2.14.1" },
|
|
1178
1178
|
{ name = "python3-commons", extras = ["api-client"], marker = "extra == 'authn'" },
|
|
1179
1179
|
{ name = "python3-commons", extras = ["api-client"], marker = "extra == 'authz'" },
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/msgpack.py
RENAMED
|
File without changes
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons/serializers/msgspec.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/src/python3_commons.egg-info/top_level.txt
RENAMED
|
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
|
{python3_commons-0.21.2 → python3_commons-0.22.4}/tests/unit/db/test_async_session_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|