slice dict by keys
Project description
Installation
$ [sudo] pip install slicedict
Functions
function | __doc__ |
---|---|
slicedict.slice(d, keys) |
return dictionary with given keys |
Examples
>>> import slicedict
>>> medatata = dict(name="pkgname", version="1.0.0", somekey="value")
>>> slicedict.slice(medatata, ["name", "version"])
{'version': '1.0.0', 'name': 'pkgname'}
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 Distribution
slicedict-2019.3.24.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for slicedict-2019.3.24-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376edccdcbd2d68665dd862a63edf696398da083052f6056d34791a6a20a4c6f |
|
MD5 | 43bd9ac5bf9026188f52c09060d9880e |
|
BLAKE2b-256 | 167f6ee13a830f642ccbde260512b765a7b37ce0dad0f98b5a2908c81832e391 |