Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tegridydev/auto-md
Convert Files / Folders / GitHub Repos Into AI / LLM-ready Files
https://github.com/tegridydev/auto-md
ai ai-tool convert github llm llm-tools md python python-convert python-script scrape
Last synced: 3 days ago
JSON representation
Convert Files / Folders / GitHub Repos Into AI / LLM-ready Files
- Host: GitHub
- URL: https://github.com/tegridydev/auto-md
- Owner: tegridydev
- License: other
- Created: 2024-06-25T22:17:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T15:55:47.000Z (11 days ago)
- Last Synced: 2025-01-11T17:26:04.460Z (10 days ago)
- Topics: ai, ai-tool, convert, github, llm, llm-tools, md, python, python-convert, python-script, scrape
- Language: Python
- Homepage: https://automd.toolworks.dev/
- Size: 82 KB
- Stars: 139
- Watchers: 10
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ~auto~md~
## On-going development & updates via https://github.com/toolworks-dev/auto-md
### (this is just my personal python tool script version in this repo)-----------------------------------------------------------------------------------------------
### Python tool that converts various file types and GitHub repositories into Markdown documents (.md) optimized for quick RAG/indexing via large language models (LLMs)Try the web version at https://automd.toolworks.dev
![screen](auto-md-gui-screen.png)
## Features
- Supports multiple file types (see table below)
- Processes zip files/folders/individual files and GitHub repositories
- Generates a single Markdown file or multiple files
- Creates a table of contents and metadata for each file processed## Supported File Extensions
| Category | Extensions |
|----------|------------|
| Text | .txt, .text, .log |
| Markdown | .md, .markdown, .mdown, .mkdn, .mkd, .mdwn, .mdtxt, .mdtext |
| Web | .html, .htm, .xhtml, .shtml, .css, .scss, .sass, .less |
| Programming | .py, .pyw, .js, .jsx, .ts, .tsx, .java, .c, .cpp, .cs, .go, .rb, .php, .swift, .kt |
| Data | .json, .jsonl, .yaml, .yml, .xml, .csv, .tsv |
| Config | .ini, .cfg, .conf, .config, .toml, .editorconfig |
| Shell | .sh, .bash, .zsh, .fish, .bat, .cmd, .ps1 |
| Other | .rst, .tex, .sql, .r, .lua, .pl, .scala, .clj, .ex, .hs, .ml, .rs, .vim |## Quick Setup Guide
1. Install Python 3.7 or newer
2. Download this project (or clone repo like normal):
- Click the green "Code" button above
- Choose "Download ZIP"
- Extract the ZIP file3. Open a terminal/command prompt and navigate to the extracted folder:
```
cd path/to/Auto-MD
```4. Install required packages:
```
pip install -r requirements.txt
```5. Run the application:
```
python main.py
```6. Use the GUI to:
- Select input files/folders
- Choose output location
- Set processing options
- Click "Start Processing"## Example Input/Output
### Input
Let's say you have the following files in a folder called "my_project":
- README.md
- script.py
- data.json
- styles.css### Output
After processing with Auto MD, you would get a single Markdown file (`output.md`) that looks like the example below
This single .md file contains all the content from your input files, with a table of contents at the top for easy navigation and referencing / indexing via LLM models
```markdown
# Auto MD Output## Table of Contents
- [README](#readme)
- [script](#script)
- [data](#data)
- [styles](#styles)---
# README
## Metadata
- **Generated on:** 2024-06-30 16:30:15
- **Source:** my_project(Content of README.md)
---
# script
## Metadata
- **Generated on:** 2024-06-30 16:30:16
- **Source:** my_project(Content of script.py)
---
# data
## Metadata
- **Generated on:** 2024-06-30 16:30:17
- **Source:** my_project(Content of data.json)
---
# styles
## Metadata
- **Generated on:** 2024-06-30 16:30:18
- **Source:** my_project(Content of styles.css)
```