python-sdk-local 0.0.2__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.
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.1
2
+ Name: python-sdk-local
3
+ Version: 0.0.2
4
+ Summary: PyPI Package for Circles Python SDK Local Python
5
+ Home-page: https://github.com/circles
6
+ Author: Circles
7
+ Author-email: info@circles.life
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Operating System :: OS Independent
11
+ Description-Content-Type: text/markdown
12
+
13
+ This is a package for sharing common XXX function used in different repositories
@@ -0,0 +1,21 @@
1
+ # python-package-backend-template
2
+ To create local package and remote package layers (not to create GraphQL and REST-API layers)
3
+
4
+ #database Python scripts in /db folder
5
+ Please place <table-name>.py in /db<br>
6
+ No need for seperate file for _ml table<br>
7
+ Please delete the example file if not needed<br>
8
+
9
+ # Create the files to create the database schema, tables, view and populate Meta Data and Test Date
10
+ /db/<table-name>.py - CREATE SCHEMA ... CREATE TABLE ... CREATE VIEW ...<br>
11
+ /db/<table-name>_insert.py to create records
12
+
13
+ # Update the setup.py (i.e.name, version)
14
+
15
+ # Please create test directory inside the directory of the project i.e. /<project-name>/tests
16
+
17
+ # Update the serverless.yml in the root directory
18
+ provider:
19
+ stage: play1
20
+
21
+ Update the endpoints in serverless.yml
File without changes
@@ -0,0 +1,35 @@
1
+ import datetime
2
+ from logger_local.LoggerComponentEnum import LoggerComponentEnum
3
+ from dotenv import load_dotenv
4
+ load_dotenv()
5
+ from logger_local.Logger import Logger
6
+
7
+ PYTHON_SDK_LOCAL_COMPONENT_ID = 184
8
+ PYTHON_SDK_LOCAL_COMPONENT_NAME = 'python_sdk_local/src/utilities.py'
9
+
10
+ obj = {
11
+ 'component_id': PYTHON_SDK_LOCAL_COMPONENT_ID,
12
+ 'component_name': PYTHON_SDK_LOCAL_COMPONENT_NAME,
13
+ 'component_category': LoggerComponentEnum.ComponentCategory.Code.value,
14
+ 'developer_email': 'tal.g@circ.zone'
15
+ }
16
+
17
+ logger=Logger.create_logger(object=obj)
18
+
19
+ def timedelta_to_time_format(timedelta: datetime.timedelta):
20
+ TIMEDELTA_TO_TIME_FORMAT_METHOD_NAME = "timedelta_to_time_format"
21
+ logger.start(TIMEDELTA_TO_TIME_FORMAT_METHOD_NAME)
22
+ #The following line will cause TypeError: Object of type timedelta is not JSON serializable
23
+ #logger.start(TIMEDELTA_TO_TIME_FORMAT_METHOD_NAME, object={'timedelta': timedelta})
24
+
25
+ # Calculate the total seconds and convert to HH:MM:SS format
26
+ total_seconds = int(timedelta.total_seconds())
27
+ hours = total_seconds // 3600
28
+ minutes = (total_seconds % 3600) // 60
29
+ seconds = total_seconds % 60
30
+
31
+ # Format as "HH:MM:SS"
32
+ formatted_time = f"{hours:02d}:{minutes:02d}:{seconds:02d}"
33
+
34
+ logger.end(TIMEDELTA_TO_TIME_FORMAT_METHOD_NAME, object={'formatted_time': formatted_time})
35
+ return formatted_time
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.1
2
+ Name: python-sdk-local
3
+ Version: 0.0.2
4
+ Summary: PyPI Package for Circles Python SDK Local Python
5
+ Home-page: https://github.com/circles
6
+ Author: Circles
7
+ Author-email: info@circles.life
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Operating System :: OS Independent
11
+ Description-Content-Type: text/markdown
12
+
13
+ This is a package for sharing common XXX function used in different repositories
@@ -0,0 +1,9 @@
1
+ README.md
2
+ setup.py
3
+ python_sdk_local/__init__.py
4
+ python_sdk_local.egg-info/PKG-INFO
5
+ python_sdk_local.egg-info/SOURCES.txt
6
+ python_sdk_local.egg-info/dependency_links.txt
7
+ python_sdk_local.egg-info/top_level.txt
8
+ python_sdk_local/src/__init__.py
9
+ python_sdk_local/src/utilities.py
@@ -0,0 +1 @@
1
+ python_sdk_local
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,20 @@
1
+ import setuptools
2
+ # used by python -m build
3
+ # python -m build needs pyproject.toml or setup.py
4
+ setuptools.setup(
5
+ name='python-sdk-local',
6
+ version='0.0.2', #https://pypi.org/project/python-sdk-local/
7
+ author="Circles",
8
+ author_email="info@circles.life",
9
+ description="PyPI Package for Circles Python SDK Local Python",
10
+ # TODO: Please update the long description and delete this line
11
+ long_description="This is a package for sharing common XXX function used in different repositories",
12
+ long_description_content_type="text/markdown",
13
+ url="https://github.com/circles",
14
+ packages=setuptools.find_packages(),
15
+ classifiers=[
16
+ "Programming Language :: Python :: 3",
17
+ "License :: Other/Proprietary License",
18
+ "Operating System :: OS Independent",
19
+ ],
20
+ )