switch-api 0.6.16__tar.gz → 0.6.17__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.
- {switch_api-0.6.16 → switch_api-0.6.17}/HISTORY.md +7 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/PKG-INFO +8 -1
- {switch_api-0.6.16 → switch_api-0.6.17}/setup.py +1 -1
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/__init__.py +1 -1
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/integration/integration.py +3 -1
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api.egg-info/PKG-INFO +8 -1
- {switch_api-0.6.16 → switch_api-0.6.17}/AUTHORS.rst +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/LICENCE +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/MANIFEST.in +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/README.md +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/pyproject.toml +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/setup.cfg +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_authentication.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_credentials_store/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_credentials_store/_credentials_store.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_msal/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_msal/_custom_application.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/_commands.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/_compute.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/_iotservice.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/_models.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_compute/_utils.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_guide/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_guide/main.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_guide/processor.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/_constants.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/_marketplace.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/_mqtt.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/_platform.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_utils/_utils.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/analytics/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/analytics/analytics.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/cache/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/cache/cache.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/controls/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/controls/_constants.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/controls/_enums.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/controls/_mqtt.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/controls/controls.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/dataset/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/dataset/dataset.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/email/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/email/email_sender.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/error_handlers/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/error_handlers/error_handlers.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/extensions/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/extensions/extensions.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/extensions/field_meta.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/extensions/helpers.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/extensions/pipeline.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/initialize.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/integration/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/integration/_utils.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/integration/helpers.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/pipeline/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/pipeline/automation.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/pipeline/definitions.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/pipeline/pipeline.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/platform_insights/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/platform_insights/platform_insights.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/realtime/__init__.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/realtime/_mqtt.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api/realtime/realtime.py +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api.egg-info/SOURCES.txt +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api.egg-info/dependency_links.txt +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api.egg-info/requires.txt +0 -0
- {switch_api-0.6.16 → switch_api-0.6.17}/switch_api.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# History
|
|
2
2
|
|
|
3
|
+
#0.6.17
|
|
4
|
+
### Changed
|
|
5
|
+
In the `integration` module:
|
|
6
|
+
- Updated `upsert_sites()` to support `YearBuilt` and `Floors` as optional columns when upserting sites.
|
|
7
|
+
- Documented `YearBuilt` and `Floors` in the `upsert_sites()` accepted fields list.
|
|
8
|
+
- `get_sites()` now also returns `YearBuilt` and `Floors` columns.
|
|
9
|
+
|
|
3
10
|
#0.6.16
|
|
4
11
|
### Changed
|
|
5
12
|
In the `controls` module:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: switch_api
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.17
|
|
4
4
|
Summary: A complete package for data ingestion into the Switch Automation Platform.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Switch Automation Pty Ltd.
|
|
@@ -38,6 +38,13 @@ pip install switch_api
|
|
|
38
38
|
|
|
39
39
|
# History
|
|
40
40
|
|
|
41
|
+
#0.6.17
|
|
42
|
+
### Changed
|
|
43
|
+
In the `integration` module:
|
|
44
|
+
- Updated `upsert_sites()` to support `YearBuilt` and `Floors` as optional columns when upserting sites.
|
|
45
|
+
- Documented `YearBuilt` and `Floors` in the `upsert_sites()` accepted fields list.
|
|
46
|
+
- `get_sites()` now also returns `YearBuilt` and `Floors` columns.
|
|
47
|
+
|
|
41
48
|
#0.6.16
|
|
42
49
|
### Changed
|
|
43
50
|
In the `controls` module:
|
|
@@ -16,7 +16,7 @@ setup(
|
|
|
16
16
|
long_description_content_type='text/markdown',
|
|
17
17
|
license='MIT License',
|
|
18
18
|
name="switch_api",
|
|
19
|
-
version="0.6.
|
|
19
|
+
version="0.6.17",
|
|
20
20
|
packages=find_packages(include=["switch_api", "switch_api.*"]),
|
|
21
21
|
install_requires=['pandas==1.5.3', 'requests', 'azure-storage-blob', 'pandera[io]==0.7.1', 'azure-servicebus',
|
|
22
22
|
'msal>=1.11.0', 'paho-mqtt==1.6.1', 'uvicorn==0.22.0', 'fastapi==0.98.0', 'pyodbc==4.0.39', 'cachetools==5.5.0',
|
|
@@ -840,6 +840,8 @@ def upsert_sites(df: pandas.DataFrame, api_inputs: ApiInputs, tag_columns: list
|
|
|
840
840
|
- Latitude
|
|
841
841
|
- Longitude
|
|
842
842
|
- Timezone
|
|
843
|
+
- YearBuilt
|
|
844
|
+
- Floors
|
|
843
845
|
- InstallationId
|
|
844
846
|
- The UUID of the existing site within the Switch Automation Platform.
|
|
845
847
|
|
|
@@ -871,7 +873,7 @@ def upsert_sites(df: pandas.DataFrame, api_inputs: ApiInputs, tag_columns: list
|
|
|
871
873
|
|
|
872
874
|
required_columns = ['InstallationName', 'InstallationCode', 'Address', 'Country', 'Suburb', 'State', 'StateName',
|
|
873
875
|
'FloorAreaM2', 'ZipPostCode']
|
|
874
|
-
optional_columns = ['Latitude', 'Longitude', 'Timezone', 'InstallationId']
|
|
876
|
+
optional_columns = ['Latitude', 'Longitude', 'Timezone', 'InstallationId', 'YearBuilt', 'Floors']
|
|
875
877
|
proposed_columns = data_frame.columns.tolist()
|
|
876
878
|
|
|
877
879
|
if not set(required_columns).issubset(proposed_columns):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: switch-api
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.17
|
|
4
4
|
Summary: A complete package for data ingestion into the Switch Automation Platform.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Switch Automation Pty Ltd.
|
|
@@ -38,6 +38,13 @@ pip install switch_api
|
|
|
38
38
|
|
|
39
39
|
# History
|
|
40
40
|
|
|
41
|
+
#0.6.17
|
|
42
|
+
### Changed
|
|
43
|
+
In the `integration` module:
|
|
44
|
+
- Updated `upsert_sites()` to support `YearBuilt` and `Floors` as optional columns when upserting sites.
|
|
45
|
+
- Documented `YearBuilt` and `Floors` in the `upsert_sites()` accepted fields list.
|
|
46
|
+
- `get_sites()` now also returns `YearBuilt` and `Floors` columns.
|
|
47
|
+
|
|
41
48
|
#0.6.16
|
|
42
49
|
### Changed
|
|
43
50
|
In the `controls` module:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_credentials_store/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{switch_api-0.6.16 → switch_api-0.6.17}/switch_api/_authentication/_msal/_custom_application.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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|