Skip to main content

Dokugen (Python Client)

Demo GIF

Sponsor Dokugen

Dokugen is a lightweight, AI-powered CLI tool that automatically generates and maintains README.md files and LICENSE files for your projects. It scans your codebase, understands what your project does, and produces clean, professional documentation, so you don't have to.


Quick Start

Installation

Install Dokugen globally using uv (recommended) or pip:

uv tool install dokugen
# or
pip install dokugen

Usage

1. Launch the Interactive Assistant

Simply run dokugen in your project folder to open the interactive setup assistant. From here, you can generate a README, update existing docs, generate a LICENSE file, revert backups, or run AI-assisted Git commits.

dokugen

Note: If dokugen command is not in your PATH, you can also run it via Python:

python -m dokugen

2. Standalone Commands

Generate README

Scan your project files and construct a new README.md.

dokugen generate

Generate README with a Custom Template

Use any public README.md file as a structure template.

dokugen generate --template https://raw.githubusercontent.com/username/repo/main/README.md

Smart Update README

Intelligently rebuilds auto-generated sections (tech stack, API details, file layout) while keeping your custom text, notes, and badges intact.

dokugen update

Generate LICENSE File

Instantly scaffold a LICENSE file for your project. Dokugen will prompt you to pick from the most common open-source licenses, pre-filled with your name and the current year.

dokugen license

Supported licenses:

  • MIT, Simple and permissive. Great for most open-source projects.
  • ISC, Same as MIT but shorter.
  • Apache 2.0, Permissive with explicit patent rights grant.
  • GNU GPLv3, Strong copyleft. Derivatives must also be open source.
  • BSD 2-Clause, Permissive. Requires copyright notice preservation.
  • Unlicense, Public domain. No rules, no conditions.

AI Git Commit (aic)

Analyze your staged files, generate a Conventional Commit message automatically, commit, and optionally push.

dokugen aic
# or push immediately after committing
dokugen aic --push

Safety Backup Revert (revert)

Accidentally generated something you didn't like? Restore your previous README.md instantly from the automatic backup.

dokugen revert

Generate CHANGELOG (changelog)

Analyze your Git commit history and automatically generate or update a structured CHANGELOG.md adhering to Keep a Changelog standards.

dokugen changelog
# or analyze up to a custom limit of commits
dokugen changelog --limit 100
# or specify a custom OpenRouter model
dokugen changelog --model anthropic/claude-3.5-sonnet

Features

  • Interactive Menu: Run dokugen with no arguments to navigate all tool actions through a beautiful console prompt, perfect for both new and experienced developers.
  • Smart README Updates: Re-run generation without losing your manual modifications. Only auto-generated blocks get updated; your custom content stays untouched.
  • LICENSE Generator: Pick from 6 popular open-source licenses and have a properly formatted LICENSE file created instantly, pre-filled with your author name and year.
  • CHANGELOG Generator: Automatically builds and prepends release notes by parsing your Git commit history since the last release tag.
  • AI-Powered Commits: Automatic staging and conventional commit message generation via Google Gemini, keeps your commit history clean and consistent.
  • Compressed Uploads: Efficiently packages codebases with 70–90% upload size compression to support analyzing larger projects without hitting API size limits.
  • Language & Framework Agnostic: Works out of the box with any programming language or framework (JavaScript, TypeScript, Python, Rust, Go, Java, PHP, C++, Django, React, etc.). You don't need Python or Node.js to be your codebase's main language; you can simply install Dokugen globally using Python (pip/uv) or Node (npm/pnpm/yarn), and run it in any directory.
  • Custom Templates: Use any public GitHub README as a structural template for your generated docs.

Contributing

Contributions are welcome! Read our Contribution Guide to get started.

License

This project is licensed under the MIT License, see the LICENSE file for details.

Author


License: MIT Open Source Love Maintenance PyPI Python Made in Nigeria

Readme was generated by Dokugen

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dokugen-14.0.8.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dokugen-14.0.8-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file dokugen-14.0.8.tar.gz.

File metadata

  • Download URL: dokugen-14.0.8.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dokugen-14.0.8.tar.gz
Algorithm Hash digest
SHA256 70ac05f52700b21d712bc2dc21979f32f3790373f696658279fe4aecdbfcfd39
MD5 0dc7beba9c59e88aab9f4caf45bb0ae6
BLAKE2b-256 86352e49f5baea0f57a45a08a69653e348e76f971c4a4bb41fbf120db1fa7ef4

See more details on using hashes here.

File details

Details for the file dokugen-14.0.8-py3-none-any.whl.

File metadata

  • Download URL: dokugen-14.0.8-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dokugen-14.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa551f698f0f61131833545afd88e4a16ac3973e68909cc1c10998822b28916
MD5 0e8864fe28d3fa6408d167c978a15e3b
BLAKE2b-256 c8d052c595b7830a60fb2cc3108595fcb7fbdfa85312245801a9753395a5532a

See more details on using hashes here.

Release history Release notifications | RSS feed

14.0.10

2 files

14.0.9

2 files

This release

14.0.8 This release

2 files

14.0.7

1 file

14.0.6

2 files

14.0.5

2 files

14.0.4

2 files

14.0.3

2 files

14.0.2

2 files

14.0.1

2 files

14.0.0

2 files

3.12.4

2 files

3.12.3

2 files

3.12.2

1 file

3.12.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page