tigrbl-orm 0.1.0.dev7__tar.gz → 0.1.0.dev11__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.
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/PKG-INFO +1 -1
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/pyproject.toml +1 -1
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/_RowBound.py +1 -1
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/bound.py +4 -4
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/edges.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/fields.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/hierarchy.py +3 -3
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/key_digest.py +3 -3
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/lifecycle.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/locks.py +3 -3
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/markers.py +1 -1
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/operations.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/ownable.py +6 -6
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/principals.py +3 -3
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/tenant_bound.py +6 -6
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/utils.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/audit.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/client.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/group.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/org.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/rbac.py +3 -3
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/status.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/user.py +2 -2
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/README.md +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/__init__.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/__init__.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/bootstrappable.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/upsertable.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/__init__.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/_base.py +0 -0
- {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/tenant.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
3
|
+
from tigrbl.config.constants import CTX_AUTH_KEY, CTX_USER_ID_KEY
|
|
4
|
+
from tigrbl.specs import ColumnSpec, F, S, acol
|
|
5
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
6
|
+
from tigrbl.types import PgUUID, UUID, Mapped
|
|
7
7
|
|
|
8
8
|
from .utils import uuid_example, CRUD_IO
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from tigrbl.specs import ColumnSpec, F, S, acol
|
|
4
|
+
from tigrbl.types import Integer, String, declarative_mixin, Mapped
|
|
5
5
|
|
|
6
6
|
from .utils import CRUD_IO
|
|
7
7
|
|
|
@@ -3,8 +3,8 @@ from __future__ import annotations
|
|
|
3
3
|
import datetime as dt
|
|
4
4
|
from decimal import Decimal
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
6
|
+
from tigrbl.specs import ColumnSpec, F, IO, S, acol
|
|
7
|
+
from tigrbl.types import (
|
|
8
8
|
TZDateTime,
|
|
9
9
|
PgUUID,
|
|
10
10
|
String,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from tigrbl.specs import ColumnSpec, F, S, acol
|
|
4
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
5
|
+
from tigrbl.types import PgUUID, UUID, String, declarative_mixin, declared_attr, Mapped
|
|
6
6
|
|
|
7
7
|
from .utils import CRUD_IO
|
|
8
8
|
|
|
@@ -3,9 +3,9 @@ from __future__ import annotations
|
|
|
3
3
|
from hashlib import sha256
|
|
4
4
|
from secrets import token_urlsafe
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
6
|
+
from tigrbl._spec.io_spec import Pair
|
|
7
|
+
from tigrbl.specs import F, IO, S, acol
|
|
8
|
+
from tigrbl.types import Mapped, String, declarative_mixin
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@declarative_mixin
|
|
@@ -2,9 +2,9 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import datetime as dt
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
5
|
+
from tigrbl.specs import ColumnSpec, F, S, acol
|
|
6
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
7
|
+
from tigrbl.types import PgUUID, TZDateTime, UUID, declarative_mixin, Mapped
|
|
8
8
|
|
|
9
9
|
from .utils import CRUD_IO
|
|
10
10
|
|
|
@@ -6,18 +6,18 @@ from enum import Enum
|
|
|
6
6
|
from typing import Any, Mapping
|
|
7
7
|
from uuid import UUID
|
|
8
8
|
|
|
9
|
-
from
|
|
9
|
+
from tigrbl.types import PgUUID, Mapped, declared_attr
|
|
10
10
|
|
|
11
|
-
from
|
|
12
|
-
from
|
|
11
|
+
from tigrbl.specs import acol
|
|
12
|
+
from tigrbl.config.constants import (
|
|
13
13
|
TIGRBL_HOOKS_ATTR,
|
|
14
14
|
TIGRBL_OWNER_POLICY_ATTR,
|
|
15
15
|
CTX_AUTH_KEY,
|
|
16
16
|
CTX_USER_ID_KEY,
|
|
17
17
|
)
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
from
|
|
18
|
+
from tigrbl.runtime.status import create_standardized_error
|
|
19
|
+
from tigrbl.specs import ColumnSpec, F, IO, S
|
|
20
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
21
21
|
|
|
22
22
|
log = logging.getLogger(__name__)
|
|
23
23
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
3
|
+
from tigrbl.specs import ColumnSpec, F, S, acol
|
|
4
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
5
|
+
from tigrbl.types import PgUUID, UUID, declarative_mixin, declared_attr, uuid4, Mapped
|
|
6
6
|
|
|
7
7
|
from .utils import _infer_schema, uuid_example, CRUD_IO, RO_IO
|
|
8
8
|
|
|
@@ -8,16 +8,16 @@ from typing import Any, Mapping
|
|
|
8
8
|
from uuid import UUID
|
|
9
9
|
|
|
10
10
|
from ._RowBound import _RowBound
|
|
11
|
-
from
|
|
12
|
-
from
|
|
11
|
+
from tigrbl.specs import acol
|
|
12
|
+
from tigrbl.config.constants import (
|
|
13
13
|
TIGRBL_TENANT_POLICY_ATTR,
|
|
14
14
|
CTX_AUTH_KEY,
|
|
15
15
|
CTX_TENANT_ID_KEY,
|
|
16
16
|
)
|
|
17
|
-
from
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
from
|
|
17
|
+
from tigrbl.runtime.status import create_standardized_error
|
|
18
|
+
from tigrbl.specs import ColumnSpec, F, IO, S
|
|
19
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
20
|
+
from tigrbl.types import Mapped, PgUUID, declared_attr
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
log = logging.getLogger(__name__)
|
|
@@ -4,8 +4,8 @@ from uuid import UUID
|
|
|
4
4
|
|
|
5
5
|
from . import TableBase
|
|
6
6
|
from ..mixins import GUIDPk, Timestamped
|
|
7
|
-
from
|
|
8
|
-
from
|
|
7
|
+
from tigrbl.specs import IO, F, acol, S
|
|
8
|
+
from tigrbl.types import DateTime, Integer, String, PgUUID, Mapped
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Change(TableBase, GUIDPk, Timestamped):
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from tigrbl.specs import acol, IO, S, F
|
|
6
|
+
from tigrbl.types import LargeBinary, Mapped, String
|
|
7
7
|
|
|
8
8
|
from ._base import TableBase
|
|
9
9
|
from ..mixins import ActiveToggle, GUIDPk, Timestamped, TenantBound
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from ._base import TableBase
|
|
4
4
|
from ..mixins import GUIDPk, Timestamped, TenantBound, Principal
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from tigrbl.specs import IO, F, acol, S
|
|
6
|
+
from tigrbl.types import Mapped, String
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Group(TableBase, GUIDPk, Timestamped, TenantBound, Principal):
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from ._base import TableBase
|
|
4
4
|
from ..mixins import GUIDPk, Timestamped, TenantBound, Principal
|
|
5
|
-
from
|
|
6
|
-
from
|
|
5
|
+
from tigrbl.specs import IO, F, acol, S
|
|
6
|
+
from tigrbl.types import Mapped, String
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Org(TableBase, GUIDPk, Timestamped, TenantBound, Principal):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from uuid import UUID
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from tigrbl.specs import IO, F, acol, S
|
|
5
|
+
from tigrbl._spec.storage_spec import ForeignKeySpec
|
|
6
|
+
from tigrbl.types import Integer, String, PgUUID, Mapped
|
|
7
7
|
|
|
8
8
|
from . import TableBase
|
|
9
9
|
from ..mixins import (
|
|
@@ -18,8 +18,8 @@ from __future__ import annotations
|
|
|
18
18
|
|
|
19
19
|
from enum import StrEnum
|
|
20
20
|
|
|
21
|
-
from
|
|
22
|
-
from
|
|
21
|
+
from tigrbl.specs import acol, F, IO, S
|
|
22
|
+
from tigrbl.types import Integer, Mapped, SAEnum, String
|
|
23
23
|
|
|
24
24
|
from ._base import TableBase
|
|
25
25
|
from ..mixins import Timestamped # created_at / updated_at
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|