hana-cloud-interface 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl

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.

@@ -13,8 +13,8 @@ import polars as pl
13
13
  import pandas as pd
14
14
  import os
15
15
 
16
- config_file = r'C:\python\Hana_Cloud_interface\hc_oauth_config.json'
17
- Browser_override = r'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
16
+ config_file = ''
17
+ Browser_override = ''
18
18
  data_frame_type = 'pandas' # Default data frame type for hana_sql function
19
19
  debug = False
20
20
 
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.3
2
+ Name: hana-cloud-interface
3
+ Version: 0.1.5
4
+ Summary: Runs a SQL command on SAP HANA Cloud using OAuth single sign on and returns a pandas or polars dataframe
5
+ Author: charlotte corpe
6
+ Author-email: charlotte corpe <charlotte.corpe@powerco.co.nz>
7
+ Requires-Dist: keyring
8
+ Requires-Dist: hdbcli
9
+ Requires-Dist: polars
10
+ Requires-Dist: pandas
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+
14
+ # Usage of the `hana_cloud_interface` package
15
+
16
+ This package provides a simple interface to connect to SAP HANA Cloud databases and execute SQL queries. Below are some examples of how to use the package.
17
+
18
+
19
+ ## example
20
+ the main function is very simple It takes a SQL command as a string and returns the data
21
+ ```python
22
+ import hana_cloud_interface as hci
23
+
24
+ sql_command = """
25
+ SELECT top 10
26
+ "data1"
27
+ "data2"
28
+ FROM "table1"
29
+ """
30
+
31
+ data = hci.hana_sql(sql_command)
32
+
33
+ ```
34
+
35
+ ## Configuration file
36
+ You need specify the location of your configuration file by setting the `config_file` attribute of the `hci` module. For example:
37
+
38
+ ```python
39
+ hci.config_file = 'location of configuration file'
40
+ ```
41
+ the configuration file is a .json file
42
+ ```python
43
+ {
44
+ "CLIENT_ID": "",
45
+ "CLIENT_SECRET": "",
46
+ "AUTH_URL": "",
47
+ "TOKEN_URL": "",
48
+ "protected_url": "",
49
+ "REDIRECT_URI": "",
50
+ "SCOPE": "",
51
+ "HC_prod_URL": ""
52
+ }
53
+ ```
@@ -0,0 +1,6 @@
1
+ hana_cloud_interface/__init__.py,sha256=afee63541644ae210da90e08e3cee1af035edaa6905ff49ee2ac2aca921e6897,74
2
+ hana_cloud_interface/main.py,sha256=7efa064a184742ddf9255ec8de4ff326deec495aa4af7fd297d662cfc8091cf1,8923
3
+ hana_cloud_interface/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
4
+ hana_cloud_interface-0.1.5.dist-info/WHEEL,sha256=b70116f4076fa664af162441d2ba3754dbb4ec63e09d563bdc1e9ab023cce400,78
5
+ hana_cloud_interface-0.1.5.dist-info/METADATA,sha256=1b2342c771e8c91f30a03ecff86a9a3fe29450bd7363089803ea9b5764ac6900,1373
6
+ hana_cloud_interface-0.1.5.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: hana-cloud-interface
3
- Version: 0.1.4
4
- Summary: Runs a SQL command on SAP HANA Cloud using OAuth single sign on and returns a pandas or polars dataframe
5
- Author: charlotte corpe
6
- Author-email: charlotte corpe <charlotte.corpe@powerco.co.nz>
7
- Requires-Dist: keyring
8
- Requires-Dist: hdbcli
9
- Requires-Dist: polars
10
- Requires-Dist: pandas
11
- Requires-Python: >=3.12
12
- Description-Content-Type: text/markdown
13
-
@@ -1,6 +0,0 @@
1
- hana_cloud_interface/__init__.py,sha256=afee63541644ae210da90e08e3cee1af035edaa6905ff49ee2ac2aca921e6897,74
2
- hana_cloud_interface/main.py,sha256=123fc760b710e70e85564de442f06a7810ab311a85f6995864d083976e06538a,9036
3
- hana_cloud_interface/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
4
- hana_cloud_interface-0.1.4.dist-info/WHEEL,sha256=b70116f4076fa664af162441d2ba3754dbb4ec63e09d563bdc1e9ab023cce400,78
5
- hana_cloud_interface-0.1.4.dist-info/METADATA,sha256=1f4beef9c115ff3f16be964202a5ddab8fd558c4f5bd081000870049fdab5822,418
6
- hana_cloud_interface-0.1.4.dist-info/RECORD,,