Tsurugi Python DB-API
Tsurugi Python DB-API (tsurugi-dbapi) is a Python DB API 2.0 driver for accessing Tsurugi.
Target
- Tsurugi 1.13.0 or later
- Python 3.10 or later
- Python DB API 2.0 (PEP 249)
Limitation
- Only TCP connection is available.
- The default transaction_type is
OCC. - The default commit_type is
DEFAULT. - The default shutdown_type is
GRACEFUL. - The only supported LOB transfer mode is blob relay service.
Installation
uv add tsurugi-dbapi
Example
import tsurugi_dbapi as tsurugi
def example():
with tsurugi.connect(
endpoint="tcp://localhost:12345",
user="tsurugi",
password="password",
default_timeout=30, # seconds
) as connection:
with connection.cursor() as cursor:
cursor.execute("insert into example values (1, 100, 'abc')")
print("insert rowcount:", cursor.rowcount)
connection.commit()
cursor.execute("select * from example")
for row in cursor:
print("row:", row)
connection.commit()
See examples for more examples.
License
Metadata
Release files for tsurugi-dbapi 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tsurugi_dbapi-0.11.0.tar.gz | 258.7 kB | Without provenance | Details for tsurugi_dbapi-0.11.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| tsurugi_dbapi-0.11.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for tsurugi_dbapi-0.11.0-cp310-abi3-win_amd64.whl |
| tsurugi_dbapi-0.11.0-cp310-abi3-musllinux_1_2_x86_64.whl | CPython 3.10 | abi3 | Linux musl 1.2+ x86-64 | Details for tsurugi_dbapi-0.11.0-cp310-abi3-musllinux_1_2_x86_64.whl |
| tsurugi_dbapi-0.11.0-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for tsurugi_dbapi-0.11.0-cp310-abi3-manylinux_2_28_x86_64.whl |
| tsurugi_dbapi-0.11.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for tsurugi_dbapi-0.11.0-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 17.1 MB
Release files / tsurugi_dbapi-0.11.0.tar.gz
| Download URL | tsurugi_dbapi-0.11.0.tar.gz |
|---|---|
| Size | 258.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0105d88d46cd0c2415e15275d7795d956524e4bc3e2f4bdccb5b068327cbfbec
|
|
BLAKE2b-256 checksum How to use checksums |
e3a969659e1eb5b0278aeda95bafc72e67b01131c5f4d85731c4e5b71ab4d3af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tsurugi_dbapi-0.11.0-cp310-abi3-win_amd64.whl
| Download URL | tsurugi_dbapi-0.11.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6a6115eefc8d75f8399ca2fe9119cdefc4ff0a6a56508d3d23ce2721e283a644
|
|
BLAKE2b-256 checksum How to use checksums |
c1399f577c125b6a64bcf15bc238a5a38ce2d71d12c229875eaceaff7c8a12e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tsurugi_dbapi-0.11.0-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tsurugi_dbapi-0.11.0-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5d37e731ce4db692aa2ae63bf1e681828b984364d7fa7346af2f636fc17cfbbe
|
|
BLAKE2b-256 checksum How to use checksums |
72b677884af60a9e309550820d86e2c1011da6e4f9e248fcd6b49a264934b2fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tsurugi_dbapi-0.11.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | tsurugi_dbapi-0.11.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
64e7e9887fe35ecdc74b9aba521e3fb415e0c1761dbc25d999412df30cf1444c
|
|
BLAKE2b-256 checksum How to use checksums |
93638906caa6e1286fbc9a84cf2e5c06fc804dc71e78a3e2065a2d048e285778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tsurugi_dbapi-0.11.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tsurugi_dbapi-0.11.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
89df8ea3a53e436f1e719661a41a38eaa5834984c49451b3a1b16c84687b13e6
|
|
BLAKE2b-256 checksum How to use checksums |
280d106c170443f182ce553896275c3553c9e4a7fa8575b8a4818310598b6548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tsurugi-dbapi 0.11.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.