Install Lookups¶
Lookups supports CPython 3.11–3.15. Install the package in a virtual environment so its dependencies stay separate from those of other projects.
Create a virtual environment¶
These commands use Python 3.13. Choose another supported version if needed.
python3.13 -m venv .venv
source .venv/bin/activate
py -3.13 -m venv .venv
.\.venv\Scripts\Activate.ps1
Use python -m pip below to install into the environment you activated.
Install the package¶
python -m pip install lookups
You can check the installed version with:
python -c "from importlib.metadata import version; print(version('lookups'))"
Use documentation that matches your installed version. The release notes describe changes between releases.
Install from source¶
For development, clone the repository and install it in editable mode. Changes to the Python files will then be available without reinstalling the package.
git clone https://github.com/AxelVoitier/lookups.git
cd lookups
python -m pip install -e .
See Develop and validate changes for the repository's Hatch environments and checks.
Verify the installation¶
Run this query from outside the source directory:
python -c "from lookups import singleton; print(singleton('installed').lookup(str))"
installed
If an import resolves to an unexpected package, print lookups.__file__ to find
which module Python loaded. See Diagnose lookup problems
for further checks.
Continue with Find your first objects, or use the Public API to find an interface.