Skip to main content

Fetch and cache README files for Python dependencies to use with AI assistants

Project description

readmerator

Supercharge your AI coding assistant with instant access to all your dependency documentation.

Fetch and cache README files for Python dependencies, making them instantly available to AI assistants like Amazon Q, GitHub Copilot, and Cursor.

Why?

AI coding assistants are powerful, but they don't automatically know about the packages you're using. You end up:

  • Manually looking up documentation
  • Copy-pasting docs into context
  • Getting generic answers instead of package-specific help

readmerator solves this by automatically fetching all your dependency READMEs into a local folder that your AI can reference.

Installation

pip install readmerator

Quick Start

# In your project directory
readmerator

# Then in your AI assistant
@folder .ai-docs

That's it! Your AI now has full context on all your dependencies.

How It Works

  1. Finds your requirements.txt
  2. Fetches README files from PyPI and GitHub for each package
  3. Saves them to .ai-docs/ with metadata headers
  4. You reference the folder in your AI assistant

Usage

Basic

readmerator

With Options

# Custom output directory
readmerator --output-dir docs/packages

# Specify requirements file
readmerator --source requirements.txt

# Verbose output (shows source: PyPI vs GitHub)
readmerator --verbose

Example Output

$ readmerator --verbose
Found 16 packages in requirements.txt
Fetching READMEs to .ai-docs/

Fetching flask...
   flask: Saved (12453 bytes) from PyPI
Fetching fastapi...
   fastapi: Saved (23891 bytes) from GitHub
...

✓ Successfully fetched: 15 Failed: 1
  Failed packages: private-internal-package

READMEs saved to .ai-docs/
Use '@folder .ai-docs' in your AI assistant to include documentation

Output Format

Each package gets a markdown file with metadata:

---
Package: requests
Version: 2.32.5
Source: https://github.com/psf/requests
Fetched: 2024-01-15 10:30:00
---

# Requests

**Requests** is a simple, yet elegant, HTTP library.
...

Features

  • Smart Fetching: Tries PyPI first, falls back to GitHub
  • Fast: Async/concurrent fetching
  • Reliable: Graceful error handling for missing packages
  • Informative: Progress indicators and detailed verbose mode
  • Lightweight: Minimal dependencies (just aiohttp)

AI Assistant Integration

Amazon Q

@folder .ai-docs

GitHub Copilot

#file:.ai-docs/*

Cursor

@Docs .ai-docs

Requirements

  • Python 3.8+
  • aiohttp

Contributing

Contributions welcome! Feel free to open issues or PRs on GitHub.

License

MIT © Arved Klöhn

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

readmerator-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

readmerator-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for readmerator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10531b8c750853bb108f1ad1331a3996e486fc33151e1f36f4d4373b9a1e818f
MD5 274ca01047069a3226694181628d92a1
BLAKE2b-256 86184647f4a03ee36ec2cd1372beaf5a379939c43c8cb3bcee10cd650f1f6bdc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for readmerator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b65c4409abc82963255029a56533f4632f4de29fc2b9419c8774961cf5c286a
MD5 2697ad263ef64fb4132a30e791daed7a
BLAKE2b-256 22e4770f25b6f634690bc7d81f9e8ab4e1e921d1a6c2ffef102e2c6be484a967

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