Skip to main content

A tiny package containing a dict-like data structure with numeric slices as keys.

Project description

PyPi version PyPI license Python 3.7 Python 3.8 Python 3.9 Python 3.10

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
  • 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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page