slice dict by keys
Project description
Installation
$ [sudo] pip install slicedict
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-2020.7.1.tar.gz
(1.3 kB
view hashes)