Automated README.md generator powered by AI - analyzes your project and creates professional documentation
Project description
Readme Generator ✨ Automated README Creation with AI
Readme Generator is a powerful Python-based tool designed to automatically create comprehensive and engaging README.md files for your software projects. Leveraging Google's Generative AI, it intelligently scans your project structure, detects technologies, identifies dependencies, and synthesizes a professional README tailored to your codebase.
🚀 Quick Start (New Users)
Just installed? Follow these 3 steps:
- Get your free API key from Google AI Studio
- Set the API key (choose one):
- Windows:
setx GEMINI_API_KEY "your_api_key_here"(then restart terminal) - Linux/Mac:
export GEMINI_API_KEY='your_api_key_here'(add to~/.bashrcfor permanent)
- Windows:
- Generate README:
cd /path/to/your/project castorscribe
That's it! Your README.md will be created in your project folder.
📖 New to the tool? See GETTING_STARTED.md for a detailed first-time user guide.
Table of Contents
- Quick Start (New Users)
- Features
- Technology Stack
- Installation
- Configuration
- Usage
- Project Structure
- Contributing
- License
- Author
Features
- Automated Project Analysis: Scans your project directory to identify key files, programming languages, and frameworks.
- Dependency Detection: Automatically lists Python dependencies using
requirements.txtor similar mechanisms. - AI-Powered README Generation: Utilizes Google GenAI to craft a detailed and well-structured
README.mdbased on the project's analysis. - Dynamic Content Generation: Generates sections like Features, Tech Stack, Installation, Usage, and Project Structure tailored to your specific project.
- Markdown Cleanup: Formats and cleans the AI-generated markdown for optimal readability and adherence to best practices.
Technology Stack
This project is built using the following technologies:
- Python: The core programming language that drives the entire application, from scanning to AI interaction.
- Google GenAI: Integrated to provide the advanced artificial intelligence capabilities for generating high-quality markdown content.
Installation
Quick Install (Recommended)
Install directly from PyPI:
pip install castorscribe
After installation, use it from anywhere:
# Generate README for current directory
castorscribe
# Generate README for specific folder
castorscribe /path/to/your/project
Alternative: Install from Source
If you want to install from source:
-
Clone the repository:
git clone https://github.com/your-username/readme-generator.git cd readme-generator
-
Install the package:
pip install -e .
Or install dependencies only:
pip install -r requirements.txt
Configuration
This project requires a Google Gemini API key to function.
Get Your API Key
- Visit Google AI Studio to generate your API key
- Copy your API key
Set the API Key
The application looks for the API key in these environment variables (in order):
GEMINI_API_KEY(preferred)GOOGLE_API_KEY
Windows (Permanent)
setx GEMINI_API_KEY "your_api_key_here"
Then restart your terminal.
Windows (Temporary - Current Session)
Command Prompt:
set GEMINI_API_KEY=your_api_key_here
PowerShell:
$env:GEMINI_API_KEY="your_api_key_here"
Linux/Mac (Permanent)
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
export GEMINI_API_KEY='your_api_key_here'
Then reload:
source ~/.bashrc # or ~/.zshrc
Linux/Mac (Temporary - Current Session)
export GEMINI_API_KEY='your_api_key_here'
Note: If the API key is not set, the tool will prompt you to enter it when you run it.
Usage
Basic Usage
After installation, you can use the castorscribe command from anywhere:
# Generate README for current directory
castorscribe
# Generate README for a specific project folder
castorscribe /path/to/your/project
# Alternative command name
generate-readme /path/to/your/project
Running from Source
If installed from source without the entry point:
python main.py /path/to/your/project
The generated README.md file will be created in the specified project directory.
Project Structure
├── README.md
├── generator.py
├── main.py
├── requirements.txt
└── scanner.py
main.py: The primary entry point for the application. It orchestrates the scanning, AI interaction, and final README generation process.scanner.py: Responsible for analyzing the target project's file system, detecting technologies, dependencies, and extracting relevant code snippets for the AI prompt.generator.py: Contains the logic for constructing a comprehensive prompt for the AI model based on the data gathered byscanner.py.requirements.txt: Lists all Python package dependencies required to run the Readme Generator.README.md: This file, generated by the tool itself or a placeholder for the generated output.
Contributing
Contributions are welcome! If you have suggestions for improving the Readme Generator, please feel free to fork the repository, make your changes, and submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
- Your Name / Organization
Project details
Release history Release notifications | RSS feed
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 castorscribe-1.0.0.tar.gz.
File metadata
- Download URL: castorscribe-1.0.0.tar.gz
- Upload date:
- Size: 6.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17946a7b1fe477dc1cd34a96e96b8e9dfd9cda32b40ffec443275703c582d3a2
|
|
| MD5 |
aa1a1392f9b880c46fa876a3b1aa927c
|
|
| BLAKE2b-256 |
6b62461a0fac0574a32e705f4037af456a134ee5ba9bbd5e1a28f0256124f693
|
File details
Details for the file castorscribe-1.0.0-py3-none-any.whl.
File metadata
- Download URL: castorscribe-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d488f09f98568a61c4ce2d2944f8db9b9d4f760d2d37ff1e67725fa1d052a25
|
|
| MD5 |
7409f99d46b9a28ed4b92b1c957fc8fb
|
|
| BLAKE2b-256 |
8a30f01bafd53c7d1a84643c275e4b81bc2253638962955498c1be89c7048582
|