bidict

Efficient, Pythonic bidirectional map implementation and related functionality.

bidict logo

Status

Latest release Documentation Travis-CI build status (Linux and macOS) AppVeyor build status (Windows) Test coverage Codacy grade License

Bidict:

  • is in use by several teams at Google, Venmo, Bank of America Merrill Lynch, and many others,
  • has carefully designed APIs for safety, simplicity, flexibility, and ergonomics,
  • is CPython-, PyPy-, Python 2-, and Python 3-compatible,
  • has extensive test coverage, including property-based tests and benchmarks, which are run continuously on all supported Python versions and OSes,
  • integrates with Python’s collections interfaces and abstract base classes,
  • is thoroughly and attentively documented, and
  • is made up of mature, concise, and well-reviewed code.

Community and Support

Chat

If you are thinking of using bidict in your work, or if you have any questions, comments, or suggestions, I’d love to know about your use case and provide as much support for it as possible.

Please feel free to leave a message in the chatroom or open an issue after reviewing the Contributors’ Guide. [1]

Notice of Usage

If you are already using bidict, and especially if you/your organization is a significant user, please let me know you’re using it!

Changelog

See the Changelog [2] for a history of notable changes to bidict.

Release Notifications

Follow on Sibbell

Tip: Follow bidict on Sibbell to be notified when a new version of bidict is released.

Installation

pip install bidict

Usage Documentation

Please head to the Introduction [3] for usage documentation.

Contributing

Bidict is currently a one-person operation maintained on a voluntary basis for the public good. Your help would be most welcome.

If bidict has helped you accomplish your work, especially work you’ve been paid for, please consider supporting bidict’s maintenance and development.

Support bidict

For information about contributing to the code, please see the Contributors’ Guide. [1]

Finding Documentation

If you’re viewing this on https://bidict.readthedocs.io, note that multiple versions of the documentation are available, and you can choose a different version using the popup menu at the bottom-right. Please make sure you’re viewing the version of the documentation that corresponds to the version of bidict you’d like to use.

If you’re viewing this on GitHub, PyPI, or some other place that can’t render and link this documentation properly and are seeing broken links, try these alternate links instead:

[1](1, 2) CONTRIBUTING.rst | https://bidict.readthedocs.io/contributors-guide.html
[2]CHANGELOG.rst | https://bidict.readthedocs.io/changelog.html
[3]docs/intro.rst | https://bidict.readthedocs.io/intro.html