python3-commons 0.8.13__py3-none-any.whl → 0.8.16__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.
@@ -26,12 +26,22 @@ def use_identity(element, compiler, **kw):
26
26
 
27
27
 
28
28
  class BaseDBModel:
29
- id: Mapped[int] = mapped_column(BIGINT, primary_key=True)
30
- created_at: Mapped[AwareDatetime] = mapped_column(DateTime(timezone=True), nullable=False, server_default=UTCNow())
31
- updated_at: Mapped[AwareDatetime] = mapped_column(DateTime(timezone=True), onupdate=UTCNow())
29
+ id: Mapped[int] = mapped_column(BIGINT, primary_key=True, sort_order=-3)
30
+ created_at: Mapped[AwareDatetime] = mapped_column(
31
+ DateTime(timezone=True),
32
+ nullable=False,
33
+ server_default=UTCNow(),
34
+ sort_order=-2
35
+ )
36
+ updated_at: Mapped[AwareDatetime] = mapped_column(DateTime(timezone=True), onupdate=UTCNow(), sort_order=-1)
32
37
 
33
38
 
34
39
  class BaseDBUUIDModel:
35
- uid: Mapped[UUID] = mapped_column(UUID, primary_key=True)
36
- created_at: Mapped[AwareDatetime] = mapped_column(DateTime(timezone=True), nullable=False, server_default=UTCNow())
37
- updated_at: Mapped[AwareDatetime | None] = mapped_column(DateTime(timezone=True), onupdate=UTCNow())
40
+ uid: Mapped[UUID] = mapped_column(UUID, primary_key=True, sort_order=-3)
41
+ created_at: Mapped[AwareDatetime] = mapped_column(
42
+ DateTime(timezone=True),
43
+ nullable=False,
44
+ server_default=UTCNow(),
45
+ sort_order=-2
46
+ )
47
+ updated_at: Mapped[AwareDatetime | None] = mapped_column(DateTime(timezone=True), onupdate=UTCNow(), sort_order=-1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-commons
3
- Version: 0.8.13
3
+ Version: 0.8.16
4
4
  Summary: Re-usable Python3 code
5
5
  Author-email: Oleg Korsak <kamikaze.is.waiting.you@gmail.com>
6
6
  License: gpl-3
@@ -16,12 +16,12 @@ Requires-Dist: aiohttp[speedups]~=3.11.16
16
16
  Requires-Dist: asyncpg~=0.30.0
17
17
  Requires-Dist: fastapi-users-db-sqlalchemy~=7.0.0
18
18
  Requires-Dist: fastapi-users[sqlalchemy]~=14.0.1
19
- Requires-Dist: lxml~=5.3.1
19
+ Requires-Dist: lxml~=5.3.2
20
20
  Requires-Dist: minio~=7.2.15
21
21
  Requires-Dist: msgpack~=1.1.0
22
22
  Requires-Dist: msgspec~=0.19.0
23
- Requires-Dist: pydantic[email]~=2.11.2
24
- Requires-Dist: pydantic-settings~=2.8.1
23
+ Requires-Dist: pydantic[email]~=2.11.3
24
+ Requires-Dist: pydantic-settings~=2.9.1
25
25
  Requires-Dist: SQLAlchemy[asyncio]~=2.0.40
26
26
  Requires-Dist: valkey[libvalkey]~=6.1.0
27
27
  Requires-Dist: zeep~=4.3.1
@@ -11,7 +11,7 @@ python3_commons/db/__init__.py,sha256=_SKKKf4uW4xYdSkL6Getow9ERGd_RYBlaM4xKEQKos
11
11
  python3_commons/db/helpers.py,sha256=0z-pXAxQg0KqrqfoUcRooRHNrrKi-g2mSO6euVMscpE,1891
12
12
  python3_commons/db/models/__init__.py,sha256=AeeTLUqdqQrhCTi14ACWO0ccyVyWFppZVtCeWShSvR0,193
13
13
  python3_commons/db/models/auth.py,sha256=ctHiz_5x17TdXac7a3SjfuZ0-nEgnxK7RwKOY8qflZc,1195
14
- python3_commons/db/models/common.py,sha256=ScFEL04HwEomX3X7f8WHMq505uvoID6itBETRWfya9w,1402
14
+ python3_commons/db/models/common.py,sha256=G_6nTxholINO8Fr1uur36K5EYmrUCGsE2U6jTxjpoIo,1568
15
15
  python3_commons/db/models/rbac.py,sha256=atgCfAWgb8BJYKd7wuzV1HTDhasCL7448iPRNLBAjlw,3249
16
16
  python3_commons/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  python3_commons/logging/filters.py,sha256=fuyjXZAUm-i2MNrxvFYag8F8Rr27x8W8MdV3ke6miSs,175
@@ -20,9 +20,9 @@ python3_commons/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
20
20
  python3_commons/serializers/json.py,sha256=P288wWz9ic38QWEMrpp_uwKPYkQiOgvE1cI4WZn6ZCg,808
21
21
  python3_commons/serializers/msgpack.py,sha256=tzIGGyDL3UpZnnouCtnxuYDx6InKM_C3PP1N4PN8wd4,1269
22
22
  python3_commons/serializers/msgspec.py,sha256=FuZVqOLJb0-lEKrs7dtjhwEbHIpfMUk5yu1hD64zRdc,2038
23
- python3_commons-0.8.13.dist-info/licenses/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
24
- python3_commons-0.8.13.dist-info/licenses/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
25
- python3_commons-0.8.13.dist-info/METADATA,sha256=Up3ahCYqOzuvdOe7B6wfc04P2k8nn6y6NQWhLNiwBSc,1190
26
- python3_commons-0.8.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
27
- python3_commons-0.8.13.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
28
- python3_commons-0.8.13.dist-info/RECORD,,
23
+ python3_commons-0.8.16.dist-info/licenses/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
24
+ python3_commons-0.8.16.dist-info/licenses/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
25
+ python3_commons-0.8.16.dist-info/METADATA,sha256=K4cgRWSDv45EGnorzcPn3e_IYkUsgz85jhh4qfH38s4,1190
26
+ python3_commons-0.8.16.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
27
+ python3_commons-0.8.16.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
28
+ python3_commons-0.8.16.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5