Siphon
Efficiently extract, compress, and cache Git repository contexts for seamless integration with Large Language Models (LLMs).
Table of Contents
Features
- Efficient Extraction: Extracts and compresses repository contents while respecting
.gitignorerules. - Customizable Filtering: Include or exclude files and directories with ease.
- Multiple Output Formats: Supports text, tarball, and markdown formats optimized for LLM contexts.
- Caching and Chunking: Pre-cache large repositories for faster querying.
- Token Count Estimations: Get token counts for specific LLMs like GPT-3 and Claude.
- Clipboard and Stdout Support: Streamline workflows with seamless copying options.
- Modularity: Extend functionality with community-driven extensions.
- Interactive Mode: Granular file selection through an interactive interface.
Installation
Install Siphon using pip:
pip install siphon-cli
Usage
Navigate to your Git repository and run:
si -o context.txt
This command extracts the repository content into context.txt.
Examples
-
Include Specific File Types:
si -i "*.py" -o python_files.txt
-
Exclude Directories:
si -e "tests/*" -o code_without_tests.txt
-
Interactive Mode:
si --interactive -o selected_files.txt
-
Copy Output to Clipboard:
si --clipboard
Arguments
path: Path to the Git repository (default: current directory).-i,--include: Include file patterns (e.g.,.py,src/).-e,--exclude: Exclude file patterns (e.g.,tests/,*.md).-o,--output: Output file name (default:output.txt).-f,--format: Output format (text,tar,markdown).-c,--cache: Enable caching (future feature placeholder).--tokenizer: Tokenizer for token count estimation (gpt3,claude).--interactive: Interactive mode for file selection.--clipboard: Copy output to clipboard.--stdout: Print output to stdout.
Contributing
We welcome contributions from the community! To contribute:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -am 'Add a new feature'
-
Push to the branch:
git push origin feature/your-feature-name
-
Open a Pull Request.
Please read our Contributing Guidelines for more details.
License
This project is licensed under the MIT License.
Contact
- Email: morganj2k@gmail.com
- GitHub: atxtechbro
- Project Link: https://github.com/atxtechbro/siphon
Metadata
Release files for siphon-cli 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| siphon_cli-1.3.2.tar.gz | 5.4 kB | Without provenance | Details for siphon_cli-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| siphon_cli-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for siphon_cli-1.3.2-py3-none-any.whl |
Total release size: 10.6 kB
Release files / siphon_cli-1.3.2.tar.gz
| Download URL | siphon_cli-1.3.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82966e261c59c4af12139ba5c94e57dffe43241a610089998b5c91066a833e08
|
|
BLAKE2b-256 checksum How to use checksums |
051492db7f0d5486c9f9942f21a4b18be69e798a8a7c1900e8c8a2bb8c1d2c81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / siphon_cli-1.3.2-py3-none-any.whl
| Download URL | siphon_cli-1.3.2-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaf729f3c51cbee466a6cf9007f7416a807620304ea9565957aaf05de71f0826
|
|
BLAKE2b-256 checksum How to use checksums |
21f6585123335411852ef8341274961ffb828f8492a885c2bf02263a1d8d18e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for siphon-cli 1.3.2
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.