databricks-sql-connector 0.9.3__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,16 @@
1
+ v0.9.3
2
+ - Add retries for 429 and 503 HTTP responses.
3
+
4
+ v0.9.2 (December 2, 2021)
5
+ - (Bug fix) Increased Thrift requirement from 0.10.0 to 0.13.0 as 0.10.0 was in fact incompatible
6
+ - (Bug fix) Fixed error message after query execution failed - SQLSTATE and Error message were misplaced
7
+
8
+ v0.9.1 - Sept 1, 2021
9
+ - Public Preview release, Experimental tag removed
10
+ - minor updates in internal build/packaging
11
+ - no functional changes
12
+
13
+ v0.9.0 - Aug 4, 2021
14
+ - initial (Experimental) release of pyhive-forked connector
15
+ - Python DBAPI 2.0 (PEP-0249), thrift based
16
+ - see docs for more info: https://docs.databricks.com/dev-tools/python-sql-connector.html
@@ -0,0 +1,13 @@
1
+ Copyright 2021-present Databricks Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,23 @@
1
+ databricks-sql-connector
2
+ Copyright 2021-present Databricks, Inc.
3
+ All Rights Reserved
4
+
5
+ This product is subject to the included LICENSE file and
6
+ includes source code derived from software mentioned below.
7
+
8
+ ---
9
+ https://github.com/dropbox/PyHive
10
+ Copyright (c) 2014 Dropbox, Inc.
11
+
12
+ Licensed under the Apache License, Version 2.0 (the "License");
13
+ you may not use this file except in compliance with the License.
14
+ You may obtain a copy of the License at
15
+
16
+ http://www.apache.org/licenses/LICENSE-2.0
17
+
18
+ Unless required by applicable law or agreed to in writing, software
19
+ distributed under the License is distributed on an "AS IS" BASIS,
20
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ See the License for the specific language governing permissions and
22
+ limitations under the License.LICENSE file containing the Databricks license
23
+ ---
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: databricks-sql-connector
3
+ Version: 0.9.3
4
+ Summary: Databricks SQL Connector for Python
5
+ Home-page: https://databricks.com
6
+ Author: Databricks
7
+ Author-email: feedback@databricks.com
8
+ License: http://www.apache.org/licenses/LICENSE-2.0
9
+ Platform: UNKNOWN
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Topic :: Database :: Front-Ends
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ License-File: NOTICE
17
+
18
+ # Databricks SQL Connector for Python
19
+
20
+ **Status: Public Preview**
21
+
22
+ This library is currently shared as [Public Preview](https://docs.databricks.com/release-notes/release-types.html). Documentation can be found here: [Databricks SQL Connector for Python
23
+ ](https://docs.databricks.com/dev-tools/python-sql-connector.html).
24
+
25
+ ## About
26
+
27
+ The Databricks SQL Connector is a Python library that allows you to use Python code to run
28
+ SQL commands on Databricks clusters and Databricks SQL endpoints.
29
+ This library follows [PEP 249 -- Python Database API Specification v2.0](https://www.python.org/dev/peps/pep-0249/).
30
+
31
+ ## Quickstart
32
+
33
+ Install the library with `pip install databricks-sql-connector`
34
+
35
+ Example usage:
36
+
37
+ ```
38
+ from databricks import sql
39
+
40
+ connection = sql.connect(
41
+ server_hostname='<server-hostname>',
42
+ http_path='<http-path>',
43
+ access_token='<personal-access-token>')
44
+
45
+ cursor = connection.cursor()
46
+
47
+ cursor.execute('SELECT * FROM RANGE(10)')
48
+ result = cursor.fetchall()
49
+ for row in result:
50
+ print(row)
51
+
52
+ cursor.close()
53
+ connection.close()
54
+ ```
55
+
56
+ Where:
57
+ - `<server-hostname>` is the Databricks instance host name.
58
+ - `<http-path>` is the HTTP Path either to a Databricks SQL endpoint (e.g. /sql/1.0/endpoints/1234567890abcdef),
59
+ or to a Databricks Runtime interactive cluster (e.g. /sql/protocolv1/o/1234567890123456/1234-123456-slid123)
60
+ - `<personal-access-token>` is a HTTP Bearer access token, e.g. a Databricks Personal Access Token.
61
+
62
+ For more information, see [Databricks documentation](https://docs.databricks.com/dev-tools/python-sql-connector.html).
63
+
64
+
@@ -0,0 +1,45 @@
1
+ # Databricks SQL Connector for Python
2
+
3
+ **Status: Public Preview**
4
+
5
+ This library is currently shared as [Public Preview](https://docs.databricks.com/release-notes/release-types.html). Documentation can be found here: [Databricks SQL Connector for Python
6
+ ](https://docs.databricks.com/dev-tools/python-sql-connector.html).
7
+
8
+ ## About
9
+
10
+ The Databricks SQL Connector is a Python library that allows you to use Python code to run
11
+ SQL commands on Databricks clusters and Databricks SQL endpoints.
12
+ This library follows [PEP 249 -- Python Database API Specification v2.0](https://www.python.org/dev/peps/pep-0249/).
13
+
14
+ ## Quickstart
15
+
16
+ Install the library with `pip install databricks-sql-connector`
17
+
18
+ Example usage:
19
+
20
+ ```
21
+ from databricks import sql
22
+
23
+ connection = sql.connect(
24
+ server_hostname='<server-hostname>',
25
+ http_path='<http-path>',
26
+ access_token='<personal-access-token>')
27
+
28
+ cursor = connection.cursor()
29
+
30
+ cursor.execute('SELECT * FROM RANGE(10)')
31
+ result = cursor.fetchall()
32
+ for row in result:
33
+ print(row)
34
+
35
+ cursor.close()
36
+ connection.close()
37
+ ```
38
+
39
+ Where:
40
+ - `<server-hostname>` is the Databricks instance host name.
41
+ - `<http-path>` is the HTTP Path either to a Databricks SQL endpoint (e.g. /sql/1.0/endpoints/1234567890abcdef),
42
+ or to a Databricks Runtime interactive cluster (e.g. /sql/protocolv1/o/1234567890123456/1234-123456-slid123)
43
+ - `<personal-access-token>` is a HTTP Bearer access token, e.g. a Databricks Personal Access Token.
44
+
45
+ For more information, see [Databricks documentation](https://docs.databricks.com/dev-tools/python-sql-connector.html).
@@ -0,0 +1 @@
1
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)