Files-to-prompt

Latest version: v0.4

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4

- New `-e/--extension <ext>` option that filters for files with one or more specified extension, for example `files-to-prompt . -e md -e py` to find all Markdown and Python in the current directory. [28](https://github.com/simonw/files-to-prompt/issues/28)

0.3

- New `-o/--output <file>` option for writing the output to a file. [9](https://github.com/simonw/files-to-prompt/issues/9)
- New `-c/--cxml` option for outputting using the Claude XML-ish format [described here](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/long-context-tips#essential-tips-for-long-context-prompts). Thanks, [Lex Herbert](https://github.com/lexh). [#15](https://github.com/simonw/files-to-prompt/issues/15)

0.2.1

- Warn and skip non-UTF-8 files, rather than crashing. Warnings are printed to standard error. [5](https://github.com/simonw/files-to-prompt/issues/5)

0.2

- New `--ignore '*.md'` multi-option for providing additional patterns to ignore. Thanks, [Dipam Vasani](https://github.com/dipam7). [#1](https://github.com/simonw/files-to-prompt/issues/1)
- `files-to-prompt` can now be passed multiple files and directories as arguments, for example `files-to-prompt my_app.py tests/`. [2](https://github.com/simonw/files-to-prompt/issues/2)

0.1

- Initial release. Run `files-to-prompt .` to concatenate together the current directory contents into a prompt suitable for piping to an LLM.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.