talentro-commons 0.19.13__py3-none-any.whl → 0.19.15__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.
@@ -148,3 +148,22 @@ class GoogleStorage(metaclass=SingletonMeta):
148
148
  blob.upload_from_file(file.file)
149
149
 
150
150
  return blob
151
+
152
+ def upload_filename(self, filename: str, bucket: BucketEnum, destination: FilePathEnum,
153
+ path_definitions: dict | None = None) -> Blob:
154
+ """
155
+ Uploads a file to Google Storage
156
+
157
+ :param filename: The filename you want to upload.
158
+ :param bucket: The bucket you want to upload to.
159
+ :param destination: The file destination you want to upload to.
160
+ :param path_definitions: Key-value pair to declare the dynamic parts of the destination path.
161
+ :return: The public URL of the uploaded file.
162
+ :rtype: str
163
+ """
164
+ # Get the bucket or create it if it doesn't exist.
165
+ blob = self._get_blob(bucket, destination, path_definitions)
166
+
167
+ blob.upload_from_filename(filename)
168
+
169
+ return blob
@@ -160,6 +160,8 @@ class Education(StrEnum):
160
160
  UPPER_SECONDARY = "UPPER_SECONDARY"
161
161
  POST_SECONDARY_NON_TERTIARY = "POST_SECONDARY_NON_TERTIARY"
162
162
  SHORT_CYCLE_TERTIARY = "SHORT_CYCLE_TERTIARY"
163
+ CERTIFICATE = "CERTIFICATE"
164
+ ASSOCIATE = "ASSOCIATE"
163
165
  BACHELOR = "BACHELOR"
164
166
  MASTER = "MASTER"
165
167
  DOCTORATE = "DOCTORATE"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talentro-commons
3
- Version: 0.19.13
3
+ Version: 0.19.15
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
@@ -26,7 +26,7 @@ talentro/services/billing.py,sha256=Y2UaQK8lSRa3G8lTZKqLi4t-Jc-EWd7Yn15nR9HOAx8,
26
26
  talentro/services/caching.py,sha256=mmjhXAMJ_g8D8cJqn15YqZ7ST-G5lD9MS-PmlowI7pU,2921
27
27
  talentro/services/clients.py,sha256=vluOrdYdDAQLyGR9-EmogLjA9OUlJtHy0tYD9LhwxKg,2174
28
28
  talentro/services/db.py,sha256=cnKCrYG7GwIu7ZZhA25D-yaXaiCJqPpzfcanWquyrBY,822
29
- talentro/services/google_storage.py,sha256=UDm3GDHGrYUV0mRK_1zAaagokH8F_wGhNhPyEgpEScw,5231
29
+ talentro/services/google_storage.py,sha256=5r5uiDZD-76Dylc7yyRG5Ni4XNTc9xK8rC0glCRG8_8,6014
30
30
  talentro/services/rabbitmq.py,sha256=RNIsLqXM48z5SRRqJ3iWqhRp6FL9TwRwEeii_m8-xDo,6854
31
31
  talentro/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  talentro/util/attributes.py,sha256=PgJnn9LMtHkiNIaMov2HQt5944HweD6gRlAHBZrJGPA,448
@@ -38,7 +38,7 @@ talentro/util/vacancy.py,sha256=mZ_ruL_YPsbJjaUEti78_6TumXhOGAY7Taa2JvXkTkg,1067
38
38
  talentro/vacancies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  talentro/vacancies/dataclasses.py,sha256=E6H5fsZH4IwtBFSLDolzF6u39tEIrANtWiNVoB65P0c,15074
40
40
  talentro/vacancies/models.py,sha256=GoXr71CNzU6csf8gdmv84etb3Rm-Cdfigp1yqPI_jjQ,4822
41
- talentro/vacancies/taxanomy.py,sha256=K3f0yD5g-oxhLXSYNY4WSsGzBfBIb6ngsTDVNGbqO30,6324
42
- talentro_commons-0.19.13.dist-info/METADATA,sha256=S2UD-X8EJanFL_Csj2Ufg9DVgnXDhFnItgh6qG6DwqI,1508
43
- talentro_commons-0.19.13.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
- talentro_commons-0.19.13.dist-info/RECORD,,
41
+ talentro/vacancies/taxanomy.py,sha256=B6DMq9Wbs0aXFwD9aZveSlLwAC9eq1iCO_KM-FmrV7M,6384
42
+ talentro_commons-0.19.15.dist-info/METADATA,sha256=3IaFP9pscJFWmA05BVTrAGhIpXnHBpBU2yaT2zvBHoc,1508
43
+ talentro_commons-0.19.15.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
+ talentro_commons-0.19.15.dist-info/RECORD,,