Skip to main content

No project description provided

Project description

pymultimap

PyPI - Version PyPI - Python Version


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


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.8.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymultimap-0.0.8-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pymultimap-0.0.8.tar.gz.

File metadata

  • Download URL: pymultimap-0.0.8.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pymultimap-0.0.8.tar.gz
Algorithm Hash digest
SHA256 80f92def34541a457770e92564f58e29c0d0ab66f3858667b896fcafe4bbc5e8
MD5 0d3d3b72c09060578e4ff1976deced64
BLAKE2b-256 b8c9f8040b7107b2eee21360b4278c05969cf9800f7208bc4b94726864d1a702

See more details on using hashes here.

File details

Details for the file pymultimap-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: pymultimap-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pymultimap-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 52b99b3cdbba49fcb1fc0a34ae872d08880485babd6a57df350af2cd74f1cd6a
MD5 fd97efafe09df18dda8dc8d3615523c1
BLAKE2b-256 38bbd7b41e0503db2394a9cead475efe208ce6d23e93e7e76ef1a8e1a86e99cf

See more details on using hashes here.

Supported by

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