pyaltibase
Unofficial Python DB-API 2.0 connector for Altibase
pyaltibase provides a Pythonic DB-API 2.0 interface for Altibase databases.
The current implementation uses pyodbc as the transport backend and wraps
Altibase ODBC connectivity behind a clean, package-owned API surface.
This is an independent community project and is not officially supported by Altibase Corporation. This project is not affiliated with Altibase Corporation.
Why pyaltibase
- Python DB-API 2.0 compatible module surface
- Direct host/port or DSN-based Altibase ODBC connections
- Package-owned exception hierarchy and type constructors with
errno/sqlstatepreservation - Dockerized unit-test workflow with a 95% coverage target
- Docker-based end-to-end test harness for licensed Altibase environments
Installation
Python package
pip install pyaltibase
System requirements
- Python 3.10+
pyodbc- unixODBC or an equivalent ODBC manager
- An Altibase ODBC driver installed on the host or in the container
Quick Start
import pyaltibase
with pyaltibase.connect(
host="localhost",
port=20300,
database="test",
user="sys",
password="manager",
) as conn:
cursor = conn.cursor()
cursor.execute("SELECT 1")
print(cursor.fetchall())
DSN connection
import pyaltibase
conn = pyaltibase.connect(dsn="ALTIBASE_TEST", user="sys", password="manager")
Testing
Unit tests in Docker
make test-docker
This runs the package test suite inside Docker and enforces a 95% coverage
threshold.
End-to-end tests in Docker
make test-e2e-docker
The e2e flow expects a licensed Altibase Docker image. See docs/testing.md for the required environment variables.
Documentation
Project Layout
pyaltibase/
__init__.py
connection.py
cursor.py
exceptions.py
types.py
protocol.py
config.py
tests/
docs/
License
Apache License 2.0. See LICENSE.
Metadata
Release files for pyaltibase 0.2.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 | |
|---|---|---|---|
| pyaltibase-0.2.0.tar.gz | 16.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyaltibase-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.0 kB
Release files / pyaltibase-0.2.0.tar.gz
| Download URL | pyaltibase-0.2.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5e5f19607cfa0cbe49ae4c8fdd6598b63cbc9ad85b1398c19bd2c59f0ed440d
|
|
BLAKE2b-256 checksum How to use checksums |
04c19ed964ea934833cb15992651b227d920274d4c1d61bb4eeca6b77e1dabf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 18, 2026.
Transparency logRelease files / pyaltibase-0.2.0-py3-none-any.whl
| Download URL | pyaltibase-0.2.0-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a72bf6484ccaf1d2c8bb8e73339ccc12c7a4a7d4a68b557842efc087b6b405da
|
|
BLAKE2b-256 checksum How to use checksums |
6e3a921c551e5ed3ee63a94ff58ab1164ddcf0ae906af4f48016f4a7205f2885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 18, 2026.
Transparency log