2014-09-23 14:48:42 +00:00
|
|
|
bidict
|
|
|
|
======
|
2015-03-22 18:21:15 +00:00
|
|
|
|
2015-05-26 05:37:42 +00:00
|
|
|
Efficient, Pythonic bidirectional map implementation and related functionality.
|
2015-03-22 18:21:15 +00:00
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
.. image:: https://raw.githubusercontent.com/jab/bidict/master/_static/logo-256.png
|
2016-06-28 04:05:22 +00:00
|
|
|
:target: https://bidict.readthedocs.io/
|
2015-11-28 13:15:39 +00:00
|
|
|
:alt: bidict logo
|
|
|
|
|
|
|
|
|
2015-03-22 18:21:15 +00:00
|
|
|
Status
|
|
|
|
------
|
|
|
|
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
.. Hide until https://github.com/badges/shields/issues/716 is fixed
|
2016-06-28 04:05:22 +00:00
|
|
|
.. .. image:: https://img.shields.io/pypi/dm/bidict.svg
|
|
|
|
.. :target: https://pypi.python.org/pypi/bidict
|
|
|
|
.. :alt: Downloads per month
|
2015-03-22 18:21:15 +00:00
|
|
|
|
2015-04-27 22:20:03 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/v/bidict.svg
|
2015-03-22 18:21:15 +00:00
|
|
|
:target: https://pypi.python.org/pypi/bidict
|
|
|
|
:alt: Latest release
|
|
|
|
|
2016-07-03 21:56:40 +00:00
|
|
|
.. image:: https://readthedocs.org/projects/bidict/badge/?version=master
|
2016-07-04 03:29:24 +00:00
|
|
|
:target: https://bidict.readthedocs.io/en/master/
|
2015-03-22 18:21:15 +00:00
|
|
|
:alt: Documentation
|
|
|
|
|
2015-04-30 18:49:30 +00:00
|
|
|
.. image:: https://travis-ci.org/jab/bidict.svg?branch=master
|
2015-03-22 18:21:15 +00:00
|
|
|
:target: https://travis-ci.org/jab/bidict
|
|
|
|
:alt: Build status
|
|
|
|
|
2015-04-30 18:49:30 +00:00
|
|
|
.. image:: https://coveralls.io/repos/jab/bidict/badge.svg?branch=master
|
2016-06-28 04:05:22 +00:00
|
|
|
:target: https://coveralls.io/github/jab/bidict
|
2015-03-22 18:21:15 +00:00
|
|
|
:alt: Test coverage
|
|
|
|
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
.. Hide to reduce clutter
|
|
|
|
.. .. image:: https://img.shields.io/pypi/pyversions/bidict.svg
|
|
|
|
.. :target: https://pypi.python.org/pypi/bidict
|
|
|
|
.. :alt: Supported Python versions
|
2015-09-14 14:11:55 +00:00
|
|
|
|
2015-11-28 13:15:39 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/implementation/bidict.svg
|
|
|
|
:target: https://pypi.python.org/pypi/bidict
|
|
|
|
:alt: Supported Python implementations
|
2015-03-22 18:21:15 +00:00
|
|
|
|
2015-04-27 22:20:03 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/l/bidict.svg
|
2015-03-22 18:21:15 +00:00
|
|
|
:target: https://raw.githubusercontent.com/jab/bidict/master/LICENSE
|
|
|
|
:alt: License
|
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
.. image:: https://badges.gitter.im/join%20chat.svg
|
2015-03-22 18:21:15 +00:00
|
|
|
:target: https://gitter.im/jab/bidict
|
2016-01-13 16:52:02 +00:00
|
|
|
:alt: Chat
|
2014-09-23 14:48:42 +00:00
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
The bidict codebase is mature, well-tested, and well-reviewed.
|
2017-03-15 20:43:23 +00:00
|
|
|
It is in use by several teams at Google, Bank of America Merill Lynch,
|
|
|
|
and other developers all over the world.
|
|
|
|
|
2017-03-17 16:16:45 +00:00
|
|
|
If you are thinking of using bidict in your work,
|
|
|
|
or if you have any questions, comments, or suggested improvements,
|
|
|
|
`please let me know <https://gitter.im/jab/bidict>`_!
|
|
|
|
I'd love to know about and be able to support
|
|
|
|
your use case as much as possible.
|
|
|
|
|
|
|
|
Please also feel free to
|
|
|
|
file an issue or submit a pull request.
|
|
|
|
All contributions are gratefully received:)
|
|
|
|
(See contributing_ below.)
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2017-03-31 18:58:44 +00:00
|
|
|
.. copy/paste rather than `include` so this renders on GitHub:
|
|
|
|
.. .. include:: release-notifications.rst.inc
|
|
|
|
|
|
|
|
Release Notifications
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. image:: https://img.shields.io/badge/VersionEye-follow-brightgreen.svg
|
|
|
|
:target: https://www.versioneye.com/python/bidict
|
|
|
|
:alt: Follow on VersionEye
|
|
|
|
|
|
|
|
|
|
|
|
Tip: `Follow bidict on VersionEye <https://www.versioneye.com/python/bidict>`_
|
|
|
|
to automatically be notified via email
|
|
|
|
when a new version of bidict is released.
|
|
|
|
|
|
|
|
.. end pasted release-notifications.rst.inc content
|
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2014-09-23 16:35:19 +00:00
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
``pip install bidict``
|
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2016-12-06 23:09:45 +00:00
|
|
|
Usage Documentation
|
|
|
|
-------------------
|
2014-09-23 14:48:42 +00:00
|
|
|
|
2017-01-19 05:26:21 +00:00
|
|
|
For usage documentation, please start at the :doc:`intro`
|
2017-03-17 16:16:45 +00:00
|
|
|
and proceed from there.
|
|
|
|
|
|
|
|
.. NOTE::
|
|
|
|
If you're reading this on GitHub, PyPI, in your code editor,
|
|
|
|
or in some other place that can't render/link the full docs properly,
|
|
|
|
you can find the bidict documentation on Read the Docs at:
|
2017-03-25 16:34:43 +00:00
|
|
|
|
2017-03-17 16:16:45 +00:00
|
|
|
`<https://bidict.readthedocs.io>`_
|
2017-03-25 16:34:43 +00:00
|
|
|
|
2017-03-17 16:16:45 +00:00
|
|
|
Also note: multiple versions of the documentation are published on Read the Docs,
|
|
|
|
and by default you will be taken to the version built from the master branch.
|
|
|
|
You can choose different versions from the pop-up menu in the lower-right.
|
2017-03-25 16:34:43 +00:00
|
|
|
|
2017-03-17 16:16:45 +00:00
|
|
|
If you have the `bidict source code <https://github.com/jab/bidict>`_ handy,
|
|
|
|
you can also browse the docs inside the ``docs`` directory,
|
|
|
|
and build them yourself by running ``make html`` from within that directory
|
|
|
|
(requires `Sphinx <https://pypi.python.org/pypi/Sphinx>`_).
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
Contributing
|
|
|
|
------------
|
|
|
|
|
|
|
|
For information about contributing,
|
2017-03-17 16:16:45 +00:00
|
|
|
please see the :doc:`contributors-guide`
|
|
|
|
(`<CONTRIBUTING.rst>`_ |
|
|
|
|
`<https://bidict.readthedocs.io/contributors-guide.html>`_)
|
|
|
|
|
|
|
|
If bidict has helped you accomplish your work,
|
|
|
|
especially work you've been paid for,
|
|
|
|
please consider supporting bidict's maintenance and development.
|
2016-12-06 23:09:45 +00:00
|
|
|
|
|
|
|
.. image:: https://raw.githubusercontent.com/jab/bidict/master/_static/support-on-gumroad.png
|
|
|
|
:target: https://gumroad.com/l/bidict
|
|
|
|
:alt: Support bidict
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
Changelog
|
|
|
|
---------
|
2014-09-23 14:48:42 +00:00
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
For a history of notable changes to bidict,
|
2017-03-17 16:16:45 +00:00
|
|
|
check out the :doc:`changelog`
|
|
|
|
(`<CHANGELOG.rst>`_ |
|
|
|
|
`<https://bidict.readthedocs.io/changelog.html>`_).
|