Unofficial Python DB-API 2.0 connector for Altibase
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyaltibase-0.2.0.tar.gz.
File metadata
- Download URL: pyaltibase-0.2.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e5f19607cfa0cbe49ae4c8fdd6598b63cbc9ad85b1398c19bd2c59f0ed440d
|
|
| MD5 |
30e79e7badfb784a220dff2c43009ccc
|
|
| BLAKE2b-256 |
04c19ed964ea934833cb15992651b227d920274d4c1d61bb4eeca6b77e1dabf9
|
Provenance
The following attestation bundles were made for pyaltibase-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on yeongseon/pyaltibase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaltibase-0.2.0.tar.gz -
Subject digest:
d5e5f19607cfa0cbe49ae4c8fdd6598b63cbc9ad85b1398c19bd2c59f0ed440d - Sigstore transparency entry: 1339291050
- Sigstore integration time:
-
Permalink:
yeongseon/pyaltibase@a2ce020148a13c5ec0781640aa64db823f2a0488 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yeongseon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a2ce020148a13c5ec0781640aa64db823f2a0488 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyaltibase-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyaltibase-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72bf6484ccaf1d2c8bb8e73339ccc12c7a4a7d4a68b557842efc087b6b405da
|
|
| MD5 |
d48533ccef8c6a14b8f72b02f782e2a3
|
|
| BLAKE2b-256 |
6e3a921c551e5ed3ee63a94ff58ab1164ddcf0ae906af4f48016f4a7205f2885
|
Provenance
The following attestation bundles were made for pyaltibase-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on yeongseon/pyaltibase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaltibase-0.2.0-py3-none-any.whl -
Subject digest:
a72bf6484ccaf1d2c8bb8e73339ccc12c7a4a7d4a68b557842efc087b6b405da - Sigstore transparency entry: 1339291082
- Sigstore integration time:
-
Permalink:
yeongseon/pyaltibase@a2ce020148a13c5ec0781640aa64db823f2a0488 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yeongseon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a2ce020148a13c5ec0781640aa64db823f2a0488 -
Trigger Event:
push
-
Statement type: