rb-commons 0.1.3__py3-none-any.whl → 0.1.4__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.
File without changes
@@ -0,0 +1,13 @@
1
+ import uuid
2
+ from enum import Enum
3
+ from pydantic import BaseModel
4
+
5
+ class UserRole(str, Enum):
6
+ ADMIN = "admin"
7
+ CUSTOMER = "customer"
8
+ GUEST = "guest"
9
+
10
+ class Claims(BaseModel):
11
+ user_id: str = None
12
+ user_role: UserRole = UserRole.GUEST
13
+ shop_id: uuid.UUID = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rb-commons
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Commons of project and simplified orm based on sqlalchemy.
5
5
  Home-page: https://github.com/Abdulvoris101/rb-commons
6
6
  Author: Abdulvoris
@@ -4,7 +4,9 @@ rb_commons/configs/config.py,sha256=tpqC1V9PXx88m0N5L13WqkoalPUk6SthjxgL_lmf-lE,
4
4
  rb_commons/orm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  rb_commons/orm/exceptions.py,sha256=1aMctiEwrPjyehoXVX1l6ML5ZOhmDkmBISzlTD5ey1Y,509
6
6
  rb_commons/orm/managers.py,sha256=VopUw29sCXrPTriBALR9qwkG5yCu6BDHRgR7cCygNiE,6726
7
- rb_commons-0.1.3.dist-info/METADATA,sha256=e5JAJa0JyfvHYXnwGkBWg4MflVmjeRgnpxmcSnvdiY4,6276
8
- rb_commons-0.1.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
9
- rb_commons-0.1.3.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
10
- rb_commons-0.1.3.dist-info/RECORD,,
7
+ rb_commons/schemes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ rb_commons/schemes/jwt.py,sha256=-8lSTpzpeZ3yKqJyDqVZso4YdiSFgBew4a4Ilu_P9ic,293
9
+ rb_commons-0.1.4.dist-info/METADATA,sha256=OHBoBJvOUEqURN4wyr6ABaUynF8DSNHeHYspznEWfo4,6276
10
+ rb_commons-0.1.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
11
+ rb_commons-0.1.4.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
12
+ rb_commons-0.1.4.dist-info/RECORD,,