python-sdk-remote 0.0.75__tar.gz → 0.0.77__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.
Potentially problematic release.
This version of python-sdk-remote might be problematic. Click here for more details.
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/PKG-INFO +1 -1
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/constants.py +1 -1
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/unified_json.py +0 -1
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/utilities.py +12 -1
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/SOURCES.txt +1 -2
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/setup.py +2 -3
- python-sdk-remote-0.0.75/python_sdk_remote/src/validate_environment.py +0 -43
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/README.md +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/pyproject.toml +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/__init__.py +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/item.py +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/mini_logger.py +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/our_object.py +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/setup.cfg +0 -0
|
@@ -2,11 +2,12 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
from datetime import date, datetime, time, timedelta
|
|
4
4
|
from urllib.parse import urlparse
|
|
5
|
-
from url_remote.environment_name_enum import EnvironmentName
|
|
6
5
|
|
|
7
6
|
from dotenv import load_dotenv
|
|
7
|
+
from url_remote.environment_name_enum import EnvironmentName
|
|
8
8
|
|
|
9
9
|
from .mini_logger import MiniLogger as logger
|
|
10
|
+
|
|
10
11
|
load_dotenv()
|
|
11
12
|
|
|
12
13
|
|
|
@@ -304,3 +305,13 @@ def get_sql_password() -> str:
|
|
|
304
305
|
|
|
305
306
|
def remove_digits(text: str) -> str:
|
|
306
307
|
return ''.join([i for i in text if not i.isdigit()])
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def validate_environment_variables():
|
|
311
|
+
"""This is done for cross variables validation, as single variables are validated by our_get_env.
|
|
312
|
+
This should be called only once."""
|
|
313
|
+
|
|
314
|
+
pass # No cross validation needed yet
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
validate_environment_variables()
|
{python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
@@ -13,5 +13,4 @@ python_sdk_remote/src/mini_logger.py
|
|
|
13
13
|
python_sdk_remote/src/our_object.py
|
|
14
14
|
python_sdk_remote/src/unified_json.py
|
|
15
15
|
python_sdk_remote/src/utilities.py
|
|
16
|
-
python_sdk_remote/src/valid_json_versions.py
|
|
17
|
-
python_sdk_remote/src/validate_environment.py
|
|
16
|
+
python_sdk_remote/src/valid_json_versions.py
|
|
@@ -3,12 +3,11 @@ import setuptools
|
|
|
3
3
|
PACKAGE_NAME = "python-sdk-remote"
|
|
4
4
|
package_dir = PACKAGE_NAME.replace("-", "_")
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
# used by python -m build
|
|
8
7
|
# python -m build needs pyproject.toml or setup.py
|
|
9
8
|
setuptools.setup(
|
|
10
9
|
name=PACKAGE_NAME,
|
|
11
|
-
version='0.0.
|
|
10
|
+
version='0.0.77', # https://pypi.org/project/python-sdk-remote/
|
|
12
11
|
author="Circles",
|
|
13
12
|
author_email="info@circles.life",
|
|
14
13
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
@@ -30,4 +29,4 @@ setuptools.setup(
|
|
|
30
29
|
"python-dotenv",
|
|
31
30
|
"url-remote"
|
|
32
31
|
]
|
|
33
|
-
)
|
|
32
|
+
)
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from .constants import BRAND_NAME, ENVIRONMENT_NAME, LOGZIO_TOKEN, GOOGLE_PORT_FOR_AUTHENTICATION
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# TODO Align with https://github.com/circles-zone/typescript-sdk-remote-typescript-package/edit/dev/typescript-sdk/src/utils/index.ts validateTenantEnvironmentVariables() # noqa501
|
|
5
|
-
# TODO: validate_enviroment_variables() -> validate_environment_variables()
|
|
6
|
-
def validate_enviroment_variables():
|
|
7
|
-
validate_brand_name()
|
|
8
|
-
validate_environment_name()
|
|
9
|
-
# if(os.getenv("PRODUCT_USER_IDENTIFIER") is None):
|
|
10
|
-
# raise Exception("logger-local-python-package LoggerLocal.py please add Environment Variable called "
|
|
11
|
-
# "PRODUCT_USER_IDENTIFIER (instead of PRODUCT_USERNAME)")
|
|
12
|
-
# removed by Idan because it dont has to be in every project
|
|
13
|
-
# TODO Shall we push those commented lines of code to the repo?
|
|
14
|
-
# if(os.getenv("PRODUCT_PASSWORD") is None):
|
|
15
|
-
# raise Exception("logger-local-python-package LoggerLocal.py please add Environment Variable called PRODUCT_PASSWORD")
|
|
16
|
-
validate_logzio_token()
|
|
17
|
-
validate_google_port_for_authentication()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
def validate_environment_name():
|
|
21
|
-
if ENVIRONMENT_NAME is None:
|
|
22
|
-
raise Exception("logger-local-python-package LoggerLocal.py please add Environment Variable called "
|
|
23
|
-
"ENVIRONMENT_NAME=local or play1 (instead of ENVIRONMENT)")
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def validate_brand_name():
|
|
27
|
-
if BRAND_NAME is None:
|
|
28
|
-
raise Exception(
|
|
29
|
-
"logger-local-python-package LoggerLocal.py please add Environment Variable called BRAND_NAME=Circlez")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def validate_logzio_token():
|
|
33
|
-
if LOGZIO_TOKEN is None:
|
|
34
|
-
raise Exception("logger-local-python-package LoggerLocal.py please add Environment Variable called"
|
|
35
|
-
" LOGZIO_TOKEN=cXNHuVkkffkilnkKzZlWExECRlSKqopE")
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def validate_google_port_for_authentication():
|
|
39
|
-
if GOOGLE_PORT_FOR_AUTHENTICATION is None:
|
|
40
|
-
# The port is 54219 because the authentication url is http://localhost:54219/
|
|
41
|
-
raise Exception("please add Environment Variable"
|
|
42
|
-
" PORT_FOR_AUTHENTICATION=54219 because"
|
|
43
|
-
" the authentication url is http://localhost:54219/")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python-sdk-remote-0.0.75 → python-sdk-remote-0.0.77}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|