123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- # -*- coding: utf-8 -*-
- # Copyright 2018 Joshua Bronson. All Rights Reserved.
- #
- # This Source Code Form is subject to the terms of the Mozilla Public
- # License, v. 2.0. If a copy of the MPL was not distributed with this
- # file, You can obtain one at http://mozilla.org/MPL/2.0/.
- #==============================================================================
- # * Welcome to the bidict source code *
- #==============================================================================
- # Doing a code review? You'll find a "Code review nav" comment like the one
- # below at the top and bottom of the most important source files. This provides
- # a suggested initial path through the source when reviewing.
- #
- # Note: If you aren't reading this on https://github.com/jab/bidict, you may be
- # viewing an outdated version of the code. Please head to GitHub to review the
- # latest version, which contains important improvements over older versions.
- #
- # Thank you for reading and for any feedback you provide.
- # * Code review nav *
- #==============================================================================
- # Current: __init__.py Next: _abc.py →
- #==============================================================================
- """
- Efficient, Pythonic bidirectional map implementation and related functionality.
- .. note::
- If you are reading this elsewhere,
- please see https://bidict.readthedocs.io for the most up-to-date documentation,
- and https://github.com/jab/bidict for the most up-to-date code.
- .. :copyright: (c) 2018 Joshua Bronson.
- .. :license: MPLv2. See LICENSE for details.
- """
- # This __init__.py only collects functionality implemented in the rest of the
- # source and exports it under the `bidict` module namespace (via `__all__`).
- from ._abc import BidirectionalMapping
- from ._base import BidictBase
- from ._bidict import bidict
- from ._dup import DuplicationPolicy, IGNORE, OVERWRITE, RAISE
- from ._exc import (
- BidictException, DuplicationError,
- KeyDuplicationError, ValueDuplicationError, KeyAndValueDuplicationError)
- from ._util import inverted
- from ._frozenbidict import frozenbidict
- from ._frozenordered import FrozenOrderedBidict
- from ._named import namedbidict
- from ._orderedbase import OrderedBidictBase
- from ._orderedbidict import OrderedBidict
- from .metadata import (
- __author__, __maintainer__, __copyright__, __email__, __credits__, __url__,
- __license__, __status__, __description__, __keywords__, __version__, __version_info__)
- __all__ = (
- '__author__',
- '__maintainer__',
- '__copyright__',
- '__email__',
- '__credits__',
- '__license__',
- '__status__',
- '__description__',
- '__keywords__',
- '__url__',
- '__version__',
- '__version_info__',
- 'BidirectionalMapping',
- 'BidictException',
- 'DuplicationPolicy',
- 'IGNORE',
- 'OVERWRITE',
- 'RAISE',
- 'DuplicationError',
- 'KeyDuplicationError',
- 'ValueDuplicationError',
- 'KeyAndValueDuplicationError',
- 'BidictBase',
- 'frozenbidict',
- 'bidict',
- 'namedbidict',
- 'FrozenOrderedBidict',
- 'OrderedBidictBase',
- 'OrderedBidict',
- 'inverted',
- )
- # * Code review nav *
- #==============================================================================
- # Current: __init__.py Next: _abc.py →
- #==============================================================================
|