skillfed

ordereddict

A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6.

ordereddict v1.1 215.9K downloads/30d#9,391 on PyPI
Permissive license UNKNOWN Abandoned released

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 ordereddict

uv

uv add ordereddict

poetry

poetry add ordereddict

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.4Programming Language :: Python :: 2.5Programming Language :: Python :: 2.6

Tags

ordered dictionary python 2ordereddict backportpython 2.4 2.5 2.6 ordered dictinsertion order preserving dictcollections ordereddict substitute
python2-legacyobsolete

More Software Development packages