Skip to main content

(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)

Source distribution for proxyorderedset 0.3.5
File Size Uploaded
proxyorderedset-0.3.5.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxyorderedset 0.3.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page