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 Provenance Actions
files_to_chat-0.1.3.tar.gz 90.2 kB Without provenance Details for files_to_chat-0.1.3.tar.gz

Built distribution (wheel)

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

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

Security for files-to-chat 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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