Installation
Requirements
- Python 3.10 or higher
Install
Apte is not yet on PyPI. Install directly from GitHub:
# With uv (recommended)
uv add git+https://github.com/renaudcepre/apte.git
# With pip
pip install git+https://github.com/renaudcepre/apte.git
Install from source (development)
Optional: Rich Output
Apte automatically uses Rich for better terminal output if installed. If Rich is not available, it falls back to plain ASCII output.
IDE / type checker setup
Apte ships a py.typed marker, so Pyright, mypy and Pylance pick up
its type hints once it is installed in the project's virtual env.
If your editor reports Import "apte" could not be resolved, point
your type checker at the right interpreter:
- VS Code / Pylance: open the command palette → Python: Select
Interpreter → choose
.venv/bin/python(the oneuvcreated). - Pyright (CLI/standalone): add a
pyrightconfig.jsonnext to yourpyproject.toml:
- mypy: run via
uv run mypy ...so it inherits the same interpreter, or setpython_executableinmypy.ini.
Once configured, no extra stub package or plugin is needed - apte exposes its own types directly.