pymultimap 0.0.5

Last updated:

0 purchases

pymultimap 0.0.5 Image
pymultimap 0.0.5 Images
Add to Cart

Description:

pymultimap 0.0.5

pymultimap



Table of Contents

MultiMap
Installation
Usage
License

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.