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-genaiSDK to provide accurate code summaries and architecture explanations. - ⚡ Smart Scanning: Automatically respects your
.gitignorerules to only document what matters. - 🎨 Beautiful CLI: Features a polished terminal interface with progress bars, spinners, and clean logs using the
richlibrary. - 🛡️ Safety First: Never overwrites your work without a backup. Doclify automatically saves your existing
README.mdtoREADME-prev.mdbefore 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!
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Open a Pull Request.
📄 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96425f7ad107ee0f1a5ad66a29d67fa3c6c7b75a06c35df087bc14f8418150a0
|
|
| MD5 |
0e30746b6df3a067b146f319db71e2a0
|
|
| BLAKE2b-256 |
4e3f3a4947f1e57c853af7a2bc671032451ede45a22a837109afa0ebc17f701b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a3ab294f4ad065dae17753bda80d1d6deac9c6308d96bb6844c9eb313aca247
|
|
| MD5 |
50435a15763d06895caba09adee0c89b
|
|
| BLAKE2b-256 |
21a2505dee1c58f89beb0100db322feea18e18cb316df1cb7c961d0483934c47
|