Skip to main content

AI-powered README generator. Point it at any repo.

Project description

Scanner I

Language

About

This project is an AI-powered README generator, designed for senior software engineers to analyze a repository context and extract structured information for a README file, targeting public GitHub repositories.

How It Works

The project utilizes a decision layer that picks the right model backend, either Ollama or Groq, based on the preferred model specified in the config.json file. It then uses the chosen model to generate a README file by analyzing the repository context and extracting relevant information. The project consists of several components, including a scanner, analyzer, and router, which work together to generate the README file. The scanner gathers information about the repository, the analyzer processes this information and generates a context string, and the router decides which model to use. The project also includes a parser that takes the model's output and converts it into a validated AnalysisObject, which is then used to generate the README file.

Teck Stack

  • Python 3.11
  • Typer 0.12
  • Rich 13
  • Pathspec 0.12
  • Pydantic 2
  • Jinja2 3

Prerequisites

  • Python 3.11+
  • pip
  • Git

Installation

  1. Run:
git clone https://github.com/owner/repo
  1. Run:
cd repo
  1. Run:
pip install -r requirements.txt
  1. Run:
cp .env.example .env
  1. Run:
pip install .

Usage

Generate a README file for the current repository

readmegen

Generate a README file for a specific repository

readmegen --repo https://github.com/owner/repo

Generate a README file with a specific model

readmegen --model groq

Scripts

Command Description
readmegen Generate a README file for the current repository

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

readmegen_rs-0.1.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

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

readmegen_rs-0.1.0-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: readmegen_rs-0.1.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for readmegen_rs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 61391c6d7089abbd0347c806391d9dc16cc965b6cbef003cc344f51f1ec9f384
MD5 4d54a8dba0dc5b008431c0fc0f5e772d
BLAKE2b-256 0502d93801b4dac3d74d5258ed35b2d219376a02fc91d7ed3eb768e3d08464b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: readmegen_rs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for readmegen_rs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b789f1ec9b3618f937a642cf934cde1b7c3b9e769304e3f882e59e8eeb50637
MD5 b6b5752362c1d474cd5b6d9486081706
BLAKE2b-256 6f0e1b639c32426aa0ae58253997fc0de8fc849b481676895b68cb898dc7ee73

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