Skip to main content

Firebird for SQLAlchemy

Project description

https://img.shields.io/badge/code%20style-black-000000.svg https://github.com/pauldex/sqlalchemy-firebird/workflows/sqlalchemy-firebird/badge.svg
This package provides a Firebird dialect for SQLAlchemy using the firebird-driver and/or fdb driver.

Installation

pip install sqlalchemy-firebird

If you are using Python 3.8 or greater, SQLAlchemy 2.0+ and firebird-driver will be automatically installed. Python 3.6 and 3.7 will automatically install and use SQLAlchemy < 2.0 and fdb instead.

Connection URI samples for Firebird server installed on local machine using default port (3050):

[Linux]
# Use the fdb driver (Python 3.6/3.7)
firebird+fdb://username:password@localhost///home/testuser/projects/databases/my_project.fdb
# Use the firebird-driver driver (Python 3.8+)
firebird+firebird://username:password@localhost///home/testuser/projects/databases/my_project.fdb

[Windows]
# Use the fdb driver (Python 3.6/3.7)
firebird+fdb://username:password@localhost/c:/projects/databases/my_project.fdb
# Use the firebird-driver driver (Python 3.8+)
firebird+firebird://username:password@localhost/c:/projects/databases/my_project.fdb

Usage

For example, to connect to a Firebird server installed on a local Windows machine using the default port and firebird-driver:

db_uri = "firebird+firebird://username:password@localhost/c:/projects/databases/my_project.fdb"
from sqlalchemy import create_engine
engine = create_engine(db_uri, echo=True)

Connecting to different types of Firebird servers, databases, or drivers is done simply by changing the db_uri string used in the call to create_engine.


Code of Conduct

As with SQLAlchemy, sqlalchemy-firebird places great emphasis on polite, thoughtful, and constructive communication between users and developers. We use the SQLAlchemy Code of Conduct.


License

sqlalchemy-firebird is distributed under the MIT 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

sqlalchemy-firebird-2.0.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

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

sqlalchemy_firebird-2.0.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy-firebird-2.0.0.tar.gz.

File metadata

  • Download URL: sqlalchemy-firebird-2.0.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for sqlalchemy-firebird-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f190ab7f9acb98339369484a29bef45559601cb55231960b41373ddcb45e797c
MD5 267bdcfb6d22b56a0590f346e23bcfdf
BLAKE2b-256 3c9c7eb9250a524fa134a956d6d7d7107f1f4d79f23fd03ce00118c4f3191c4b

See more details on using hashes here.

File details

Details for the file sqlalchemy_firebird-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_firebird-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa7b14aad33865f4b2bc37f542a0c1185933e036a35b0611bdbe431da4268286
MD5 8583f6548db8e8479511a0ae8c45bb30
BLAKE2b-256 0dabe08dfb83b5fc9d901bc79edb03caba0c613a35414e152f2905d51defec1d

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