(Proxy-) OrderedSet
A simple implementation of ordered sets as a proxy to Python's standard dict class.
The implementation is based on the idea to take a base iterable and create a dict using dict.fromkeys(base). Keys
are unique, and in newer versions of Python, the order is kept; values are None and ignored.
This package has no external dependencies. The OrderedSet class overwrites all set methods.
Example
from orderedset import OrderedSet
s: OrderedSet[int] = OrderedSet([3, 1, 4, 1])
list(s) # yields [3, 1, 4]
Release files for proxyorderedset 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| proxyorderedset-0.3.5.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proxyorderedset-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:12.7 kB
Release files / proxyorderedset-0.3.5.tar.gz
| Download URL | proxyorderedset-0.3.5.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f54a4c176c680d60d1cd9d521f7d58e87a356fa722e61bc4df595224713cedf
|
|
BLAKE2b-256 checksum How to use checksums |
701bfbe28b506999cf8389f899564c9d9f6d859a1c0bd4b643e07a90c76000da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.13
|
Release files / proxyorderedset-0.3.5-py3-none-any.whl
| Download URL | proxyorderedset-0.3.5-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c123c033ff3bc8003120e5602f31e62c38e13f983f7abb2f4c04ca054fb1413
|
|
BLAKE2b-256 checksum How to use checksums |
1ade4459a7fef62064be7811fe1ec34b7f0e59826f6cbd6bf7ac6e70542f1e39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.13
|