Giter Club home page Giter Club logo

auto-md's Introduction

automd~

Python tool that converts various file types and GitHub repositories into Markdown documents (.md) optimized for quick RAG/indexing via large language models (LLMs)

screen

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 file
  3. 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

# 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)

auto-md's People

Contributors

tegridydev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-md's Issues

tkinter issue in requirements.txt

Thank you for this project :3 I've tested it on my repos and it works really well.

One issue I had while installing was "tkinter" in the requirements file needed to be changed to "tk"

I have your code running in a python 3.11 miniconda environment on Ubuntu. I cloned the repo instead of downloading the .zip.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.