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.
Metadata
Release files for bzync-nextsql 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bzync_nextsql-0.1.1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bzync_nextsql-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / bzync_nextsql-0.1.1.tar.gz
| Download URL | bzync_nextsql-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd8bef74e551356d31336667b3cb2c08f302a649789597dd0883872ea9a24c58
|
|
BLAKE2b-256 checksum How to use checksums |
a0d653c5e198e10d8222b3374a3682025d6c8b012b235646b4f2549d14abd110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logRelease files / bzync_nextsql-0.1.1-py3-none-any.whl
| Download URL | bzync_nextsql-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c931fc5099033c083341fac1fb75c655df8f34a43bebc7b25b6097abe90d531
|
|
BLAKE2b-256 checksum How to use checksums |
d11bd568851a84d16cec397edac60f039a7ce8a86b501c71a0c91773c26796ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency log