Skip to main content

A tool for creating context blocks for ChatGPT from local files

Project description

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: 5001)
  • --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
```

License

MIT License

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.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distributions

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

gpt_context_builder-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

gpt_context_builder-0.1.0-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gpt_context_builder-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 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.0.tar.gz
Algorithm Hash digest
SHA256 efdd718729ee53f2ef16c72f4d5406df93821f2c521558fd5ccbf2246c1486de
MD5 26447e3214be86f9207f957af3eea8c3
BLAKE2b-256 7dc6c8fb000da7836ed2497954e55982429e243619fcdc39ad904af66ec3df47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpt_context_builder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9aed758957cbf274d6b845e44663914647317de8e1633e7a161e6b580f163e89
MD5 2c586d26b38ee9141da5dbabc8a07060
BLAKE2b-256 2d5114408fffbe3018b4a5e25eb8fbe89e3062c02f9a817dece8d4f7d861ed00

See more details on using hashes here.

File details

Details for the file gpt_context_builder-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gpt_context_builder-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d91ae1d008c798e4e8363194e9d5d5c963e4d0943639409a529077d299894d9
MD5 2b886965b132cde008d16d68b96938e4
BLAKE2b-256 c86d12d7cbf6194eec7c2608e82927ed1c06958ffeff266b38ea8f3011497cdb

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