slicedict

slice dict by keys


Keywords
slice, dict, python
License
Unlicense
Install
pip install slicedict==2020.12.3

Documentation

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

readme42.com