Skip to main content

A generalised and simple database interface library.

Project description

A generalised and simple database interface library

PyPI - Version PyPI - Implementation PyPI - Python Version PyPI - Status Static Badge Static Badge Static Badge Documentation Status PyPI - License PyPI - Wheel

The dbilib project is a mid-level CPython database interface library which is designed to fit between sqlalchemy and your database interface library.

The interface exposes methods for easily accessing the database engine, executing SQL statements and calling stored procedures - with minimal setup.

As of this release, the following database engines are supported:

  • MySQL / MariaDB (via mysql-connector-python)
  • Oracle (via cx_Oracle)
  • SQLite3
  • Microsoft SQL Server (via pyodbc)

Installation

Installing the library is as easy as:

pip install dbilib

This will install the library's required dependencies (e.g. sqlalchemy, etc.). However, it will not install the database-specific libraries, (e.g. cx_Oracle, mysql-connector-python, pyodbc, etc). This design feature helps to not bloat your environment with unneeded packages and keeps cross-platform capability and flexibility.

Using the Library

The documentation suite contains usage examples and detailed explanation for each of the library's importable modules. Please refer to the Library API Documentation section of the documentation.

Database Support

Our currently supported databases are listed in the overview section on this page. However, for further detail regarding the databases supported by the SQLAlchemy library, please refer to their documentation, specifically their Included Dialects page, which lists the supported database dialects and their version(s).

Connection Strings

For convenience, we have provided a link to the connection string (or database URL) templates for each database dialect supported by sqlalchemy. Generally, the database URLs follow this convention:

dialect+driver://username:password@host:port/database

For example, the MySQL / MariaDB specific database URL using the mysql-connector-python driver, is:

mysql+mysqlconnector://<user>:<pwd>@<host>:<port>/<database>

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

dbilib-0.5.1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

dbilib-0.5.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file dbilib-0.5.1.tar.gz.

File metadata

  • Download URL: dbilib-0.5.1.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for dbilib-0.5.1.tar.gz
Algorithm Hash digest
SHA256 7b82e56b43a6819f2cfb0e60fadeefe04af63c31c12a273d242c3db9982cacc0
MD5 fb8df3a59f46ec9d0ea42089ba4a78e4
BLAKE2b-256 b4cca16aff605d1f4167aeee3ef1f249e138e65e345ed8f2b714e7dff56b8483

See more details on using hashes here.

File details

Details for the file dbilib-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: dbilib-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for dbilib-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ffb9f9f3d26d7bd28bda84c4a4443e6c3e6ab90e38d0c0d3e238d4af01b25e5
MD5 36034c57fccd760a39926f362165ea4a
BLAKE2b-256 1c6803fe5533d7b6c2548f4a72d963183a687113d0389d4bbd51581add3dd4cf

See more details on using hashes here.

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