rb-commons 0.7.10__py3-none-any.whl → 0.7.11__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.
rb_commons/utils/media.py CHANGED
@@ -7,6 +7,7 @@ from rb_commons.orm.enum import MediaSource
7
7
  class MediaUtils:
8
8
  BILLZ_S3_ENDPOINT_URL = "https://cdn-grocery.billz.ai/billz"
9
9
  BITTO_S3_ENDPOINT_URL = "https://api.bito.uz/upload-api/public/uploads"
10
+ EURO_PHARM_S3_ENDPOINT_URL = "https://api.europharm.uz/images/click_webp"
10
11
 
11
12
  @classmethod
12
13
  def url_builder(cls, key: str, source: Optional[MediaSource] = MediaSource.ROBO):
@@ -27,5 +28,7 @@ class MediaUtils:
27
28
  media_url = f"{cls.BILLZ_S3_ENDPOINT_URL}/{key}"
28
29
  elif source == MediaSource.BITO:
29
30
  media_url = f"{cls.BITTO_S3_ENDPOINT_URL}/{key}"
31
+ elif source == MediaSource.EUROPHARM:
32
+ media_url = f"{cls.EURO_PHARM_S3_ENDPOINT_URL}/{key}"
30
33
 
31
34
  return media_url
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rb-commons
3
- Version: 0.7.10
3
+ Version: 0.7.11
4
4
  Summary: Commons of project and simplified orm based on sqlalchemy.
5
5
  Home-page: https://github.com/RoboSell-organization/rb-commons
6
6
  Author: Abdulvoris
@@ -23,8 +23,8 @@ rb_commons/schemes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
23
23
  rb_commons/schemes/jwt.py,sha256=ZKLJ5D3fcEmEKySjzbxEgUcza4K-oPoHr14_Z0r9Yic,2495
24
24
  rb_commons/schemes/pagination.py,sha256=8VZW1wZGJIPR9jEBUgppZUoB4uqP8ORudHkMwvEJSxg,1866
25
25
  rb_commons/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- rb_commons/utils/media.py,sha256=yfOe3L1ZrylZpP-n-pN49UlP9zg7oAuG0BOq7PT-9Cs,1300
27
- rb_commons-0.7.10.dist-info/METADATA,sha256=7Z_LZ3yKop88LCt8piDYIvx6IBsUAzKAMtpd4m7PSl8,6571
28
- rb_commons-0.7.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- rb_commons-0.7.10.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
30
- rb_commons-0.7.10.dist-info/RECORD,,
26
+ rb_commons/utils/media.py,sha256=pwwGyImI5BK-NCJkX0Q6w2Nm-QL9_CCQC7B7O7wz38I,1493
27
+ rb_commons-0.7.11.dist-info/METADATA,sha256=cSLjA_IXkJGyBXHsoFIQQg7O-LorcVfLElemxHAkzMk,6571
28
+ rb_commons-0.7.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ rb_commons-0.7.11.dist-info/top_level.txt,sha256=HPx_WAYo3_fbg1WCeGHsz3wPGio1ucbnrlm2lmqlJog,11
30
+ rb_commons-0.7.11.dist-info/RECORD,,