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
- Finds all your dependency files (
requirements.txt,pyproject.toml,setup.py,setup.cfg,Pipfile,environment.yml) - Fetches README files from PyPI and GitHub for each package
- Saves them to
.ai-docs/with metadata headers - You reference the folder in your AI assistant
Usage
Basic
readmerator
With Options
# Custom output directory
readmerator --output-dir docs/packages
# Specify a specific requirements file
readmerator --source requirements.txt
# Verbose output (shows source: PyPI vs GitHub)
readmerator --verbose
By default, readmerator automatically detects and parses all dependency files in your project:
requirements.txtpyproject.toml(PEP 621 and Poetry)setup.pysetup.cfgPipfile(Pipenv)environment.yml(Conda)
Example Output
$ readmerator --verbose
Found 16 packages
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
- Multi-Format Support: Automatically detects and parses all common Python dependency formats
- 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
- tomli (for Python < 3.11)
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
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 readmerator-0.1.2.tar.gz.
File metadata
- Download URL: readmerator-0.1.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a9a18ed36e17b7190a4cf3744128114b242b29820bd526f26ef0766c9763eca
|
|
| MD5 |
49a7ae926465d3e9769dcf0b956d88d4
|
|
| BLAKE2b-256 |
44064529f9b6ed00ce2071cae28618605765e5e0ab8a96231ae9c490098e582f
|
File details
Details for the file readmerator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: readmerator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e9b44f9bdbcea2fa2d2bc285e31e79acc190fd41406e8862caf988ba28d794b
|
|
| MD5 |
466dd60543893cbcfdfd9ab86c43af22
|
|
| BLAKE2b-256 |
c2ba53ec43e494bd9749de135bc87b7a302e6115f3ef064f5ccc9babd9269036
|