bzync-nextsql 0.1.0__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.
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: bzync-nextsql
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official NextSQL Python driver. Speaks the native NSQL v1 protocol.
|
|
5
|
+
Project-URL: Homepage, https://nextsql.bzync.com/docs/drivers
|
|
6
|
+
Project-URL: Source, https://github.com/bzync/nextsql/tree/master/drivers/python
|
|
7
|
+
Project-URL: Issues, https://github.com/bzync/nextsql/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/bzync/nextsql/blob/master/CHANGELOG.md
|
|
9
|
+
Author: Rayan Reynaldo
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: client,database,driver,encryption,full-text-search,nextsql,sql,vector
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Topic :: Database :: Front-Ends
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# bzync-nextsql
|
|
22
|
+
|
|
23
|
+
Official [NextSQL](https://nextsql.bzync.com) driver for Python 3.10+. Speaks the
|
|
24
|
+
native NSQL v1 wire protocol over TLS 1.3. Pure standard library — no
|
|
25
|
+
runtime dependencies.
|
|
26
|
+
|
|
27
|
+
Encryption keys and passwords are **never** accepted in a connection URL.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install bzync-nextsql
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
import nextsql
|
|
35
|
+
|
|
36
|
+
conn = nextsql.connect(nextsql.Config(
|
|
37
|
+
address="db.example.com:7210",
|
|
38
|
+
database="production",
|
|
39
|
+
user="app",
|
|
40
|
+
password=os.environ["NEXTSQL_DATABASE_PASS"],
|
|
41
|
+
tls=nextsql.TLSConfig(cafile="/etc/nextsql/ca.pem", server_name="db.example.com"),
|
|
42
|
+
))
|
|
43
|
+
try:
|
|
44
|
+
result = conn.exec("SELECT id, name FROM users WHERE id = $1", [1])
|
|
45
|
+
for row in result.rows:
|
|
46
|
+
print(row)
|
|
47
|
+
finally:
|
|
48
|
+
conn.close()
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Plaintext connections are allowed only on loopback (`insecure_no_tls=True`).
|
|
52
|
+
For an HA cluster with follower-read routing, use `nextsql.connect_cluster`.
|
|
53
|
+
|
|
54
|
+
- Full driver docs: <https://nextsql.bzync.com/docs/drivers>
|
|
55
|
+
- Wire protocol: <https://github.com/bzync/nextsql/blob/master/docs/protocol.md>
|
|
56
|
+
|
|
57
|
+
MIT licensed.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
bzync_nextsql-0.1.0.dist-info/METADATA,sha256=nBt2iveY1TdCrhzfcSXgXmcNHGlHc26I6w4e6U5LeYk,1923
|
|
2
|
+
bzync_nextsql-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
3
|
+
bzync_nextsql-0.1.0.dist-info/licenses/LICENSE,sha256=6qPHVpA6uPX618mssZo6tD2v_teitSx-PqRM6uKXOIA,1092
|
|
4
|
+
bzync_nextsql-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bzync Software Development Services
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|