Skip to main content

LLM Context Builder - Pip Package Structure

Package Structure

llm-context-builder/
├── setup.py
├── pyproject.toml
├── README.md
├── llm_context_builder/
│   ├── __init__.py
│   ├── main.py
│   ├── project_detector.py
│   └── exporters/
│       ├── __init__.py
│       └── base_exporter.py
└── requirements.txt

Installation & Usage

Installation

pip install llm-context-builder

Usage

# Export current directory
export_project

# Export specific directory
export_project /path/to/project

# Custom output location
export_project -o /custom/path/output.txt

# Quick web project export (auto-detects React/Vue/etc.)
export_project --preset web

# Quick Python project export
export_project --preset python

# Show token count estimate
export_project --count-tokens

# List available presets
export_project --list-presets

Features

🎯 Smart Project Detection

  • Automatically detects project type (Python, Node.js, React, Vue, etc.)
  • Applies appropriate exclusions for each project type
  • Suggests optimal presets

🧠 LLM-Optimized Output

  • Clean, readable format perfect for LLM context
  • Token counting to estimate context usage
  • Optimized file headers for better parsing
  • Smart content truncation for large files

⚡ Zero Configuration

  • Works out of the box in any directory
  • Sensible defaults for common project types
  • Creates project_export/ in current directory

🎛 Highly Configurable

  • Custom exclusion patterns
  • Project-specific presets
  • Flexible output options
  • Override any default behavior

Example Outputs

Command:

cd ~/my-react-app
export_project

Result:

✅ Detected: React project
📁 Output: ./project_export/react_app_20250602_143052.txt
📊 Files processed: 45
🔤 Estimated tokens: ~12,500
⏱ Completed in 0.3s

Command:

export_project --preset python --count-tokens

Result:

🐍 Using Python preset
📁 Output: ./project_export/python_project_20250602_143105.txt
📊 Files: 23 processed, 156 skipped
🔤 Tokens: 8,342 (fits in GPT-4 context)
📋 Included: .py, .md, .txt, .yml, .toml
🚫 Excluded: __pycache__, .git, venv, *.pyc

Project Presets

Available Presets:

  • web - React, Vue, Angular, general web projects
  • python - Python packages, Django, Flask projects
  • node - Node.js, npm packages
  • mobile - React Native, Flutter
  • docs - Documentation projects
  • minimal - Only essential text files
  • full - Include everything (use with caution)

Each preset automatically configures:

  • File type inclusions/exclusions
  • Folder exclusions
  • Size limits
  • Output formatting

Metadata

Release files for llm-context-builder 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-context-builder 1.0.0
File Size Uploaded Provenance
llm_context_builder-1.0.0.tar.gz 13.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-context-builder 1.0.0
File Interpreter ABI Platform
llm_context_builder-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / llm_context_builder-1.0.0.tar.gz

Download URL llm_context_builder-1.0.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a5ddf6cda23157a62991cf9fba170e24207586bddc5e4eeab578da12577a9e99
BLAKE2b-256 checksum
How to use checksums
03041acac263296cbd734c3e77e32e92a402d4767206009f1cece252a7c73be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / llm_context_builder-1.0.0-py3-none-any.whl

Download URL llm_context_builder-1.0.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58bfc60d1418ee8b6b68cf28a69c8fd840bfa64f12291f02e957d71d768a6d13
BLAKE2b-256 checksum
How to use checksums
c63f01610174d6fbd6ff117cbbd3fbec081b4ba54224cebd6d1f3abecccf1bfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for llm-context-builder 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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