Install typevet¶
Kind: how-to.
Use this page to install typevet into your own project.
Prerequisites¶
- Python 3.12 or newer. The package declares
requires-python = ">=3.12". - uv or pip.
An older Python rejects the package. uv reports that typevet depends on Python>=3.12.
Install from PyPI¶
In your project directory, run one of these commands:
The installer also installs the runtime dependencies: httpx, jsonschema and structlog.
Install from a checkout¶
Use this procedure to test a commit that is not on PyPI. You need a clone of the typevet repository.
Build the wheel¶
From the typevet checkout, run:
Expected output ends with this line:
The version in the file name comes from [project].version in pyproject.toml.
Replace 0.1.0 in the next steps if your checkout has a different version.
Install the wheel into a fresh virtual environment¶
In your own project directory, run:
uv also installs the runtime dependencies: httpx, jsonschema and structlog.
Alternatively, add the wheel to an existing uv project:
Install the optional extra¶
The package declares one extra, cli. It installs Typer.
typevet does not yet ship a console script, so the extra adds no command.
Check the installation¶
From your project directory, run:
Expected output:
typevet.__version__ reads the version from the installed distribution metadata.
Next steps¶
- Make a first call with no network in the offline tutorial.
- Pick an adapter in Call typevet from Python.
- See the public import paths in supported imports.