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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpt_context_builder-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 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-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5a4860c0bfe6282e585861391a50048f18af6029f09de0d039f59a5219c0227b
MD5 268f76efa76795bc97602defc5faed3a
BLAKE2b-256 f03e043b8960d6e1613d9359130478e4184ff655e08d8186e5f62a671c2f37af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpt_context_builder-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2d9b2ad243259df8422ba2f73ce0d70b70b255e80df5cc1fe0a22c9ff51738
MD5 1285a0e518c712c2095995f200e50b44
BLAKE2b-256 253b145c2182312678b11d05a3988aeaa546b8e68f4313c20f42c42c6c6db13c

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