Skip to main content

pyaltibase

CI PyPI version docs

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/sqlstate preservation
  • 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaltibase-0.2.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

pyaltibase-0.2.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for pyaltibase-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d5e5f19607cfa0cbe49ae4c8fdd6598b63cbc9ad85b1398c19bd2c59f0ed440d
MD5 30e79e7badfb784a220dff2c43009ccc
BLAKE2b-256 04c19ed964ea934833cb15992651b227d920274d4c1d61bb4eeca6b77e1dabf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaltibase-0.2.0.tar.gz:

Publisher: publish-pypi.yml on yeongseon/pyaltibase

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

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

Hashes for pyaltibase-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a72bf6484ccaf1d2c8bb8e73339ccc12c7a4a7d4a68b557842efc087b6b405da
MD5 d48533ccef8c6a14b8f72b02f782e2a3
BLAKE2b-256 6e3a921c551e5ed3ee63a94ff58ab1164ddcf0ae906af4f48016f4a7205f2885

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaltibase-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on yeongseon/pyaltibase

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.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page