Skip to main content

Context Curse

Context Curse is a command-line tool designed to manage files and directories, specifically for preparing data before feeding it into a language model (LLM) with a limited context window. It provides a terminal-based interface for selecting and managing files and directories.

Features

Navigation: Navigate through directories and files. Selection: Select or deselect files and directories. Expansion/Collapse: Expand or collapse directories to view or hide their contents. Save Selections: Save selected files and directories to a specified output file. Massive File Generation: Generate a comprehensive file combining the contents of selected files and directories.

Installation

You can install Context Curse using pip:

pip install context-curse

Usage

After installation, you can run the context_curse command from your terminal. The available options are:

python -m context_curse -h

Options

  • -e, --extensions Comma-separated list of file extensions to keep (e.g., py,txt).

  • -i, --input Path to a text file containing a list of paths to keep, one per line.

  • -o, --output Path to the output text file where selected paths will be saved.

Example

To run Context Curse with a specific configuration, use the following command:

python -m context_curse -e "py,txt" -i "preferences.txt" -o "preferences.txt"

the code above takes in the 'preferences.txt' file, which contains a list of paths to keep, and saves the selected paths to the same file. the code also creates a 'preferences_massive.txt' file that contains the combined contents of the selected files and directories.

Commands

While running Context Curse, use the following commands in the terminal interface:

  • ↑/↓ : Navigate through items.
  • Enter : Select or deselect the current item.
  • Space : Expand or collapse directories.
  • s : Save the current selections.
  • q : Quit the application.

Colors

  • Green: Kept files or directories.
  • Yellow: Mixed state (partially kept).
  • White: Not kept files or directories.

Contributing

Contributions to Context Curse are welcome. Please submit issues and pull requests on the GitHub repository.

Acknowledgements

Context Curse utilizes the curses library for terminal-based UI and argparse for command-line argument parsing.

Feel free to adjust any sections or add additional details relevant to your project!

Metadata

Release files for context-curse 0.0.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 context-curse 0.0.3
File Size Uploaded Provenance Actions
context_curse-0.0.3.tar.gz 6.1 kB With provenance Details for context_curse-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for context-curse 0.0.3
File Interpreter ABI Platform Actions
context_curse-0.0.3-py3-none-any.whl Python 3 none any Details for context_curse-0.0.3-py3-none-any.whl

Total release size: 13.2 kB

Release files / context_curse-0.0.3.tar.gz

Download URL context_curse-0.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a1a6f71b7aa1adddaa72ca4f7f4dfc641024ba1f984e75e3a88c904050971bf
BLAKE2b-256 checksum
How to use checksums
66963dc81f1841a7890a106a7ca2f2c08484876486e364fb2739f663060ad00b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2024.

Transparency log

Release files / context_curse-0.0.3-py3-none-any.whl

Download URL context_curse-0.0.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96094b4953a3fbdf37b2c46ccf68617c09ab87dbda34a17e1302606cff157aa9
BLAKE2b-256 checksum
How to use checksums
6c6800b38143b432fef56de6335da39f541543d896338059d21108aae0d226fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2024.

Transparency log

Security for context-curse 0.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for context_curse-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2024.

Transparency log

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