This library is to sort dictionary list given to corresponding keys
Project description
dictsort
This library is to sort dictionary list given to corresponding keys
Installation
Use the package manager pip to install foobar.
pip install sortdict
Usage
from dictsort import dict_sort
unsorted_dict = [{'name':'alex', 'age':10}, {'name':'mike', 'age':20}]
sorted_dict = dict_sort(unsorted_dict, ['age'])
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sortdict-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: sortdict-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96c033074adf29a85d691470177f4ba1af9e753bbeec26f5c029f4d1172ef86 |
|
MD5 | d38506c1041bb78106904180eb790fd3 |
|
BLAKE2b-256 | f7f2220554105b5f39a95fa1b1f1d32a47df9ba3b4cf31c3c103486ff0466be5 |