Metadata-Version: 2.1
Name: gpt-context-builder
Version: 0.1.0
Summary: A tool for creating context blocks for ChatGPT from local files
Home-page: https://github.com/masuidrive/gpt-context-builder
Author: masuidrive
Author-email: masuidrive <masuidrive@masuidrive.jp>
License: MIT License
        
        Copyright (c) 2024 masuidrive
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/masuidrive/gpt-context-builder
Project-URL: Repository, https://github.com/masuidrive/gpt-context-builder.git
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask>=2.0.0
Requires-Dist: pathspec>=0.9.0
Requires-Dist: tiktoken>=0.3.0
Requires-Dist: click>=8.0.0

# 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

```bash
pip install gpt-context-builder
```

## Usage

Basic usage:
```bash
gpt-context-builder
```

With options:
```bash
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:
```xml
<content filename="path/to/file.py">
file content here
</content>
```

2. Code Block Format:
````markdown
```path/to/file.py
file content here
```
````

## License

MIT License
