python3-commons 0.13.0__py3-none-any.whl → 0.13.2__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.
Potentially problematic release.
This version of python3-commons might be problematic. Click here for more details.
- python3_commons/db/models/__init__.py +0 -3
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/METADATA +2 -2
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/RECORD +7 -8
- python3_commons/db/models/rbac.py +0 -40
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/WHEEL +0 -0
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/licenses/AUTHORS.rst +0 -0
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/licenses/LICENSE +0 -0
- {python3_commons-0.13.0.dist-info → python3_commons-0.13.2.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1 @@
|
|
|
1
1
|
from python3_commons.db.models.auth import UserGroup as UserGroup
|
|
2
|
-
from python3_commons.db.models.rbac import RBACPermission as RBACPermission
|
|
3
|
-
from python3_commons.db.models.rbac import RBACRole as RBACRole
|
|
4
|
-
from python3_commons.db.models.rbac import RBACRolePermission as RBACRolePermission
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-commons
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.2
|
|
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
|
|
@@ -12,7 +12,7 @@ Requires-Python: <3.15.0,>=3.13.9
|
|
|
12
12
|
Description-Content-Type: text/x-rst
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
License-File: AUTHORS.rst
|
|
15
|
-
Requires-Dist: aiobotocore~=2.25.
|
|
15
|
+
Requires-Dist: aiobotocore~=2.25.1
|
|
16
16
|
Requires-Dist: aiohttp[speedups]<3.15.0,>=3.12.0
|
|
17
17
|
Requires-Dist: asyncpg~=0.30.0
|
|
18
18
|
Requires-Dist: lxml~=6.0.2
|
|
@@ -9,10 +9,9 @@ python3_commons/helpers.py,sha256=RpbHU04MXQ-b2GC0RZlmkcpu33KCU4Mq8-qa2hbNbgA,40
|
|
|
9
9
|
python3_commons/object_storage.py,sha256=dhTCHz_SbttB9e4wkzp3jxs-fASFa2L-F-PdkG5bedI,6584
|
|
10
10
|
python3_commons/db/__init__.py,sha256=gizEDoNNWMWyaLSpb01qXmyViKPaz1XRrk_fOZ9AveU,2918
|
|
11
11
|
python3_commons/db/helpers.py,sha256=n56yYCE0fvzvU7nL1936NfZhbaQmvfumzRsGimBlNV4,1776
|
|
12
|
-
python3_commons/db/models/__init__.py,sha256=
|
|
12
|
+
python3_commons/db/models/__init__.py,sha256=EpTt9C7vimMDSB7DBuFDM0xaPSyWR443zetTQuB9_aA,66
|
|
13
13
|
python3_commons/db/models/auth.py,sha256=3RndBuvARojVXO7RdvJ37A0OUvHTD39gpZ3MnKXGS-c,308
|
|
14
14
|
python3_commons/db/models/common.py,sha256=nRLQVi7Y0SsXo3qMIwQX6GuDO9kHnlma4O_mYXQVtHQ,1512
|
|
15
|
-
python3_commons/db/models/rbac.py,sha256=Kvd5GNlGjaNZDlRGP_h9tb3LPHGlnY8IvfhVkFmO5Js,1333
|
|
16
15
|
python3_commons/log/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
16
|
python3_commons/log/filters.py,sha256=fuyjXZAUm-i2MNrxvFYag8F8Rr27x8W8MdV3ke6miSs,175
|
|
18
17
|
python3_commons/log/formatters.py,sha256=p2AtZD4Axp3Em0e9gWzW8U_yOR5entD7xn7Edvc-IuM,719
|
|
@@ -21,9 +20,9 @@ python3_commons/serializers/common.py,sha256=VkA7C6wODvHk0QBXVX_x2JieDstihx3U__U
|
|
|
21
20
|
python3_commons/serializers/json.py,sha256=UPkC3ps13x2C_NxwVV-K7Ewp4VjkVHSSUkJVw5k7Wiw,712
|
|
22
21
|
python3_commons/serializers/msgpack.py,sha256=mKQwfjPHh3BiXYCZLAhBsEhys8DxKHMZJIq-gDgqGDM,1451
|
|
23
22
|
python3_commons/serializers/msgspec.py,sha256=CAqlaZnDh-jiT6B_TsxXF9AojROMcV3bBd0Kp8ZFAzY,2952
|
|
24
|
-
python3_commons-0.13.
|
|
25
|
-
python3_commons-0.13.
|
|
26
|
-
python3_commons-0.13.
|
|
27
|
-
python3_commons-0.13.
|
|
28
|
-
python3_commons-0.13.
|
|
29
|
-
python3_commons-0.13.
|
|
23
|
+
python3_commons-0.13.2.dist-info/licenses/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
|
|
24
|
+
python3_commons-0.13.2.dist-info/licenses/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
|
|
25
|
+
python3_commons-0.13.2.dist-info/METADATA,sha256=x46DKFPLt1cKZTlAUw2bOcujwYSXCKhvDcZnDezVaUU,977
|
|
26
|
+
python3_commons-0.13.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
python3_commons-0.13.2.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
|
|
28
|
+
python3_commons-0.13.2.dist-info/RECORD,,
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import uuid
|
|
2
|
-
|
|
3
|
-
from sqlalchemy import CheckConstraint, ForeignKey, PrimaryKeyConstraint, String
|
|
4
|
-
from sqlalchemy.dialects.postgresql import UUID
|
|
5
|
-
from sqlalchemy.orm import Mapped, mapped_column
|
|
6
|
-
|
|
7
|
-
from python3_commons.db import Base
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class RBACRole(Base):
|
|
11
|
-
__tablename__ = 'rbac_roles'
|
|
12
|
-
|
|
13
|
-
uid: Mapped[uuid.UUID] = mapped_column(UUID, primary_key=True)
|
|
14
|
-
name: Mapped[str] = mapped_column(String, unique=True, nullable=False)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class RBACPermission(Base):
|
|
18
|
-
__tablename__ = 'rbac_permissions'
|
|
19
|
-
|
|
20
|
-
uid: Mapped[uuid.UUID] = mapped_column(UUID, primary_key=True)
|
|
21
|
-
name: Mapped[str] = mapped_column(String, unique=True, nullable=False)
|
|
22
|
-
|
|
23
|
-
__table_args__ = (CheckConstraint("name ~ '^[a-z0-9_.]+$'", name='check_rbac_permissions_name'),)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class RBACRolePermission(Base):
|
|
27
|
-
__tablename__ = 'rbac_role_permissions'
|
|
28
|
-
|
|
29
|
-
role_uid: Mapped[uuid.UUID | None] = mapped_column(
|
|
30
|
-
UUID,
|
|
31
|
-
ForeignKey('rbac_roles.uid', name='fk_rbac_role_permissions_role', ondelete='CASCADE'),
|
|
32
|
-
index=True,
|
|
33
|
-
)
|
|
34
|
-
permission_uid: Mapped[uuid.UUID | None] = mapped_column(
|
|
35
|
-
UUID,
|
|
36
|
-
ForeignKey('rbac_permissions.uid', name='fk_rbac_role_permissions_permission', ondelete='CASCADE'),
|
|
37
|
-
index=True,
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
__table_args__ = (PrimaryKeyConstraint('role_uid', 'permission_uid', name='pk_rbac_role_permissions'),)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|