qs-codec

A query string encoding and decoding library for Python.

Ported from qs for JavaScript.

PyPI - Version PyPI - Downloads PyPI - Status PyPI - Python Version PyPI - Format Black Test CodeQL Publish Docs codecov Codacy Black flake8 mypy pylint isort Security Status License Contributor Covenant GitHub Sponsors GitHub Repo stars

Usage

A simple usage example:

import qs_codec

# Encoding
assert qs_codec.encode({'a': 'b'}) == 'a=b'

# Decoding
assert qs_codec.decode('a=b') == {'a': 'b'}

Indices and tables


Special thanks to the authors of qs for JavaScript: - Jordan Harband - TJ Holowaychuk