Skip to main content

qsparser

Query string parser with nested structure supported.

Usage

Stringify

from qsparser import stringify

# simple object
stringify({'a': '5', 'b': 'c'}) # a=5&b=c

# nested object
stringify({'a': {'b': 'c'},'d': {'e': 'f'}}) # a[b]=c&d[e]=f

Parse

from qsparser import parse

# simple string
parse('a=5&b=c') # {'a': '5', 'b': 'c'}

# multiple string
parse('a[b]=c&d[e]=f') # {'a': {'b': 'c'},'d': {'e': 'f'}}

Installation

pip install qsparser

Changelog

1.1.0

  • Rigid rules on string with null representing content.
  • Use private function names.

Author

qsparser is authored by Victor Teo and Chun Tse.

License

MIT License

Copyright (c) 2021 Fillmula Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for qsparser 1.1.0

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

Source distribution (sdist)

Source distribution for qsparser 1.1.0
File Size Uploaded Provenance Actions
qsparser-1.1.0.tar.gz 3.3 kB Without provenance Details for qsparser-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / qsparser-1.1.0.tar.gz

Download URL qsparser-1.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9d459911bc04e1a422df32c0dab67ef1486dca1566d4a80176d4b33f0a0f5972
BLAKE2b-256 checksum
How to use checksums
dd2e4b40b8c2a21f8d9a7c9e40e08660c552fc49ffeb32b69adad928ebc2afbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

Release files / qsparser-1.1.0-py3-none-any.whl

Download URL qsparser-1.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b7e945393e34b7097c89b95b4a46102b220065fb9b498b92b3b514a96ac4d7
BLAKE2b-256 checksum
How to use checksums
36a021949d6a32bf166c5ed975b6e1fe0d45ece349c7522f7099de5f66dd6f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.7

Security for qsparser 1.1.0

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