python-sdk-remote 0.0.211b3839__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.
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/PKG-INFO +3 -1
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/pyproject.toml +1 -1
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/dot_env_files.py +8 -2
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/http_response.py +0 -14
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/PKG-INFO +3 -1
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/setup.py +3 -2
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/README.md +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/environment.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filename.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filesystem.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/masking.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_environment_variable.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/personal_repo.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/username.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/setup.cfg +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-sdk-remote
|
|
3
|
-
Version: 0.0.
|
|
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
|
|
7
7
|
Author-email: info@circlez.ai
|
|
8
|
+
License: MIT
|
|
8
9
|
Classifier: Programming Language :: Python :: 3
|
|
9
10
|
Classifier: Operating System :: OS Independent
|
|
10
11
|
Description-Content-Type: text/markdown
|
|
@@ -19,6 +20,7 @@ Dynamic: classifier
|
|
|
19
20
|
Dynamic: description
|
|
20
21
|
Dynamic: description-content-type
|
|
21
22
|
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
22
24
|
Dynamic: requires-dist
|
|
23
25
|
Dynamic: summary
|
|
24
26
|
|
|
@@ -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.214" # https://pypi.org/project/python-sdk-local
|
|
8
8
|
description = "python-sdk-local Python Package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/dot_env_files.py
RENAMED
|
@@ -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)
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/http_response.py
RENAMED
|
@@ -3,7 +3,6 @@ from functools import wraps
|
|
|
3
3
|
from http import HTTPStatus
|
|
4
4
|
from typing import Any, Optional, overload
|
|
5
5
|
|
|
6
|
-
from .environment import get_environment_name
|
|
7
6
|
from .mini_logger import MiniLogger as logger
|
|
8
7
|
from .utilities import camel_to_snake, snake_to_camel, to_dict, to_json
|
|
9
8
|
|
|
@@ -296,19 +295,6 @@ def create_ok_http_response(body: Any) -> dict:
|
|
|
296
295
|
return ok_http_response
|
|
297
296
|
|
|
298
297
|
|
|
299
|
-
def create_health_check_http_response(service_name: str, package_version: str) -> dict:
|
|
300
|
-
"""Generic GET /health response for every service."""
|
|
301
|
-
logger.start(object={"service_name": service_name, "package_version": package_version})
|
|
302
|
-
health_check_http_response = create_ok_http_response({
|
|
303
|
-
"status": "healthy",
|
|
304
|
-
"serviceName": service_name,
|
|
305
|
-
"packageVersion": package_version,
|
|
306
|
-
"environmentName": get_environment_name(),
|
|
307
|
-
})
|
|
308
|
-
logger.end(object={"health_check_http_response": health_check_http_response})
|
|
309
|
-
return health_check_http_response
|
|
310
|
-
|
|
311
|
-
|
|
312
298
|
def create_http_body(body: Any) -> str:
|
|
313
299
|
"""
|
|
314
300
|
Create HTTP response body as JSON string.
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/PKG-INFO
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-sdk-remote
|
|
3
|
-
Version: 0.0.
|
|
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
|
|
7
7
|
Author-email: info@circlez.ai
|
|
8
|
+
License: MIT
|
|
8
9
|
Classifier: Programming Language :: Python :: 3
|
|
9
10
|
Classifier: Operating System :: OS Independent
|
|
10
11
|
Description-Content-Type: text/markdown
|
|
@@ -19,6 +20,7 @@ Dynamic: classifier
|
|
|
19
20
|
Dynamic: description
|
|
20
21
|
Dynamic: description-content-type
|
|
21
22
|
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
22
24
|
Dynamic: requires-dist
|
|
23
25
|
Dynamic: summary
|
|
24
26
|
|
|
@@ -6,8 +6,9 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
6
6
|
# Used by python -m build.
|
|
7
7
|
# python -m build needs pyproject.toml or setup.py
|
|
8
8
|
setuptools.setup(
|
|
9
|
+
license='MIT',
|
|
9
10
|
name=PACKAGE_NAME,
|
|
10
|
-
version='0.0.
|
|
11
|
+
version='0.0.214', # https://pypi.org/project/python-sdk-remote#history
|
|
11
12
|
author="Circles",
|
|
12
13
|
author_email="info@circlez.ai",
|
|
13
14
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
@@ -20,7 +21,7 @@ setuptools.setup(
|
|
|
20
21
|
classifiers=[
|
|
21
22
|
"Programming Language :: Python :: 3",
|
|
22
23
|
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
|
|
23
|
-
#
|
|
24
|
+
#
|
|
24
25
|
"Operating System :: OS Independent",
|
|
25
26
|
],
|
|
26
27
|
install_requires=[
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/datetime_range.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/environment.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filename.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/filesystem.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/generic_crud.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/masking.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_object.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/our_request.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/personal_repo.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/username.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote/src/version.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.211b3839 → python_sdk_remote-0.0.214}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|