ordereddict
A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6.
What it is and what it does
OrderedDict is a backport of collections.OrderedDict to Python 2.4–2.6. It implements a dictionary that remembers the order in which keys were inserted, with performance characteristics matching regular dictionaries: O(1) amortized insertion, deletion, and lookup, and O(n) iteration, repr, copy, and equality testing.
This package is effectively obsolete. Later Python versions included OrderedDict in the standard library, and modern Python made all dicts insertion-ordered by default. The package has not been maintained since 2010 and targets only long-unsupported Python versions.
Use it for:
- Maintain insertion order in dictionaries on Python 2.4–2.6 (legacy systems only).
- Backport code written for later Python OrderedDict to earlier Python 2 versions.
- Historical reference or educational study of OrderedDict implementation patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an OrderedDict implementation for Python 2.4–2.6, preserving insertion order in a dictionary-like object with O(1) amortized insertion, deletion, and lookup performance.
No. This package targets Python versions (2.4–2.6) that are no longer supported and have been obsolete for many years. Later Python versions include OrderedDict in the standard library or make all dicts ordered by default. The package is abandoned and serves no practical purpose in current development.
Install
ordereddict on PyPI
pip
pip install ordereddictuv
uv add ordereddictpoetry
poetry add ordereddictInstalling ordereddict
Before you install
High install friction: the package has been abandoned since 2010 and targets only Python 2.4–2.6, versions long out of support. No active maintenance or repository presence.
License in practice
Permissive license treatment allows use in most contexts, though the license metadata is marked UNKNOWN in the raw field.
Quickstart
pip install ordereddict==1.1
from ordereddict import OrderedDict
d = OrderedDict([('a', 1), ('b', 2)])
for k, v in d.items():
print(k, v)
Requires Python 2.4, 2.5, or 2.6—all versions no longer supported by Python itself or most modern tools.
Verify before relying
- Whether this package is still functional on any currently-supported Python version or if it is purely historical.
- Whether downstream projects still depend on this or if it is superseded entirely by built-in OrderedDict in later Python versions.
Package facts
| License | UNKNOWN (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 5,769 days since the last release |
| First released | |
| Downloads | 215,881/month — #9,391 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ordereddict-1.1.tar.gz
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
odProvides shorthand syntax to create OrderedDict…
permissive · top 15,000 on PyPI
orderedmultidictorderedmultidict provides a dictionary that…
permissive · top 5,000 on PyPI
sortedcollectionsProvides specialized sorted collection data…
permissive · top 15,000 on PyPI
ordered-setOrderedSet is a mutable collection that…
permissive · top 1,000 on PyPI
fractional-indexingGenerates sortable string keys for inserting…
permissive · top 15,000 on PyPI
orderly-setProvides multiple ordered set implementations…
permissive · top 1,000 on PyPI
llistProvides doubly and singly linked list data…
permissive · top 15,000 on PyPI
yamlloaderProvides specialized loaders and dumpers for…
permissive · top 15,000 on PyPI
nocasedictA case-insensitive ordered dictionary that…
copyleft · top 15,000 on PyPI
yamlordereddictloaderProvides YAML loaders and dumpers for PyYAML…
permissive · top 15,000 on PyPI