hana-cloud-interface 0.1.8__tar.gz → 0.1.9__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.
Potentially problematic release.
This version of hana-cloud-interface might be problematic. Click here for more details.
- {hana_cloud_interface-0.1.8 → hana_cloud_interface-0.1.9}/PKG-INFO +1 -1
- {hana_cloud_interface-0.1.8 → hana_cloud_interface-0.1.9}/pyproject.toml +1 -1
- hana_cloud_interface-0.1.9/src/hana_cloud_interface/__init__.py +1 -0
- {hana_cloud_interface-0.1.8 → hana_cloud_interface-0.1.9}/src/hana_cloud_interface/main.py +11 -1
- hana_cloud_interface-0.1.8/src/hana_cloud_interface/__init__.py +0 -1
- {hana_cloud_interface-0.1.8 → hana_cloud_interface-0.1.9}/README.md +0 -0
- {hana_cloud_interface-0.1.8 → hana_cloud_interface-0.1.9}/src/hana_cloud_interface/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hana-cloud-interface
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Runs a SQL command on SAP HANA Cloud using OAuth single sign on and returns a pandas or polars dataframe
|
|
5
5
|
Author: charlotte corpe
|
|
6
6
|
Author-email: charlotte corpe <charlotte.corpe@powerco.co.nz>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .main import hana_sql, initialize_settings, hana_upload, Validate_token
|
|
@@ -278,4 +278,14 @@ def hana_upload(data, data_name, SCHEMA):
|
|
|
278
278
|
schema=SCHEMA,
|
|
279
279
|
force=True, # True: truncate and insert
|
|
280
280
|
replace=True) # True: Null is replaced by 0
|
|
281
|
-
return True
|
|
281
|
+
return True
|
|
282
|
+
|
|
283
|
+
def Validate_token():
|
|
284
|
+
"""
|
|
285
|
+
Validates the current authentication token by retrieving it using `get_token()` and closing the associated cursor.
|
|
286
|
+
Returns:
|
|
287
|
+
None
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
cursor = get_token()
|
|
291
|
+
cursor.close()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .main import hana_sql, initialize_settings, hana_upload
|
|
File without changes
|
|
File without changes
|