Skip to main content

AI-powered documentation generator for Python projects

Project description

Doclify 📚

Doclify is an intelligent command-line tool that automates the process of documenting your software projects. By leveraging the power of Google's Gemini LLMs, Doclify scans your codebase, understands the context of each file, and generates a comprehensive, professional README.md file.

Note: This project was formerly known as docly.

✨ Key Features

  • 🚀 Two-Stage Generation: verification-driven documentation that first analyzes individual files for granule details, then aggregates them into a holistic project summary.
  • 🤖 Powered by Gemini: Uses the latest google-genai SDK to provide accurate code summaries and architecture explanations.
  • ⚡ Smart Scanning: Automatically respects your .gitignore rules to only document what matters.
  • 🎨 Beautiful CLI: Features a polished terminal interface with progress bars, spinners, and clean logs using the rich library.
  • 🛡️ Safety First: Never overwrites your work without a backup. Doclify automatically saves your existing README.md to README-prev.md before generating a new one.
  • ⚙️ Configurable: Fully customizable via doclify.yaml.

📦 Installation

You can install Doclify directly from PyPI (once published) or build it locally.

Local Development

git clone https://github.com/yourusername/doclify.git
cd doclify
pip install -e .

🛠️ Configuration

Doclify requires a Google API Key to function. You must set this environment variable before running the tool.

Windows (CMD):

set GOOGLE_API_KEY=your_actual_api_key_here

Windows (PowerShell):

$env:GOOGLE_API_KEY="your_actual_api_key_here"

Linux/macOS:

export GOOGLE_API_KEY=your_actual_api_key_here

🚀 Usage

Using Doclify is a simple two-step process:

1. Initialize

Run the init command to scan your directory and create a configuration file (doclify.yaml). This file lists all the source files that will be analyzed.

doclify init

2. Generate

Run the main command to analyze your code and generate the documentation.

doclify run

Once complete, you will see a new README.md in your project root!

🤝 Contributing

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes.
  4. Open a Pull Request.

📄 License

MIT License

Project details


Download files

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

Source Distribution

doclify-0.1.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

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

doclify-0.1.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file doclify-0.1.0.tar.gz.

File metadata

  • Download URL: doclify-0.1.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doclify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96425f7ad107ee0f1a5ad66a29d67fa3c6c7b75a06c35df087bc14f8418150a0
MD5 0e30746b6df3a067b146f319db71e2a0
BLAKE2b-256 4e3f3a4947f1e57c853af7a2bc671032451ede45a22a837109afa0ebc17f701b

See more details on using hashes here.

File details

Details for the file doclify-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: doclify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doclify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3ab294f4ad065dae17753bda80d1d6deac9c6308d96bb6844c9eb313aca247
MD5 50435a15763d06895caba09adee0c89b
BLAKE2b-256 21a2505dee1c58f89beb0100db322feea18e18cb316df1cb7c961d0483934c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page