Coverage for src/bunches/__init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-30 23:02 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-30 23:02 +0000
1"""Drop-in replacements for Python collections.
3Contents:
4 Bunch: abstract base class for the collections in the package.
5 Dictionary: drop-in replacement for a `dict`.
6 Catalog: wildcard and list-accepting `Dictionary`.
7 ChainDict: `Dictionary` with the functionality of `collections.ChainMap`.
8 Repository: `Dictionary` which infers the keys of the items added to it.
9 Listing: drop-in replacement for a `list`.
10 DictList: `list` with a `dict` interface.
12"""
14from __future__ import annotations
16__version__ = '0.3.0'
18__author__: str = 'Corey Rayburn Yung'
21from .base import Bunch
22from .mappings import Catalog, ChainDict, Dictionary, Repository
23from .sequences import DictList, Listing
25__all__: list[str] = [
26 'Bunch',
27 'Catalog',
28 'ChainDict',
29 'DictList',
30 'Dictionary',
31 'Listing',
32 'Repository']