A tiny package containing a dict-like data structure with numeric slices as keys.
Project description
Package slicemap is introducing a useful, dictionary-like data structure, similar to normal Python dict, but instead of setting values key by key, you set entire slices.
- Implemented entirely in Python
- Has only one dependency: sortedcontainers
- Is efficient, it has
O(log(n))
time complexity for insertion and query- Adding new slices might make old ones become redundant,
n
correspondes to the maximal number of slices present in SliceMap at a time
- Adding new slices might make old ones become redundant,
- Makes life easier, see applications
Installation
Install easily with pip:
pip install slicemap
Or download from source and install locally:
git clone https://github.com/gahaalt/slicemap.git
cd slicemap && pip install -e .
Links
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
slicemap-1.0.26.tar.gz
(6.2 kB
view hashes)