Metadata-Version: 2.1
Name: locobuzz-python-orm
Version: 0.1.1
Summary: Python database orm functions for Locobuzz,  common code that is required in all projects
Home-page: https://github.com/LocoBuzz-Solutions-Pvt-Ltd/locobuzz_python_utils
Author: Sheikh Muhammed Shoaib
Author-email: shoaib.sheikh@locobuzz.com
Keywords: locobuzz,python,database
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8, <=3.12
Description-Content-Type: text/markdown
Requires-Dist: Cython
Provides-Extra: dataframe
Requires-Dist: pandas ; extra == 'dataframe'

# 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:

```sh
pip install locobuzz-python-orm
pip install locobuzz-python-orm[dataframe]
```
# Usage
## Basic Usage
```python
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


```
