Py-ruamel.ordereddict

Jul 20, 2023

Python dict that keeps keys in insertion sorted order

This is an implementation of an ordered dictionary for Python, in C, with Key Insertion Order KIO updates of values do not affect the position of the key, Key Value Insertion Order KVIO, an existing key’s position is removed and put at the back.

Sorted dictionaries are also provided. Currently only with Key Sorted Order KSO, no sorting function can be specified, but you can specify a transform to apply on the key before comparison e.g. string.lower.

The functionality is equivalent to the excellent pure-Python Larosa/Foord implementation of ordereddict. It is a superset of the collections.OrderedDict in the standard library which was added a few years after this ordereddict was orginally implemented.

WWW https//bitbucket.org/ruamel/ordereddict/



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler