Skip to main content

files-to-chat: Process Files for LLM Prompt Contexts

files-to-chat is a command-line tool designed to process files or folders, converting their contents into a format suitable for use as a prompt context to chat with large language models (LLMs).

Table of Contents

Installation

To install and use files-to-chat, you have two options:

  1. Using pip:

    pip install files-to-chat
    
  2. From Source:

    git clone https://github.com/mzbac/files-to-chat.git
    cd files-to-chat
    pip install .
    

Usage

Run the tool from the command line to chat with processed documents:

files-to-chat path/to/file_or_folder

For detailed options, run:

files-to-chat --help

Example Usage

files-to-chat /path/to/your/file.txt

This command will process the specified file and generate a prompt context suitable for use in a chat session with an LLM.

Cleaning Up the Prompt Cache

Prompt caches are stored under your home cache directory. To remove the cache, run:

rm -rf ~/.cache/files-to-chat/prompt_cache

Metadata

Release files for files-to-chat 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for files-to-chat 0.1.3
File Size Uploaded
files_to_chat-0.1.3.tar.gz 90.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for files-to-chat 0.1.3
File Interpreter ABI Platform
files_to_chat-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 95.7 kB

Release files / files_to_chat-0.1.3.tar.gz

Download URL files_to_chat-0.1.3.tar.gz
Size 90.2 kB
Tags Source
SHA-256 checksum
How to use checksums
56f70619a55cfcf7c528be731608e386cab16eb275f2ee16da1344f4952974f7
BLAKE2b-256 checksum
How to use checksums
4c9908d6ac6dd6b09f467874e6b0b2e8a5df5addec7aebb722949d5f811da6cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.27

Release files / files_to_chat-0.1.3-py3-none-any.whl

Download URL files_to_chat-0.1.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4575b5e84cc63fe6e3ebd395205637f0ed5e500582690f9fc0ff73cf35b95adb
BLAKE2b-256 checksum
How to use checksums
661d2ea307642d8116856f2f9b67fd1475120c243ede10da18d65ecf8ab123a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.27

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page