python-sdk-remote 0.0.209b3767__tar.gz → 0.0.211b3839__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.209b3767 → python_sdk_remote-0.0.211b3839}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/http_response.py +14 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/setup.py +1 -1
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/README.md +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/dot_env_files.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/environment.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/filename.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/filesystem.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/masking.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_environment_variable.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/personal_repo.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/username.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/setup.cfg +0 -0
|
@@ -3,6 +3,7 @@ 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
|
|
6
7
|
from .mini_logger import MiniLogger as logger
|
|
7
8
|
from .utilities import camel_to_snake, snake_to_camel, to_dict, to_json
|
|
8
9
|
|
|
@@ -295,6 +296,19 @@ def create_ok_http_response(body: Any) -> dict:
|
|
|
295
296
|
return ok_http_response
|
|
296
297
|
|
|
297
298
|
|
|
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
|
+
|
|
298
312
|
def create_http_body(body: Any) -> str:
|
|
299
313
|
"""
|
|
300
314
|
Create HTTP response body as JSON string.
|
|
@@ -7,7 +7,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
7
7
|
# python -m build needs pyproject.toml or setup.py
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
name=PACKAGE_NAME,
|
|
10
|
-
version='0.0.
|
|
10
|
+
version='0.0.211b3839', # https://pypi.org/project/python-sdk-remote#history
|
|
11
11
|
author="Circles",
|
|
12
12
|
author_email="info@circlez.ai",
|
|
13
13
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/filename.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/item.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/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.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/username.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.209b3767 → python_sdk_remote-0.0.211b3839}/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
|