Skip to main content

Simple query string parser for LHS filtering, sorting and pagination. This project is directly based on Qurl by Hector Carballo (https://github.com/hector-co/Qurl).

Installing

$ pip install pyqurl

Usage

from pyqurl import create_query_from_string

# Name contains "john"
create_query_from_string("name[ct]=john")

# Price is greater than 20
create_query_from_string("price[gt]=20")

# Disabled_at is not null
create_query_from_string("disabled_at[nn]=true")

# Year is between 2020 and 2022
create_query_from_string("year[rng]=2020,2022")

# Color is equal to yellow
create_query_from_string("color[eq]=yellow")
# Same result if the operator is not present
create_query_from_string("color=yellow")

# Category is drama, romance or comecy
create_query_from_string("category[in]=drama,romance,comedy")

# Category is not horror or action
create_query_from_string("category[nin]=horror,action")

Metadata

Release files for pyqurl 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyqurl 0.2.2
File Size Uploaded Provenance Actions
pyqurl-0.2.2.tar.gz 7.2 kB Without provenance Details for pyqurl-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyqurl 0.2.2
File Interpreter ABI Platform Actions
pyqurl-0.2.2-py3-none-any.whl Python 3 none any Details for pyqurl-0.2.2-py3-none-any.whl

Total release size: 14.3 kB

Release files / pyqurl-0.2.2.tar.gz

Download URL pyqurl-0.2.2.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7fc3b7dea688468213dfde06500349975b064fb6d2b55b57e8421702a4560f35
BLAKE2b-256 checksum
How to use checksums
5f74b99bb4fa827d91b71eaa0268526e153cf80aeb9e9ca4b0b88ae0f8a18bba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / pyqurl-0.2.2-py3-none-any.whl

Download URL pyqurl-0.2.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c5194b32054c024433f59940b431105522b80eba65fb85d7f16c1e3538c086
BLAKE2b-256 checksum
How to use checksums
8df28540db4a3e0f696b4bf7519e12ec12960577f06037e4813b52a5b33f19bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for pyqurl 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page