Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
181 lines (114 loc) · 3.64 KB

File metadata and controls

181 lines (114 loc) · 3.64 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Installation

Griffe is a Python package, so you can install it with your favorite Python package installer or dependency manager.

Install as a tool & library

=== ":simple-python: pip" bash pip install griffe

<div class="result" markdown>

[pip](https://pip.pypa.io/en/stable/) is the main package installer for Python.

</div>

=== ":simple-pdm: pdm" bash pdm add griffe

<div class="result" markdown>

[PDM](https://pdm-project.org/en/latest/) is an all-in-one solution for Python project management.

</div>

=== ":simple-poetry: poetry" bash poetry add griffe

<div class="result" markdown>

[Poetry](https://python-poetry.org/) is an all-in-one solution for Python project management.

</div>

=== ":simple-rye: rye" bash rye add griffe

<div class="result" markdown>

[Rye](https://rye.astral.sh/) is an all-in-one solution for Python project management, written in Rust.

</div>

=== ":simple-astral: uv" bash uv add griffe

<div class="result" markdown>

[uv](https://docs.astral.sh/uv/) is an extremely fast Python package and project manager, written in Rust.

</div>

Install as a library only

If you only need the library for API introspection and analysis without the CLI tool, you can install griffelib:

=== ":simple-python: pip" bash pip install griffelib

 <div class="result" markdown>

 [pip](https://pip.pypa.io/en/stable/) is the main package installer for Python.

 </div>

=== ":simple-pdm: pdm" bash pdm add griffelib

 <div class="result" markdown>

 [PDM](https://pdm-project.org/en/latest/) is an all-in-one solution for Python project management.

 </div>

=== ":simple-poetry: poetry" bash poetry add griffelib

 <div class="result" markdown>

 [Poetry](https://python-poetry.org/) is an all-in-one solution for Python project management.

 </div>

=== ":simple-rye: rye" bash rye add griffelib

 <div class="result" markdown>

 [Rye](https://rye.astral.sh/) is an all-in-one solution for Python project management, written in Rust.

 </div>

=== ":simple-astral: uv" bash uv add griffelib

 <div class="result" markdown>

 [uv](https://docs.astral.sh/uv/) is an extremely fast Python package and project manager, written in Rust.

 </div>

This installs the griffe package as usual, but without the CLI program and its dependencies.

Install as a tool only

=== ":simple-python: pip" bash pip install --user griffe

<div class="result" markdown>

[pip](https://pip.pypa.io/en/stable/) is the main package installer for Python.

</div>

=== ":simple-pipx: pipx" bash pipx install griffe

<div class="result" markdown>

[pipx](https://pipx.pypa.io/stable/) allows to install and run Python applications in isolated environments.

</div>

=== ":simple-rye: rye" bash rye install griffe

<div class="result" markdown>

[Rye](https://rye.astral.sh/) is an all-in-one solution for Python project management, written in Rust.

</div>

=== ":simple-astral: uv" bash uv tool install griffe

<div class="result" markdown>

[uv](https://docs.astral.sh/uv/) is an extremely fast Python package and project manager, written in Rust.

</div>

Running Griffe

Once installed, you can run Griffe using the griffe command:

$ griffe check mypackage

Or as a Python module:

$ python -m griffe check mypackage
Morty Proxy This is a proxified and sanitized view of the page, visit original site.