Skip to main content

Set that maintains insertion order

Project description

https://travis-ci.com/buyalsky/ordered-hash-set.svg?branch=master https://badge.fury.io/py/ordered-hash-set.svg

ordered-hash-set is data structure that stores immutable unique elements. Unlike built-in set in python, it also keeps the insertion order.

Basic Usage

from ordered_hash_set import OrderedSet

s = OrderedSet()

s.add("London")
s.add("Tokyo")
s.add("Paris")
s.add("Istanbul")
s.add("London")
s.remove("Tokyo")

print(s) # prints: OrderedSet(London, Paris, Istanbul)

Installation

You can easily install via pip:

pip install ordered-hash-set

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

ordered-hash-set-0.0.5.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

ordered_hash_set-0.0.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ordered-hash-set-0.0.5.tar.gz.

File metadata

  • Download URL: ordered-hash-set-0.0.5.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for ordered-hash-set-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c4724473b57fe140f109fb684e3abd3e20e0f1e87c479298b9796eecf6e8d15b
MD5 fd303a3aaf4ced7be0f8054cc1912462
BLAKE2b-256 6338d2674ceb2f180118590b81811e71c1729d02edf2f6c96f4ad5788c2b1598

See more details on using hashes here.

File details

Details for the file ordered_hash_set-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: ordered_hash_set-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for ordered_hash_set-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1c87779f36cafe7dde1ad0f6fc5d63a5059e8e054919899da68d9655c5ebd375
MD5 f7d0a653b0b71f90127d0ab02646348f
BLAKE2b-256 3a281b5c324f9c409ccbadc5c63f316ffbdce9a4f24136477c6ae5ef4a505ac3

See more details on using hashes here.

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