talentro-commons 0.19.1__tar.gz → 0.19.3__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.
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/PKG-INFO +3 -2
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/pyproject.toml +2 -2
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/acquisition/dataclasses.py +14 -2
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/README.md +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/acquisition/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/acquisition/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/billing/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/billing/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/billing/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/candidates/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/candidates/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/candidates/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/constants.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/event.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/exceptions.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/general/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/general/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/general/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/iam/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/iam/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/iam/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/iam/types.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/integrations/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/integrations/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/integrations/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/billing.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/caching.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/clients.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/db.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/google_storage.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/services/rabbitmq.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/attributes.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/enum.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/files.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/singleton.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/string.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/util/vacancy.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/vacancies/__init__.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/vacancies/dataclasses.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/vacancies/models.py +0 -0
- {talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/vacancies/taxanomy.py +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: talentro-commons
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.3
|
|
4
4
|
Summary: This package contains all globally used code, services, models and data structures for Talentro
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Emiel van Essen
|
|
7
7
|
Author-email: emiel@marksmen.nl
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.13,<4.0
|
|
9
9
|
Classifier: License :: Other/Proprietary License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
12
13
|
Requires-Dist: aio-pika (>=9.5.7,<10.0.0)
|
|
13
14
|
Requires-Dist: aiocache[redis] (>=0.12.3,<0.13.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "talentro-commons"
|
|
3
|
-
version = "0.19.
|
|
3
|
+
version = "0.19.3"
|
|
4
4
|
description = "This package contains all globally used code, services, models and data structures for Talentro"
|
|
5
5
|
authors = ["Emiel van Essen <emiel@marksmen.nl>"]
|
|
6
6
|
license = "Proprietary"
|
|
@@ -10,7 +10,7 @@ packages = [
|
|
|
10
10
|
]
|
|
11
11
|
|
|
12
12
|
[tool.poetry.dependencies]
|
|
13
|
-
python = ">=3.
|
|
13
|
+
python = ">=3.13,<4.0"
|
|
14
14
|
sqlalchemy = ">=2.0.38,<3.0.0"
|
|
15
15
|
sqlmodel = ">=0.0.31,<0.0.32"
|
|
16
16
|
fastapi = ">=0.128.0,<0.129.0"
|
|
@@ -120,8 +120,20 @@ class AdInfo(ResolvableCompanyModel):
|
|
|
120
120
|
campaign: CampaignInfo
|
|
121
121
|
|
|
122
122
|
@staticmethod
|
|
123
|
-
async def resolve_object(object_id: UUID, organization_id: str) -> "
|
|
124
|
-
|
|
123
|
+
async def resolve_object(object_id: UUID, organization_id: str) -> "AdInfo | None":
|
|
124
|
+
cache = CacheService()
|
|
125
|
+
|
|
126
|
+
cache_key = f"resolver:org:{organization_id}:ad_id:{object_id}"
|
|
127
|
+
|
|
128
|
+
if value := await cache.get(cache_key):
|
|
129
|
+
return value
|
|
130
|
+
|
|
131
|
+
result = await MSClient.acquisition().get(f"ad/{object_id}/resolve", headers={"X-Organization-ID": str(organization_id)})
|
|
132
|
+
|
|
133
|
+
if result.status_code != 200:
|
|
134
|
+
return None
|
|
135
|
+
|
|
136
|
+
return AdInfo(**result.json())
|
|
125
137
|
|
|
126
138
|
@classmethod
|
|
127
139
|
async def from_model(cls: "AdInfo", model: AdModel) -> 'AdInfo':
|
|
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
|
{talentro_commons-0.19.1 → talentro_commons-0.19.3}/src/talentro/integrations/dataclasses.py
RENAMED
|
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
|