Skip to main content

LLM prompt/context preparation utility

Project description

contextualize

contextualize helps gather files and other text snippets for use with LLMs.

Installation

pip install contextualize

or with uv:

uv tool install contextualize

Commands

command purpose
cat gather file contents (e.g. for piping to llm). often used with --copy + --prompt
map survey file/folder structure(s) with aider
shell capture output from arbitrary shell commands
fetch retrieve Linear issues (legacy)
payload compose text and file blocks from a YAML manifest

All commands work with the global flags --prompt, --wrap, --copy, and --write-file.

# example: gather a few files and copy to clipboard with a prefix
contextualize --copy --prompt "what does this do" cat contextualize/ README.md

more examples and details are available in docs/usage.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

contextualize-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contextualize-0.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file contextualize-0.1.0.tar.gz.

File metadata

  • Download URL: contextualize-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for contextualize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e961dce65174ff8499d65f95e3d20cf3554518da8574054ba7d9fb056d5aba56
MD5 106328b8a02bef67d293fda5da1e7b44
BLAKE2b-256 fbc96f97d47c0d60e7351a7df9eeab385df7057e940105a8c45bb606d948bfdb

See more details on using hashes here.

File details

Details for the file contextualize-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for contextualize-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1e25bf9c251212ebadd55504ab53a73e9500fe0aef6e53682f36dd521fa544
MD5 918359a9268097a0b50a374c1155d8ac
BLAKE2b-256 75eea81e665eda6afc5c7c39ab326f9276d902b438fbd7357f63f3b049826c22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page