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.
Files changed (31) hide show
  1. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/PKG-INFO +1 -1
  2. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/pyproject.toml +1 -1
  3. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/_RowBound.py +1 -1
  4. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/bound.py +4 -4
  5. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/edges.py +2 -2
  6. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/fields.py +2 -2
  7. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/hierarchy.py +3 -3
  8. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/key_digest.py +3 -3
  9. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/lifecycle.py +2 -2
  10. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/locks.py +3 -3
  11. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/markers.py +1 -1
  12. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/operations.py +2 -2
  13. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/ownable.py +6 -6
  14. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/principals.py +3 -3
  15. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/tenant_bound.py +6 -6
  16. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/utils.py +2 -2
  17. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/audit.py +2 -2
  18. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/client.py +2 -2
  19. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/group.py +2 -2
  20. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/org.py +2 -2
  21. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/rbac.py +3 -3
  22. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/status.py +2 -2
  23. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/user.py +2 -2
  24. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/README.md +0 -0
  25. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/__init__.py +0 -0
  26. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/__init__.py +0 -0
  27. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/bootstrappable.py +0 -0
  28. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/mixins/upsertable.py +0 -0
  29. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/__init__.py +0 -0
  30. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/_base.py +0 -0
  31. {tigrbl_orm-0.1.0.dev7 → tigrbl_orm-0.1.0.dev11}/tigrbl_orm/orm/tables/tenant.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tigrbl-orm
3
- Version: 0.1.0.dev7
3
+ Version: 0.1.0.dev11
4
4
  Summary: ORM tables and mixins for the Tigrbl framework.
5
5
  License-Expression: Apache-2.0
6
6
  Keywords: tigrbl,orm,sqlalchemy,sdk,standards
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tigrbl-orm"
3
- version = "0.1.0.dev7"
3
+ version = "0.1.0.dev11"
4
4
  description = "ORM tables and mixins for the Tigrbl framework."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
 
4
4
  from typing import Any, Mapping, Sequence
5
5
 
6
- from ...runtime.status import HTTP_ERROR_MESSAGES, create_standardized_error
6
+ from tigrbl.runtime.status import HTTP_ERROR_MESSAGES, create_standardized_error
7
7
 
8
8
 
9
9
  class _RowBound:
@@ -1,9 +1,9 @@
1
1
  from __future__ import annotations
2
2
 
3
- from ...config.constants import CTX_AUTH_KEY, CTX_USER_ID_KEY
4
- from ...specs import ColumnSpec, F, S, acol
5
- from ..._spec.storage_spec import ForeignKeySpec
6
- from ...types import PgUUID, UUID, Mapped
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 ...specs import ColumnSpec, F, S, acol
4
- from ...types import Integer, String, declarative_mixin, Mapped
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 ...specs import ColumnSpec, F, IO, S, acol
7
- from ...types import (
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 ...specs import ColumnSpec, F, S, acol
4
- from ..._spec.storage_spec import ForeignKeySpec
5
- from ...types import PgUUID, UUID, String, declarative_mixin, declared_attr, Mapped
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 ..._spec.io_spec import Pair
7
- from ...specs import F, IO, S, acol
8
- from ...types import Mapped, String, declarative_mixin
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,8 +2,8 @@ from __future__ import annotations
2
2
 
3
3
  import datetime as dt
4
4
 
5
- from ...specs import ColumnSpec, F, IO, S, acol
6
- from ...types import (
5
+ from tigrbl.specs import ColumnSpec, F, IO, S, acol
6
+ from tigrbl.types import (
7
7
  TZDateTime,
8
8
  Boolean,
9
9
  Integer,
@@ -2,9 +2,9 @@ from __future__ import annotations
2
2
 
3
3
  import datetime as dt
4
4
 
5
- from ...specs import ColumnSpec, F, S, acol
6
- from ..._spec.storage_spec import ForeignKeySpec
7
- from ...types import PgUUID, TZDateTime, UUID, declarative_mixin, Mapped
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
 
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from ...types import declarative_mixin
3
+ from tigrbl.types import declarative_mixin
4
4
 
5
5
 
6
6
  @declarative_mixin
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
- from ...config.constants import BULK_VERBS
4
- from ...types import declarative_mixin
3
+ from tigrbl.config.constants import BULK_VERBS
4
+ from tigrbl.types import declarative_mixin
5
5
 
6
6
 
7
7
  @declarative_mixin
@@ -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 ...types import PgUUID, Mapped, declared_attr
9
+ from tigrbl.types import PgUUID, Mapped, declared_attr
10
10
 
11
- from ...specs import acol
12
- from ...config.constants import (
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 ...runtime.status import create_standardized_error
19
- from ...specs import ColumnSpec, F, IO, S
20
- from ..._spec.storage_spec import ForeignKeySpec
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 ...specs import ColumnSpec, F, S, acol
4
- from ..._spec.storage_spec import ForeignKeySpec
5
- from ...types import PgUUID, UUID, declarative_mixin, declared_attr, uuid4, Mapped
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 ...specs import acol
12
- from ...config.constants import (
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 ...runtime.status import create_standardized_error
18
- from ...specs import ColumnSpec, F, IO, S
19
- from ..._spec.storage_spec import ForeignKeySpec
20
- from ...types import Mapped, PgUUID, declared_attr
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__)
@@ -2,8 +2,8 @@ from __future__ import annotations
2
2
 
3
3
  import datetime as dt
4
4
 
5
- from ...specs import IO
6
- from ...types import UUID
5
+ from tigrbl.specs import IO
6
+ from tigrbl.types import UUID
7
7
 
8
8
 
9
9
  def tzutcnow() -> dt.datetime:
@@ -4,8 +4,8 @@ from uuid import UUID
4
4
 
5
5
  from . import TableBase
6
6
  from ..mixins import GUIDPk, Timestamped
7
- from ...specs import IO, F, acol, S
8
- from ...types import DateTime, Integer, String, PgUUID, Mapped
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 ...specs import acol, IO, S, F
6
- from ...types import LargeBinary, Mapped, String
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 ...specs import IO, F, acol, S
6
- from ...types import Mapped, String
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 ...specs import IO, F, acol, S
6
- from ...types import Mapped, String
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 ...specs import IO, F, acol, S
5
- from ..._spec.storage_spec import ForeignKeySpec
6
- from ...types import Integer, String, PgUUID, Mapped
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 ...specs import acol, F, IO, S
22
- from ...types import Integer, Mapped, SAEnum, String
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
@@ -9,8 +9,8 @@ from ..mixins import (
9
9
  AsyncCapable,
10
10
  ActiveToggle,
11
11
  )
12
- from ...specs import IO, acol, F, S
13
- from ...types import Mapped, String
12
+ from tigrbl.specs import IO, acol, F, S
13
+ from tigrbl.types import Mapped, String
14
14
 
15
15
 
16
16
  class User(