bzync-nextsql 0.1.0__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,29 @@
1
+ /bin/
2
+ /nextsql
3
+ /nextsqld
4
+ /nextsql-bench
5
+ /.bench-*
6
+ /.test-*
7
+ /.bench-tmp
8
+ /.slo-ext4
9
+ /.slo-logs
10
+ /secrets
11
+ *.test
12
+ *.out
13
+ *.db
14
+ *key
15
+ *pw
16
+ /data/
17
+ /tmp/
18
+ /.gotmp/
19
+ /.go-cache-*/
20
+ /.p26-*
21
+ .DS_Store
22
+ .env.local
23
+ __pycache__/
24
+ *.pyc
25
+ *.gem
26
+ .claude/
27
+ .codex/
28
+ .agents/
29
+ .fixtures/
@@ -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.
@@ -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,37 @@
1
+ # bzync-nextsql
2
+
3
+ Official [NextSQL](https://nextsql.bzync.com) driver for Python 3.10+. Speaks the
4
+ native NSQL v1 wire protocol over TLS 1.3. Pure standard library — no
5
+ runtime dependencies.
6
+
7
+ Encryption keys and passwords are **never** accepted in a connection URL.
8
+
9
+ ```bash
10
+ pip install bzync-nextsql
11
+ ```
12
+
13
+ ```python
14
+ import nextsql
15
+
16
+ conn = nextsql.connect(nextsql.Config(
17
+ address="db.example.com:7210",
18
+ database="production",
19
+ user="app",
20
+ password=os.environ["NEXTSQL_DATABASE_PASS"],
21
+ tls=nextsql.TLSConfig(cafile="/etc/nextsql/ca.pem", server_name="db.example.com"),
22
+ ))
23
+ try:
24
+ result = conn.exec("SELECT id, name FROM users WHERE id = $1", [1])
25
+ for row in result.rows:
26
+ print(row)
27
+ finally:
28
+ conn.close()
29
+ ```
30
+
31
+ Plaintext connections are allowed only on loopback (`insecure_no_tls=True`).
32
+ For an HA cluster with follower-read routing, use `nextsql.connect_cluster`.
33
+
34
+ - Full driver docs: <https://nextsql.bzync.com/docs/drivers>
35
+ - Wire protocol: <https://github.com/bzync/nextsql/blob/master/docs/protocol.md>
36
+
37
+ MIT licensed.
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "bzync-nextsql"
7
+ dynamic = ["version"]
8
+ description = "Official NextSQL Python driver. Speaks the native NSQL v1 protocol."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Rayan Reynaldo" }]
14
+ keywords = ["nextsql", "database", "sql", "driver", "client", "encryption", "vector", "full-text-search"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Topic :: Database :: Front-Ends",
21
+ ]
22
+ dependencies = []
23
+
24
+ [project.urls]
25
+ Homepage = "https://nextsql.bzync.com/docs/drivers"
26
+ Source = "https://github.com/bzync/nextsql/tree/master/drivers/python"
27
+ Issues = "https://github.com/bzync/nextsql/issues"
28
+ Changelog = "https://github.com/bzync/nextsql/blob/master/CHANGELOG.md"
29
+
30
+ [tool.hatch.version]
31
+ path = "nextsql/__init__.py"
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["nextsql"]
35
+
36
+ [tool.hatch.build.targets.sdist]
37
+ include = ["nextsql", "LICENSE", "README.md", "pyproject.toml"]