Set that maintains insertion order
Project description
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
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
ordered-hash-set-0.0.5.tar.gz
(14.9 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4724473b57fe140f109fb684e3abd3e20e0f1e87c479298b9796eecf6e8d15b |
|
MD5 | fd303a3aaf4ced7be0f8054cc1912462 |
|
BLAKE2b-256 | 6338d2674ceb2f180118590b81811e71c1729d02edf2f6c96f4ad5788c2b1598 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c87779f36cafe7dde1ad0f6fc5d63a5059e8e054919899da68d9655c5ebd375 |
|
MD5 | f7d0a653b0b71f90127d0ab02646348f |
|
BLAKE2b-256 | 3a281b5c324f9c409ccbadc5c63f316ffbdce9a4f24136477c6ae5ef4a505ac3 |