Python database orm functions for Locobuzz, common code that is required in all projects
Project description
Database ORM package
This package provide a way to implement the ORM using the sync and aysnc way and easily used with the
Installation
Install the package using pip:
pip install locobuzz-python-orm
pip install locobuzz-python-orm[dataframe]
Usage
Basic Usage
connection_string = f"mssql+aioodbc://{username}:{encoded_password}@{host}/{database}?driver=ODBC+Driver+17+for+SQL+Server"
db = AsyncDatabase(connection_string, min_connections=1, max_connections=1)
query = text("SELECT * FROM mstCategories")
async with db as database:
result = await database.query_tuples(query)
print(result) # List of tuples output
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for locobuzz_python_orm-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321ddfc9a2a634b632341c0baf31cd69cc961e6586565a61ce01d4c84963abd0 |
|
MD5 | 2b401f0aa506cd4d9dcd699f81472344 |
|
BLAKE2b-256 | ca627da5b77107ebc43a285eeddba61948ef92fc73635ac91b2c9e625759af47 |
Close
Hashes for locobuzz_python_orm-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6539e6a0db89ce1fe67d544a9e9ab3f706ec806e51e357421338da2a4c3c5a60 |
|
MD5 | 2d0f4a20f4526f7022b9fedb17c6d029 |
|
BLAKE2b-256 | aa978d51885c7297a78d910170b2d11ff7137ba1eaeed20de9c8b622f62d1689 |