No project description provided
Project description
pymultimap
Table of Contents
MultiMap
Python based Dictionary with support for duplicate keys and sorted data based on keys
Installation
pip install pymultimap
Usage
from pymultimap.multimap import MultiMap
mm = MultiMap()
mm["a"] = 1
mm["a"] = 2
mm["b"] = 3
print(mm)
Should print :
{a: [1, 2], b: [3]}
from pymultimap.multimap import MultiMap
sorted_multimap = MultiMap(sorted=True, reverse=True)
sorted_multimap["a"] = 1
sorted_multimap["c"] = 3
sorted_multimap["b"] = 2
print(sorted_multimap)
Should print :
{c: [3], b: [2], a: [1]}
License
pymultimap
is distributed under the terms of the MIT license.
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
pymultimap-0.0.5.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file pymultimap-0.0.5.tar.gz
.
File metadata
- Download URL: pymultimap-0.0.5.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033f0ceedd94917c2700ce23eb7deb62e685462e06bab9f0b56be2b9d630db23 |
|
MD5 | 2d7b098be36e14e65d9eba62240bb688 |
|
BLAKE2b-256 | ab8eff8419762509147daa09463797b39cb991b12f1ec5cc9bcd83cf9a2f9a12 |
File details
Details for the file pymultimap-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pymultimap-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34da7ff5d2f6e5eec6970a2e804f75149317f8b0c96c007b4f27e204a3f31eb |
|
MD5 | f62b773084e7bbb9de3a328ba76d7a70 |
|
BLAKE2b-256 | 40d0142274490f296a7a48dd72fe678cbf0cb4d4e6995e9bf27f82c607f9e0c8 |