Skip to main content

Unofficial Python DB-API 2.0 connector for Altibase

Project description

pyaltibase

CI PyPI version

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
  • 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


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.1.0.tar.gz (16.1 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.1.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file pyaltibase-0.1.0.tar.gz.

File metadata

  • Download URL: pyaltibase-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyaltibase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c424ba7f92033577f1503a49a293e9cf58a13a71c48c31b6da06fa4ec83a816a
MD5 f3c1a18dd2edc8a09ced995d507f9fc5
BLAKE2b-256 5213076e463345ee1e853f374ab8d15f7c0b0d7c90c8e0f499bc2d4f7e206e8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaltibase-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyaltibase-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyaltibase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 689794be87594989f9bd14bac8dc1f4e07e7031dd201755b3f8eab1c1f361922
MD5 97ac873a42a91cedb71fe8e6947d2908
BLAKE2b-256 30c32e3c1e249c173e5ada7475cf768dc9e81b04d34fc8db990c7d469e5fb399

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaltibase-0.1.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.

Supported by

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