An open API service indexing awesome lists of open source software.

https://github.com/andrewpetrochenkov/query-string.py

:link: get url query string dict
https://github.com/andrewpetrochenkov/query-string.py

python

Last synced: 10 months ago
JSON representation

:link: get url query string dict

Awesome Lists containing this project

README

          

[![](https://img.shields.io/pypi/v/query-string.svg?maxAge=3600)](https://pypi.org/project/query-string/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/query-string.py/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/query-string.py/actions)

### Installation
```bash
$ [sudo] pip install query-string
```

#### Features
+ Python 2/3 compatible

#### Examples
```python
>>> import query_string

>>> query_string.parse('https://site.org/index.php?k=v&k2=v2&k3=v3#anchor')
{'k': 'v','k2': 'v2', 'k3': 'v3'}

>>> query_string.parse('k=v&k2=v2&k3=v3')
{'k': 'v','k2': 'v2', 'k3': 'v3'}
```

#### Links
+ [Query string - Wikipedia](https://en.wikipedia.org/wiki/Query_string)


readme42.com