python-sdk-remote 0.0.212b3859__tar.gz → 0.0.214__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.
Files changed (41) hide show
  1. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/PKG-INFO +1 -1
  2. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/pyproject.toml +1 -1
  3. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/dot_env_files.py +8 -2
  4. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/PKG-INFO +1 -1
  5. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/setup.py +1 -1
  6. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/README.md +0 -0
  7. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/__init__.py +0 -0
  8. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/constants.py +0 -0
  9. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
  10. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/datetime_range.py +0 -0
  11. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/environment.py +0 -0
  12. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/environment_variable_exception.py +0 -0
  13. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filename.py +0 -0
  14. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filesystem.py +0 -0
  15. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/generic_crud.py +0 -0
  16. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/http_response.py +0 -0
  17. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/is_test_data.py +0 -0
  18. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/item.py +0 -0
  19. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/masking.py +0 -0
  20. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/mini_logger.py +0 -0
  21. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_environment_variable.py +0 -0
  22. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
  23. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_obfuscation.py +0 -0
  24. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_object.py +0 -0
  25. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects.py +0 -0
  26. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects_local.py +0 -0
  27. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects_remote.py +0 -0
  28. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_request.py +0 -0
  29. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_request_old.py +0 -0
  30. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/personal_repo.py +0 -0
  31. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/unified_json.py +0 -0
  32. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/username.py +0 -0
  33. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/utilities.py +0 -0
  34. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/valid_json_versions.py +0 -0
  35. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/validate_environment.py +0 -0
  36. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote/src/version.py +0 -0
  37. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
  38. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
  39. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/requires.txt +0 -0
  40. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/top_level.txt +0 -0
  41. {python_sdk_remote-0.0.212b3859 → python_sdk_remote-0.0.214}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-remote
3
- Version: 0.0.212b3859
3
+ Version: 0.0.214
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -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.76" # https://pypi.org/project/python-sdk-local
7
+ version = "0.0.214" # 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
- if f"{key}=" not in lines:
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
- if env_name == "play1":
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-remote
3
- Version: 0.0.212b3859
3
+ Version: 0.0.214
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -8,7 +8,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
8
8
  setuptools.setup(
9
9
  license='MIT',
10
10
  name=PACKAGE_NAME,
11
- version='0.0.212b3859', # https://pypi.org/project/python-sdk-remote#history
11
+ version='0.0.214', # 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",