Public API¶
The lookups package exposes 16 names through lookups.__all__. They can all be
imported from the package root, for example from lookups import Lookup, fixed.
Each export links to its defining module's canonical reference, where the full
signatures and behaviour are described.
Root exports¶
| Export | Defining module | Reference |
|---|---|---|
Lookup |
lookups.lookup |
Queries, results and items |
Result |
lookups.lookup |
Queries, results and items |
Item |
lookups.lookup |
Queries, results and items |
LookupProvider |
lookups.lookup |
Composition and providers |
NoneLookupError |
lookups.lookup |
Queries, results and items |
GenericLookup |
lookups.generic_lookup |
Dynamic membership and conversion |
AbstractLookup |
lookups.generic_lookup |
Alias of GenericLookup |
InstanceContent |
lookups.instance_content |
Dynamic membership and conversion |
Convertor |
lookups.instance_content |
Dynamic membership and conversion |
EmptyLookup |
lookups.lookups |
Fixed lookups |
SimpleLookup |
lookups.simple |
Fixed lookups |
fixed |
lookups.lookups |
Fixed lookups |
singleton |
lookups.lookups |
Fixed lookups |
ProxyLookup |
lookups.proxy_lookup |
Composition and providers |
DelegatedLookup |
lookups.delegated_lookup |
Composition and providers |
EntryPointLookup |
lookups.entry_point |
Entry points and the default lookup |
AbstractLookup is an alias: AbstractLookup is GenericLookup. It has the same
constructor, methods and subclass hooks as GenericLookup.
The documented extension interfaces and protected GenericLookup hooks are
covered by Dynamic membership and conversion. Internal storage
classes are not extension interfaces. For a singleton source, use the public
singleton factory rather than its concrete implementation class.
Python compatibility¶
Lookups requires Python ~=3.11 and supplies typing information through its
py.typed marker. The test matrix covers CPython 3.11–3.15.
Versioning¶
Lookups follows Semantic Versioning 2.0.0 for its public API. From version 1.0.0 onwards, an incompatible API change requires a major release, a backwards-compatible addition increments the minor version, and a backwards-compatible fix increments the patch version.
Versions in the 0.y.z series are initial development releases, whose public API
is not yet considered stable under SemVer.
lookups.experimental is excluded from these compatibility guarantees. Its
interfaces may change or be removed in any release, including minor and patch
releases. Use those interfaces when you can accommodate such changes.
Experimental interfaces
lookups.experimental exports GlobalLookup, Runnable,
ActionableMetaClass and ActionableMixins. These interfaces may change
without notice. See Experimental API for their interfaces.
See the Glossary for library terms, or the home page for the documentation's starting points.