Install CommonForms
mainCommonForms can be installed either as a standalone CLI tool or as a library for use within an existing Python project.
As a CLI tool (Recommended):
To avoid dependency conflicts with your existing environment, it is recommended to install CommonForms in an isolated environment using uv tool or pipx. This exposes only the commonforms command.
As a library:
If you want to import CommonForms into your own Python code, install it using uv pip or pip.
⚠️ Warning: Because CommonForms has a large dependency footprint (including transformers, torch, rfdetr, and ultralytics) and pins specific versions, installing it into a shared or base environment may upgrade or change your existing packages like numpy, pillow, or transformers. It is highly recommended to use a dedicated virtualenv or conda environment.
# Install as an isolated CLI tool
uv tool install commonforms
# or
pipx install commonforms
# Install as a library in an existing project
uv pip install commonforms
# or
pip install commonforms