bzync-nextsql
Official NextSQL driver for Python 3.10+. Speaks the native NSQL v1 wire protocol over TLS 1.3. Pure standard library — no runtime dependencies.
Encryption keys and passwords are never accepted in a connection URL.
pip install bzync-nextsql
import nextsql
conn = nextsql.connect(nextsql.Config(
address="db.example.com:7210",
database="production",
user="app",
password=os.environ["NEXTSQL_DATABASE_PASS"],
tls=nextsql.TLSConfig(cafile="/etc/nextsql/ca.pem", server_name="db.example.com"),
))
try:
result = conn.exec("SELECT id, name FROM users WHERE id = $1", [1])
for row in result.rows:
print(row)
finally:
conn.close()
Plaintext connections are allowed only on loopback (insecure_no_tls=True).
For an HA cluster with follower-read routing, use nextsql.connect_cluster.
- Full driver docs: https://nextsql.bzync.com/docs/drivers
- Wire protocol: https://github.com/bzync/nextsql/blob/master/docs/protocol.md
MIT licensed.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bzync_nextsql-0.1.0.tar.gz.
File metadata
- Download URL: bzync_nextsql-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e6e5ea3c0e22e581c7429dead552c52bab74bbe2bc142b3ef53bf176fcc4cbd
|
|
| MD5 |
97de871fef8baf7d301ddc645d5aa938
|
|
| BLAKE2b-256 |
90e315f9fc08b96c757b3565e7998bfbe475177cdf427904d7fccbc6044a39f1
|
Provenance
The following attestation bundles were made for bzync_nextsql-0.1.0.tar.gz:
Publisher:
pypi-publish-python-driver.yml on bzync/nextsql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bzync_nextsql-0.1.0.tar.gz -
Subject digest:
1e6e5ea3c0e22e581c7429dead552c52bab74bbe2bc142b3ef53bf176fcc4cbd - Sigstore transparency entry: 2742367149
- Sigstore integration time:
-
Permalink:
bzync/nextsql@0fe59e91e0c4a8b39a60b596b7ca6d0b86a07e94 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/bzync
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-python-driver.yml@0fe59e91e0c4a8b39a60b596b7ca6d0b86a07e94 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bzync_nextsql-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bzync_nextsql-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7aa3a9c798a9dbec4587b473493a94c127d55b562f2742ac8ecbd8667ffbef2
|
|
| MD5 |
b26e58dcf1e6d5b73f877d3a0f5c0726
|
|
| BLAKE2b-256 |
806ef7515ba007ee3e85dcf8951157f5a3f7caa9ed3d7cdab696a711492d387d
|
Provenance
The following attestation bundles were made for bzync_nextsql-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish-python-driver.yml on bzync/nextsql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bzync_nextsql-0.1.0-py3-none-any.whl -
Subject digest:
b7aa3a9c798a9dbec4587b473493a94c127d55b562f2742ac8ecbd8667ffbef2 - Sigstore transparency entry: 2742367152
- Sigstore integration time:
-
Permalink:
bzync/nextsql@0fe59e91e0c4a8b39a60b596b7ca6d0b86a07e94 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/bzync
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-python-driver.yml@0fe59e91e0c4a8b39a60b596b7ca6d0b86a07e94 -
Trigger Event:
push
-
Statement type: