python-sdk-remote 0.0.212b3859__tar.gz → 0.0.215b3890__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.
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/pyproject.toml +1 -1
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/dot_env_files.py +8 -2
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/setup.py +1 -1
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/README.md +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/environment.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/filename.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/filesystem.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/masking.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_environment_variable.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/personal_repo.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/username.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "python-sdk-local"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.215b3890" # https://pypi.org/project/python-sdk-local
|
|
8
8
|
description = "python-sdk-local Python Package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -10,6 +10,8 @@ from .personal_repo import PERSONAL_REPO_DOT_ENV_DIRECTORY, get_personal_repo_pa
|
|
|
10
10
|
|
|
11
11
|
DOT_ENV_FILENAME = ".env"
|
|
12
12
|
|
|
13
|
+
# TODO We should update our our_get_env() ourGetEnv() to search also in /sdk-local/.env (in the end of the search process)
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
def get_dot_env_file_value(dot_env_filename: str, key: str) -> Optional[str]:
|
|
15
17
|
"""The value of key in a .env file, None when the file or the key is missing"""
|
|
@@ -66,7 +68,8 @@ def add_to_file_if_not_existed(file: str, key: str, value: Optional[str]) -> Non
|
|
|
66
68
|
else:
|
|
67
69
|
with open(file, "r") as f:
|
|
68
70
|
lines = f.readlines()
|
|
69
|
-
|
|
71
|
+
# lines are whole lines (i.e. "KEY=value" with its newline), so the key is looked up at the start of each one
|
|
72
|
+
if not any(line.startswith(f"{key}=") for line in lines):
|
|
70
73
|
with open(file, "a") as f:
|
|
71
74
|
f.write(f"{key}={value}\n")
|
|
72
75
|
logger.end()
|
|
@@ -75,6 +78,9 @@ def add_to_file_if_not_existed(file: str, key: str, value: Optional[str]) -> Non
|
|
|
75
78
|
def update_dot_env_example(key: str, value: Optional[str]):
|
|
76
79
|
# Avoid recursion by checking environment directly
|
|
77
80
|
env_name = os.getenv("ENVIRONMENT_NAME", "").lower()
|
|
78
|
-
|
|
81
|
+
# .env.example is the developer's list of the repo's variables, so it is written only on the developer computer.
|
|
82
|
+
# Elsewhere the directory can be read-only (AWS Lambda)
|
|
83
|
+
# TODO use the existing enum for environment names and not string "local1"
|
|
84
|
+
if env_name != "local1":
|
|
79
85
|
return
|
|
80
86
|
add_to_file_if_not_existed(file=".env.example", key=key, value=value)
|
|
@@ -8,7 +8,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
license='MIT',
|
|
10
10
|
name=PACKAGE_NAME,
|
|
11
|
-
version=
|
|
11
|
+
version="0.0.215b3890", # https://pypi.org/project/python-sdk-remote#history
|
|
12
12
|
author="Circles",
|
|
13
13
|
author_email="info@circlez.ai",
|
|
14
14
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/filename.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/item.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/masking.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
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/username.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.215b3890}/python_sdk_remote/src/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|