rb-commons 0.1.3__tar.gz → 0.1.4__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.
@@ -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
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
@@ -9,4 +9,6 @@ rb_commons/configs/__init__.py
9
9
  rb_commons/configs/config.py
10
10
  rb_commons/orm/__init__.py
11
11
  rb_commons/orm/exceptions.py
12
- rb_commons/orm/managers.py
12
+ rb_commons/orm/managers.py
13
+ rb_commons/schemes/__init__.py
14
+ rb_commons/schemes/jwt.py
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="rb-commons",
8
- version="0.1.3",
8
+ version="0.1.4",
9
9
  author="Abdulvoris",
10
10
  author_email="erkinovabdulvoris101@gmail.com",
11
11
  description="Commons of project and simplified orm based on sqlalchemy.",
File without changes