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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7fb4eac73535b63df02b62c0a1eb67c55ec575ec06ff7603062011d7c2672d |
|
MD5 | f2ec703cb796b0311d7c750adafc33fa |
|
BLAKE2b-256 | 410ed266c4da09dcee5fc4b73237f35a069b622c92310761e4a4aed317870244 |
Close
Hashes for locobuzz_python_orm-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1000d0560c0bf818bedf48d4176d561a6385e26db21d5a33c043de375e11f1ee |
|
MD5 | 34902d926ebda89f289747ef4699f91b |
|
BLAKE2b-256 | ecde9b54f4223007da4ec3490fecb76b3b25cdfd99b8e3614859586ba49e36ce |