From 5df4059a38ab0428c23c8213337e96bceae4b824 Mon Sep 17 00:00:00 2001 From: Adrien Baltardive Date: Mon, 13 May 2024 17:15:14 +0700 Subject: [PATCH 1/5] 0.0.3-tests --- .../acte_data_report_sdk.py | 0 pyproject.toml | 32 ------------------- setup.py | 24 ++++++++++++++ src/__init__.py | 3 -- 4 files changed, 24 insertions(+), 35 deletions(-) rename {src => acte_data_report_sdk}/acte_data_report_sdk.py (100%) delete mode 100644 pyproject.toml create mode 100644 setup.py delete mode 100644 src/__init__.py diff --git a/src/acte_data_report_sdk.py b/acte_data_report_sdk/acte_data_report_sdk.py similarity index 100% rename from src/acte_data_report_sdk.py rename to acte_data_report_sdk/acte_data_report_sdk.py diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 967f185..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,32 +0,0 @@ -# pyproject.toml - -[build-system] -requires = ["setuptools>=61.0.0", "wheel"] -build-backend = "setuptools.build_meta" - -[project] -name = "data-reporting-python-sdk" -version = "0.0.2" -description = "Connect to ACTE Technology data reporting API" -readme = "README.md" -authors = [{ name = "ACTE Technology", email = "support@acte.ltd" }] -license = { file = "LICENSE" } -classifiers = [ - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", -] -keywords = ["iot", "connector", "report"] -dependencies = [ - "requests", -] -requires-python = ">=3.9" - -# [project.optional-dependencies] -# dev = ["black", "bumpver", "isort", "pip-tools", "pytest"] - -[project.urls] -Homepage = "https://gitlab.acte.solutions/adrien/data-reporting-python-sdk" - -# [project.scripts] -# realpython = "reader.__main__:main" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0d91e7c --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + +VERSION = '0.0.3' +DESCRIPTION = 'Connect to ACTE Technology data reporting API' +LONG_DESCRIPTION = 'Connect to ACTE Technology data reporting API' + +# Setting up +setup( + name="acte_data_report_sdk", + version=VERSION, + author="ACTE Technology", + author_email="", + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + packages=find_packages(), + install_requires=['requests'], + keywords=["iot", "connector", "report"] + classifiers= [ + "Development Status :: 3 - Alpha", + "Programming Language :: Python :: 3", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + ] +) diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index 4f91233..0000000 --- a/src/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from . import acte_data_report_sdk - -__version__ = "0.0.2" -- GitLab From 5d831f5ccf8080cea8bf5b069d230da600f85b29 Mon Sep 17 00:00:00 2001 From: Adrien Baltardive Date: Mon, 13 May 2024 17:17:20 +0700 Subject: [PATCH 2/5] 0.0.3-tests --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0d91e7c..a1c8720 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( long_description=LONG_DESCRIPTION, packages=find_packages(), install_requires=['requests'], - keywords=["iot", "connector", "report"] + keywords=["iot", "connector", "report"], classifiers= [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", -- GitLab From a5e8e59073be86ee2e718602d989f3ea77f95c6a Mon Sep 17 00:00:00 2001 From: Adrien Baltardive Date: Mon, 13 May 2024 17:18:54 +0700 Subject: [PATCH 3/5] 0.0.3-tests --- acte_data_report_sdk/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 acte_data_report_sdk/__init__.py diff --git a/acte_data_report_sdk/__init__.py b/acte_data_report_sdk/__init__.py new file mode 100644 index 0000000..7415b5b --- /dev/null +++ b/acte_data_report_sdk/__init__.py @@ -0,0 +1 @@ +from . import acte_data_report_sdk -- GitLab From e633186a77b2f9ec26b9a31c0d4b561c27a65523 Mon Sep 17 00:00:00 2001 From: Adrien Baltardive Date: Mon, 13 May 2024 17:20:12 +0700 Subject: [PATCH 4/5] 0.0.3-tests --- acte_data_report_sdk/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acte_data_report_sdk/__init__.py b/acte_data_report_sdk/__init__.py index 7415b5b..56d020b 100644 --- a/acte_data_report_sdk/__init__.py +++ b/acte_data_report_sdk/__init__.py @@ -1 +1 @@ -from . import acte_data_report_sdk +from acte_data_report_sdk import * -- GitLab From 2722b49808699128a5aa33b112e9c766d045239f Mon Sep 17 00:00:00 2001 From: Adrien Baltardive Date: Mon, 13 May 2024 17:26:17 +0700 Subject: [PATCH 5/5] 0.0.3 --- README.md | 6 +++--- acte_data_report_sdk/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b46e29..c9243c5 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,19 @@ ```python -from acte_data_report_sdk import ReportApi +from acte_data_report_sdk import acte_data_report_sdk from pprint import pprint from datetime import datetime, timedelta # Configuration variables API_USERNAME = "YOUR_USERNAME" API_PASSWORD = "YOUR_PASSWORD" -BASE_URL = "https://gw7.acte.ltd" +BASE_URL = "https://XXX.acte.ltd" db = "DATA_DB" # database # init api class and connect -api = ReportApi(BASE_URL) +api = acte_data_report_sdk.ReportApi(BASE_URL) api.connect(API_USERNAME, API_PASSWORD) # get allowed databases diff --git a/acte_data_report_sdk/__init__.py b/acte_data_report_sdk/__init__.py index 56d020b..7415b5b 100644 --- a/acte_data_report_sdk/__init__.py +++ b/acte_data_report_sdk/__init__.py @@ -1 +1 @@ -from acte_data_report_sdk import * +from . import acte_data_report_sdk -- GitLab