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
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/query-string.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2016-03-09T04:33:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T17:36:09.000Z (about 5 years ago)
- Last Synced: 2025-02-26T09:42:00.699Z (10 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://pypi.org/project/query-string/)
[](https://unlicense.org/)
[](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)