Skip to main content

An AI-powered README.md generator for local projects.

Project description

Docify AI 🚀

Instantly generate beautiful, comprehensive README.md files for your local projects using the power of AI.

What is Docify?

Every great project needs great documentation, but writing it is often a tedious, manual process. Docify is a command-line tool that automates this entire workflow. It intelligently scans your project's file structure and source code, understands what your project does, and uses a powerful language model to generate a high-quality README.md file in seconds.

Stop writing docs and start shipping code.

Key Features ✨

  • 🤖 AI-Powered Content Generation: Leverages large language models to write human-like, technical documentation.

  • 📂 Intelligent Code Analysis: Scans your entire project directory to understand its purpose, technologies, and structure.

  • ⚙️ Simple Command-Line Interface: Generate a complete README with a single command: docify.

  • 🚀 Fast and Efficient: Go from a messy project folder to a polished README in under a minute.

  • 🔧 Customizable: Easily specify the project path and output file name.

Installation

Docify is published on PyPI and can be installed on any machine with Python 3.8+ using pip.

pip install docify-ai

Usage

Using Docify is incredibly simple.

1. Set Your API Key

First, you need to make your Google Gemini API key available as an environment variable. This is a one-time setup per machine. You can get a key from the Google AI Studio for free.

macOS / Linux:

export GEMINI_API_KEY='your-secret-api-key' (To make this permanent, add the line to your ~/.zshrc or ~/.bashrc file.)

Windows:

$Env:GEMINI_API_KEY="your-secret-api-key"

2. Run Docify

Navigate to any project directory you want to document and run the command:

docify That's it! The tool will scan the current directory and create a README.md file with the AI-generated content.

Command-Line Options

You can also specify the path to your project and the desired output file.

  • --path: The root directory of the project to document. Defaults to the current directory (.).

  • --output: The name of the output file. Defaults to README.md.

Example:

docify --path /path/to/my-other-project --output DOCS.md

How It Works

Docify is built with a clean, modular architecture:

  1. Scanner (scanner.py): Traverses the specified project directory, ignoring unnecessary files (like .git, venv), and aggregates all source code into a single context string.

  2. Generator (generator.py): Takes the context string and feeds it to the Google Gemini API via LangChain, using a carefully crafted prompt to generate the Markdown content.

  3. CLI (cli.py): Provides the user-friendly command-line interface using argparse, orchestrating the scanner and generator to deliver the final README.md file.

Contributing

Contributions are welcome! If you have ideas for new features, bug fixes, or improvements, please open an issue or submit a pull request on our GitHub repository.

License

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

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

docify_ai-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

docify_ai-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file docify_ai-0.1.1.tar.gz.

File metadata

  • Download URL: docify_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for docify_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4900e2545da1d02341f2ec25ad0596c79ddf4ee27efcdcdf19a3389e9a10bb00
MD5 c924b89644c0bba89bac75522a557f73
BLAKE2b-256 097752abedc3e5e2e6e8cadb168d599a49b2e743cc6099e77447223211f619d0

See more details on using hashes here.

File details

Details for the file docify_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: docify_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for docify_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1db5b8c32e135e57c7ab0bc1d2906bae8f9b7db919788b98f93eeab6b8e54345
MD5 8b034e617bb55c3183cacc202e276ba0
BLAKE2b-256 77f3e569c7652950dd45e5d01504ca9615e34889b4151b8acf2a39892e59b1d2

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