semvec/pypi-packages huggingface dataset:
source2prompt 0.3.2
A simple tool to convert source files to a single prompt file for LLMs
Requires Python: >=3.10

# Source2Prompt

[![PyPI Downloads](https://static.pepy.tech/personalized-badge/source2prompt?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/source2prompt)

Source2Prompt is a Python package that converts all text files in a directory into a single prompt file for use with Large Language Models (LLMs). It recursively scans the specified directory and its subdirectories, identifies text files based on their MIME types, and combines their contents into a single `prompt.txt` file.

## Installation

You can install Source2Prompt using pip:
```bash
pip install source2prompt
```


## Usage
To use Source2Prompt, open a terminal or command prompt and run the following command:

1. Specify a directory:  
For example, if you want to process text files in the C:\Users\YourName\Documents\MyProject directory, run this:
```bash
s2p C:\Users\YourName\Documents\MyProject
```

2. Use the current directory:
This command will process the text files in your current working directory:
```bash
s2p here
```
You can split the output into multiple prompt files using the --cut option:
```bash
s2p <directory> --cut <number>
```

After running the command, Source2Prompt will generate a prompt.txt file in the specified directory. This file will contain the contents of all text files found in the directory and its subdirectories.

## Supported File Types
Source2Prompt identifies text files based on their MIME types. It supports a wide range of text file formats, including but not limited to:
- Plain text files (.txt)
- Python files (.py)
- Markdown files (.md)
- JSON files (.json)
- CSV files (.csv)
- HTML files (.html, .htm)
- CSS files (.css)
- JavaScript files (.js)

Any file with a MIME type starting with text/ will be considered a text file and included in the prompt.txt file.

## s2p Output Format
The generated prompt.txt file will have the following format:
```bash
path/to/file1.txt:
Contents of file1.txt

path/to/file2.md:
Contents of file2.md

...
```

Each file's content is preceded by its relative path within the specified directory, followed by a colon and a newline. The file contents are then included, followed by two newline characters to separate it from the next file.

## This project is licensed under the MIT License. See the LICENSE file for details.
PyMCTranslate 1.2.40
A Minecraft data translation system.
Requires Python: ~=3.10

# PyMCTranslate

![Build](../../workflows/Build/badge.svg)
![Unittests](../../workflows/Unittests/badge.svg?event=push)
![Stylecheck](../../workflows/Stylecheck/badge.svg?event=push)
[![Documentation](https://readthedocs.org/projects/pymctranslate/badge)](https://pymctranslate.readthedocs.io)

PyMCTranslate is a translation system for Minecraft blocks, block entities, entities and items.
It enables translating data between a large number of Minecraft versions and platforms via an in-between format known as the Universal format.
This Universal format is a custom format independent of any Minecraft version and is designed to handle all data from any supported Minecraft version.  

The project is made up of a large number of specification and mapping files that are independent of any programming language making it a very flexible system.
These files are read by a small wrapper program that does what the mapping file says to do. Currently only a wrapper for Python 3 exists but others could be written.

# Amulet

This project was created for and is used by [Amulet](https://github.com/Amulet-Team/Amulet-Map-Editor) as a way to load the data from any world format into a consistent format.
This allows the editing of the data to be done in the same way regardless of what world format it has come from. This should solve a number of the issues that were present in MCEdit.