A dynamic query builder with filtering, pagination, and sorting for SQLAlchemy models.
Project description
Dynamic Query Builder
A dynamic query builder for SQLAlchemy models with support for pagination, filtering, and sorting.
Installation
pip install dynamic-query-builder
from dynamic_query_builder import QueryBuilder
from models import User # Example model
# Initialize the QueryBuilder
query_builder = QueryBuilder(
model=User,
session=db_session,
filters={"username": "john"},
search_fields=["username"],
page=1,
page_size=10,
)
# Execute the query
results = await query_builder.execute()
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
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 dynamic_query_builder-0.1.0.tar.gz.
File metadata
- Download URL: dynamic_query_builder-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c5f309c0e73d0ec7fed8554a1e56c2b098d1935aac77ae9c04d2e497d43613
|
|
| MD5 |
cea84d05ef95d5a7b5a1f522c465705a
|
|
| BLAKE2b-256 |
67ef6bb668f2cbfee7ca3ccaf6afbd304a37e783a458ad78081cc0b3eaf431ac
|
File details
Details for the file dynamic_query_builder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dynamic_query_builder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faef5f8f95494ae4666a2acd753d2815ac45e5b9cf5e415ae78836088f40cf01
|
|
| MD5 |
41dfa5d2f62278d9f9d7717959fa1725
|
|
| BLAKE2b-256 |
ddc1a7d48cb4d5b1b4eb23e18763d134529053f781644f7f33048eb27f985218
|