Skip to main content

GPT Context Builder

A web-based tool for creating context blocks for ChatGPT from local files.

screenshot

Features

  • Browse and select local files through a tree view interface
  • Generate formatted content blocks (XML or Markdown code blocks)
  • Track token count for GPT-4 context window
  • Copy formatted content to clipboard for easy pasting into ChatGPT
  • Automatic handling of special characters and code blocks
  • Support for .gitignore patterns

Installation

pip install gpt-context-builder

Usage

Basic usage:

gpt-context-builder

With options:

gpt-context-builder --port 8000 --root /path/to/project

Options:

  • --port: Specify the port number (default: 5432)
  • --root: Specify the root directory to serve (default: current directory)
  • --help: Show help message

Output Formats

  1. XML Format:
<content filename="path/to/file.py">
file content here
</content>
  1. Code Block Format:
```path/to/file.py
file content here
```

Author

Repository

License

Apache License 2.0

Metadata

Release files for gpt-context-builder 1.0.2

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

Source distribution (sdist)

Source distribution for gpt-context-builder 1.0.2
File Size Uploaded
gpt_context_builder-1.0.2.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt-context-builder 1.0.2
File Interpreter ABI Platform
gpt_context_builder-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / gpt_context_builder-1.0.2.tar.gz

Download URL gpt_context_builder-1.0.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d1084aa4e8e39f9fac4d5901ef51c7955b70bc0ad831c46672499d35218efa85
BLAKE2b-256 checksum
How to use checksums
9452f20604a721d0758149fd58b75739a8b2ea6613b5c760a04f74b75868cf81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / gpt_context_builder-1.0.2-py3-none-any.whl

Download URL gpt_context_builder-1.0.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf8c74618155d6ed1c62db19cddca4e51b79d78120a8db1e1f0c777db477c60c
BLAKE2b-256 checksum
How to use checksums
5452229fac70e4b86424ca3083baa512703ad8b4c81ad45cdd18cc045ae10298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

3 release files

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