Socket
Book a DemoInstallSign in
Socket

dynamic-query-builder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-query-builder

A dynamic query builder with filtering, pagination, and sorting for SQLAlchemy models.

pipPyPI
Version
0.1.0
Maintainers
1

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()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts