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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpt_context_builder-0.1.1.tar.gz
  • Upload date:
  • Size: 8.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.1.tar.gz
Algorithm Hash digest
SHA256 6fffc2d97f1ac56631dce2400a7a03893aada24230b766b042bc65dec3b8fd31
MD5 63ebaf1741f68ccc008402db83d9a0ba
BLAKE2b-256 5476bc7380ce07fea6623da3c3b536f20834118b5a79e53fee7190abdbc5eaa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpt_context_builder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 229d45aac1a894c262d9e2b4444195a62d92a8a9e67cd96dc5b380ccb11da99c
MD5 bc40326cb3171b4b9437d3f393d504eb
BLAKE2b-256 94789ef15280b0829a84ac27bc04eb7c7b1f5744f1dcbfe973014b921ef05a3f

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