Skip to main content

A tool to build GPT context.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt_context_builder-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpt_context_builder-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file gpt_context_builder-1.0.0.tar.gz.

File metadata

  • Download URL: gpt_context_builder-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for gpt_context_builder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0d1b01de80ddd58ab7cabf106bc2d80290044e62a7410d676857954cc8b9cb9b
MD5 e1f4ac563fd88f529b5783b6156cef5f
BLAKE2b-256 9a121acb0cd82b120992539788c10be3451502d46440856d9ad9154ec58bc321

See more details on using hashes here.

File details

Details for the file gpt_context_builder-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gpt_context_builder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e6f71ca7bb6608d91cb808581bf3632c826781ecba517b381b0fb70d85572c
MD5 a7ebb1de951060d6d833404e429aaff9
BLAKE2b-256 7c49bd0b7b0fbb432c77c9e2b7cfbcf67392fa1f9e3cb218193a49a5cf1326f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page