GPT Context Builder
A web-based tool for creating context blocks for ChatGPT from local files.
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
- XML Format:
<content filename="path/to/file.py">
file content here
</content>
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| gpt_context_builder-1.0.2.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|