Skip to main content

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'}

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slicedict, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size slicedict-2019.4.13.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page