rb-commons 0.5.13__tar.gz → 0.5.14__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.
- {rb_commons-0.5.13 → rb_commons-0.5.14}/PKG-INFO +1 -1
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/configs/config.py +13 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons.egg-info/PKG-INFO +1 -1
- {rb_commons-0.5.13 → rb_commons-0.5.14}/setup.py +1 -1
- {rb_commons-0.5.13 → rb_commons-0.5.14}/README.md +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/broker/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/broker/consumer.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/configs/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/configs/injections.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/configs/rabbitmq.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/http/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/http/base_api.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/http/consul.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/http/exceptions.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/orm/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/orm/exceptions.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/orm/managers.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/orm/services.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/permissions/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/permissions/role_permissions.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/schemes/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/schemes/jwt.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/schemes/pagination.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/utils/__init__.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons/utils/media.py +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons.egg-info/SOURCES.txt +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons.egg-info/dependency_links.txt +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons.egg-info/requires.txt +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/rb_commons.egg-info/top_level.txt +0 -0
- {rb_commons-0.5.13 → rb_commons-0.5.14}/setup.cfg +0 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
from typing import Optional, Any
|
2
2
|
|
3
|
+
from pydantic import field_validator
|
3
4
|
from pydantic_settings import BaseSettings
|
4
5
|
|
5
6
|
class CommonConfigs(BaseSettings):
|
@@ -24,6 +25,18 @@ class CommonConfigs(BaseSettings):
|
|
24
25
|
DIGITALOCEAN_STORAGE_BUCKET_NAME: Optional[str] = None
|
25
26
|
DIGITALOCEAN_S3_ENDPOINT_URL: Optional[str] = None
|
26
27
|
|
28
|
+
@field_validator("POSTGRES_PORT", mode="before")
|
29
|
+
@classmethod
|
30
|
+
def convert_port(cls, value):
|
31
|
+
print("DEBUG: POSTGRES_PORT from env =", value)
|
32
|
+
|
33
|
+
if value is None:
|
34
|
+
return None
|
35
|
+
try:
|
36
|
+
print(value)
|
37
|
+
return int(value)
|
38
|
+
except ValueError:
|
39
|
+
raise ValueError(f"POSTGRES_PORT must be an integer, got: {value}")
|
27
40
|
|
28
41
|
@property
|
29
42
|
def database_url(self) -> Optional[str]:
|
@@ -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.5.
|
8
|
+
version="0.5.14",
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|