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.2.tar.gz (7.6 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpt_context_builder-1.0.2.tar.gz
  • Upload date:
  • Size: 7.6 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.2.tar.gz
Algorithm Hash digest
SHA256 d1084aa4e8e39f9fac4d5901ef51c7955b70bc0ad831c46672499d35218efa85
MD5 fc51a802e13e6ab52c303fbcc992be75
BLAKE2b-256 9452f20604a721d0758149fd58b75739a8b2ea6613b5c760a04f74b75868cf81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpt_context_builder-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8c74618155d6ed1c62db19cddca4e51b79d78120a8db1e1f0c777db477c60c
MD5 5b09cfc12d3206b573f9a3158c17b64e
BLAKE2b-256 5452229fac70e4b86424ca3083baa512703ad8b4c81ad45cdd18cc045ae10298

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