GithubHelp home page GithubHelp logo

rubenselander / reposcribe Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.13 MB

RepoScribe compiles your codebase and directory structure into a Markdown document, ideal for enriching LLMs with code context or quick project reviews.

License: MIT License

Python 100.00%
documentation llm markdown productivity project-vis codebase-visualization

reposcribe's Introduction

RepoScribe

RepoScribe is a basic, lightweight tool for compiling your codebase and directory structure into a structured Markdown document. It is designed to enrich Large Language Models (LLMs) with project-specific context, but it's also highly effective for straightforward navigation and review of code projects or folders. The python package is self-contained, with no external dependencies.

The kindly helper

Installation

To install RepoScribe, simply use pip:

pip install RepoScribe

Usage

In the Terminal

RepoScribe can be used directly from your command line. You can run it in your project's root directory to create a Markdown file of the entire project:

reposcribe

This command will generate a reposcribe.md file in the current directory. If you want to specify the root directory of your project and the output file location, you can do so as follows:

reposcribe /path/to/project /path/to/output.md

In a Python File

You can also use RepoScribe programmatically in your Python scripts. Here's a simple usage example:

from reposcribe import create_doc_file

# Generate documentation for the project
project_doc = create_doc_file(root_path='/path/to/project', save_path='/path/to/output.md')

# The `project_doc` variable now contains the Markdown content
print(project_doc)

Features

  • Compile entire projects into a single Markdown document.

  • Include a detailed file and directory structure.

  • Simple and intuitive command-line interface.

  • Flexible usage - run in your project's root directory with no arguments or specify paths as needed.

  • File Type Filters: Specify a list of file extensions or file names to include or exclude from the documentation.

Planned Features

  • Multiple Output Formats: Allow exporting documentation to formats like HTML, PDF, or a Word document.
  • Code Syntax Highlighting: Integrate syntax highlighting in the generated Markdown for better readability of code snippets.
  • Documenting Non-Code Files: Include a structured summary of non-code files (like images, text files) in the project.
  • GitHub Integration: Generate documentation by specifying a public GitHub repository.
  • Dependency Graphs: Generate visual dependency graphs for the project, showing how different files and modules are interconnected.

reposcribe's People

Contributors

rubenselander avatar

Stargazers

 avatar

Watchers

 avatar

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.