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.1.tar.gz (7.8 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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpt_context_builder-1.0.1.tar.gz
  • Upload date:
  • Size: 7.8 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.1.tar.gz
Algorithm Hash digest
SHA256 07af230254daa04cfcc980bd6199d700c9a3970f164f63f65f1bf3c9e3191008
MD5 3d4cc05acf03ef991403ed57e58ff703
BLAKE2b-256 ea3e85575333eda7ca90f84e5eb66307f14bfd0b7fd6bb6e0bc66b1be58838ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpt_context_builder-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3758cc2c950b58a80898ccd8065d187fd0316a7c240698d40b5f4c2eae05dc4b
MD5 a7bab10f91954c9612c65fd87bbfa87f
BLAKE2b-256 2fdd1cf7a7afd8623f7339114064d8c2d2a499c19400b7e963fa32d0ee663f1c

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