Firebird for SQLAlchemy
Project description
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f190ab7f9acb98339369484a29bef45559601cb55231960b41373ddcb45e797c
|
|
| MD5 |
267bdcfb6d22b56a0590f346e23bcfdf
|
|
| BLAKE2b-256 |
3c9c7eb9250a524fa134a956d6d7d7107f1f4d79f23fd03ce00118c4f3191c4b
|
File details
Details for the file sqlalchemy_firebird-2.0.0-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_firebird-2.0.0-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa7b14aad33865f4b2bc37f542a0c1185933e036a35b0611bdbe431da4268286
|
|
| MD5 |
8583f6548db8e8479511a0ae8c45bb30
|
|
| BLAKE2b-256 |
0dabe08dfb83b5fc9d901bc79edb03caba0c613a35414e152f2905d51defec1d
|