Skip to main content

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.

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

bzync_nextsql-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bzync_nextsql-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for bzync_nextsql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e6e5ea3c0e22e581c7429dead552c52bab74bbe2bc142b3ef53bf176fcc4cbd
MD5 97de871fef8baf7d301ddc645d5aa938
BLAKE2b-256 90e315f9fc08b96c757b3565e7998bfbe475177cdf427904d7fccbc6044a39f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for bzync_nextsql-0.1.0.tar.gz:

Publisher: pypi-publish-python-driver.yml on bzync/nextsql

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for bzync_nextsql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7aa3a9c798a9dbec4587b473493a94c127d55b562f2742ac8ecbd8667ffbef2
MD5 b26e58dcf1e6d5b73f877d3a0f5c0726
BLAKE2b-256 806ef7515ba007ee3e85dcf8951157f5a3f7caa9ed3d7cdab696a711492d387d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page