a simple code chat tool inspired by auto coder
Project description
auto-coder-chat-lite
A lightweight AI code generation tool.
Overview
auto-coder-chat-lite
is a lightweight tool designed to facilitate code chat and project scaffolding. It provides a command-line interface for interacting with the project, allowing users to add, remove, and list files, as well as request AI-based code modifications.
Installation
To install auto-coder-chat-lite
, you need to have Python 3.6 or higher installed. Then, you can install the package using pip:
pip install auto-coder-chat-lite
Usage
After installation, you can run the tool using the following commands:
chat.code
chat.code
This command starts the interactive command-line interface for code chat and project scaffolding. You can use the following commands within this interface:
/add_files <file1> <file2> ...
- Add files to the current session./remove_files <file1> <file2> ...
- Remove files from the current session./list_files
- List all active files in the current session./coding <query>
- Request the AI to modify code based on requirements./exclude_dirs <dir1> <dir2> ...
- Exclude directories from file searches./conf [<key> [<value>]]
- View or set configuration options./commit_message
- Generate a commit message based on Git diff./help
- Show this help message./exit
- Exit the program.
chat.prompt
chat.prompt
This command is used to render a template using Jinja2. It requires two arguments:
template_path
: Path to the template file.text_path
: Path to the text file to be used as content.
Optionally, you can specify an output file path using the -o
or --output_path
flag (default is output.txt
).
Example usage:
chat.prompt path/to/template.txt path/to/content.txt -o path/to/output.txt
This command will render the template with the provided content, save the result to the specified output file, and copy the rendered content to the clipboard.
Dependencies
The project relies on the following Python packages:
colorama==0.4.6
loguru==0.7.2
markdown-it-py==3.0.0
mdurl==0.1.2
pathspec==0.12.1
prompt_toolkit==3.0.47
pydantic==2.8.2
pydantic_core==2.20.1
Pygments==2.18.0
pyperclip==1.9.0
rich==13.7.1
wcwidth==0.2.13
GitPython==3.1.43
Jinja2==3.1.4
openai==1.44.1
These dependencies are automatically installed when you install auto-coder-chat-lite
using pip.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contact
For any questions or feedback, please contact the author at 251027705@qq.com.
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
File details
Details for the file auto_coder_chat_lite-0.1.9.tar.gz
.
File metadata
- Download URL: auto_coder_chat_lite-0.1.9.tar.gz
- Upload date:
- Size: 34.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e6f4642a616e6ee9453f041b443976c42b7e7faf10407b9d524f597dd857f2 |
|
MD5 | 59f7c66a1773dbcf3cc8893835f9a2d2 |
|
BLAKE2b-256 | b2c85178924c21612a9bb5c89f6654bc83b7d39c8d461f5576301eaedea86787 |
File details
Details for the file auto_coder_chat_lite-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: auto_coder_chat_lite-0.1.9-py3-none-any.whl
- Upload date:
- Size: 41.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4cbfd0d186d69c93f52bf6de5d24497b62c9758971e6ff706821ba7212d3678 |
|
MD5 | f292bd311700060783a9e05d60dcc6d5 |
|
BLAKE2b-256 | be28981f96a361d7d7b6bd4f3d7f37180be14def069f55da7af45faf7c31931b |