This guide describes different ways to install DocGen.
Doc-Gen is not published to the public PyPI index. Authorized users can install
the immutable release package from its private GitLab project registry with a
deploy token that has read_package_registry permission:
python -m pip install \
--index-url "https://<deploy-token-user>:<deploy-token>@gitlab.com/api/v4/projects/<project-id>/packages/pypi/simple" \
"doc-gen==1.0.2"A release-candidate tag such as v1.0.0-rc.1 is stored as the canonical
PEP 440 version 1.0.0rc1:
python -m pip install \
--index-url "https://<deploy-token-user>:<deploy-token>@gitlab.com/api/v4/projects/<project-id>/packages/pypi/simple" \
"doc-gen==1.0.0rc1"Do not commit tokens. Disable GitLab package forwarding when resolution must
remain strictly private, and avoid --extra-index-url for private package
names.
Verify installation:
doc-gen --helpInstall directly from the GitHub repository:
pip install git+https://github.com/devalltect00/doc-gen.gitInstall a specific version:
pip install git+https://github.com/devalltect00/doc-gen.git@v1.0.2Pull the Docker image:
docker pull doc-genRun DocGen in a container:
docker run --rm doc-gen structure generateMount your project:
docker run --rm -v $(pwd):/workspace doc-gen structure generateClone and install in development mode:
git clone https://github.com/devalltect00/doc-gen.git
cd doc-gen
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -e .[dev]| Method | Best For |
|---|---|
| Private GitLab PyPI | Authorized deployments |
| GitHub | Latest development version |
| Docker | Isolated environment |
| Development | Contributing to the project |
After installation, verify by running:
doc-gen structure generateThis should create a PROJECT_STRUCTURE.md file.
- Quick Start - Quick start guide
- Installation - Full installation guide