bidict
The bidirectional mapping library for Python
Depended on by Google, Venmo, CERN, Baidu, Tencent, and teams across the world since 2009. Familiar, Pythonic APIs that are carefully designed for safety, simplicity, flexibility, and ergonomics. Lightweight, with no runtime dependencies outside Python's standard library. Implemented in concise, well-factored, fully type-hinted Python code that is optimized for running efficiently as well as for long-term maintenance and stability. Extensively documented. 100% test coverage running continuously...