Urlencode a multidimensional dict
Project description
multidimensional_urlencode
Python library to urlencode a multidimensional dict.
Quick Start
multidimensional_urlencode lets you url encode a multidimensional dict:
>>> try:
... from urllib.parse import unquote
... except:
... from urllib import unquote
>>> from multidimensional_urlencode import urlencode
>>> e = urlencode({"a": {"b": {"c": [1, 2, 3], "d": "e"}}})
>>> unquote(e)
'a[b][c][]=1&a[b][c][]=2&a[b][c][]=3&a[b][d]=e'
Documentation
License
Available under the MIT License.
Copyright Uber 2017
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file multidimensional_urlencode-0.0.4.tar.gz
.
File metadata
- Download URL: multidimensional_urlencode-0.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e385afb20ef9572ca7d6f9140b37bd907b78a1bc8d58a87636c857c8c0fb3284 |
|
MD5 | 9e0995769e10bb242606eee5855d9046 |
|
BLAKE2b-256 | afce8ef5d4ff828c78093f3b0d00167460e7d834e95c228fd2c8f56fc2e646c5 |