Prepare code for AI chatbot assistance
Project description
aicodeprep (AI Code Prep)
aicodeprep is a command-line tool designed to simplify the process of sharing your project's code with AI chatbots. It recursively scans your project directory, concatenates all code files into a single text file, and copies the content to your clipboard for easy pasting.
Purpose
The primary purpose of aicodeprep is to save time when you need to ask AI chatbots questions about your development project. Instead of manually copying and pasting multiple files, aicodeprep automates the process of gathering all your project's code into a single, easily shareable format.
Installation
You can install aicodeprep directly from PyPI:
pip install aicodeprep
Usage
After installation, you can run aicodeprep from any directory containing your project files and folders:
aicodeprep
This will create a file named fullcode.txt
in the current directory and copy its contents to your clipboard.
Options
-n, --no-copy
: Do NOT copy output to clipboard (default behavior is to copy)-o FILENAME, --output FILENAME
: Specify the output file name (default: fullcode.txt)
Example:
aicodeprep -n -o my_project_code.txt
This will create my_project_code.txt
without copying to clipboard.
Configuration
You can customize aicodeprep's behavior by creating a aicodeprep_config.yaml
file in your project directory. Here's an example:
code_extensions:
- .py
- .js
- .html
exclude_dirs:
- node_modules
- venv
max_file_size: 500000 # in bytes
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aicodeprep-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e033c38468d8349cbc810dfe68bc680c392c842d5f326b20b59597fca4b0e5 |
|
MD5 | a4719bdd61f1787d3ed6deda1104869f |
|
BLAKE2b-256 | cd34f8df4107437400a416ab486e671bcf3a7c3b64df01b4d5a3b3281ff08824 |