Dictionary that support slicing and multiple key selection
Project description
slice-dict
A simple dictionary that support slicing and multiple key selection.
Installation and requirements
Slice-dict requires Python 3.7+ to run and can be installed by running
pip install slice-dict
Usage
One can use SliceDict
identical to dict
, but it brings some additional
features, like getting and setting multiple keys at once and slicing.
>>> from sliceable_dict import SliceDict
>>> d = SliceDict(zero=0, one=1)
>>> d
{'zero': 0, 'one': 1,}
>>> d[['two', 'three']] = 2, 3
>>> d[1:-1]
{'one': 1, 'two': 2}
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
Close
Hashes for sliceable_dict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04de377cde227b36947d351e44a34e2f361df2e85a39e81a634f6adc3a32f20c |
|
MD5 | c158822097f306339a69272336586f8b |
|
BLAKE2b-256 | d6bed48794b14de177612d8a03560535e79baef72f10fe9a968527a55b6c5262 |