Project origins¶
Lookups is a Python library for finding available objects by type. A consumer asks for the type it needs, while the lookup owner controls which objects are available. Results can be observed as membership changes, and deferred members can describe an object before constructing it.
The project takes its inspiration from the Java Lookup API in the NetBeans Platform. The NetBeans introduction to Lookup explains how components can discover objects through their interfaces. Its Java API reference describes the related lookup, result and item concepts.
Lookups has its own Python API, so its inspiration does not imply complete feature or behavioural parity with NetBeans. Use the public API reference for the Python interfaces and their limits. The lookup model explains how they fit together. A separate page considers tentative use in DCI.
Attribution¶
The Python package metadata names Axel Voitier as its author. The project's AUTHORS.md also credits these original NetBeans Lookup API authors:
| Author | Credited work |
|---|---|
| Jaroslav Tulach | Lookup API, AbstractLookup, InstanceContent, ArrayStorage |
| Marian Petras | Singleton lookup |
| David Strupl | Common lookup implementations |
The source repository contains the Python implementation. See the contribution policy for contributing, and Licence and contributors for the project's licence and contributor records.