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.agent
chat.agent
This command is used to interact with the OpenAI API for chat completions. It requires the OpenAI API key and model configuration. You can set up the configuration using the following command:
chat.agent setup --api_key YOUR_API_KEY --base_url https://api.openai.com/v1 --model gpt-3.5-turbo
To test the configuration, you can use:
chat.agent test
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.6pathspec==0.12.1prompt_toolkit==3.0.47pydantic==2.8.2Pygments==2.18.0pyperclip==1.9.0rich==13.7.1GitPython==3.1.43Jinja2==3.1.4pylint==3.2.7openai==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.
Metadata
Release files for auto-coder-chat-lite 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auto_coder_chat_lite-0.1.13.tar.gz | 36.3 kB | Without provenance | Details for auto_coder_chat_lite-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auto_coder_chat_lite-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for auto_coder_chat_lite-0.1.13-py3-none-any.whl |
Total release size: 83.5 kB
Release files / auto_coder_chat_lite-0.1.13.tar.gz
| Download URL | auto_coder_chat_lite-0.1.13.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c64fbc605de2bcd8f227114b1a51ca315f3fc921ccfcf0a88325be844c932f46
|
|
BLAKE2b-256 checksum How to use checksums |
906fea41c986ffaf32c3d7bc29021dad9f5120ed495efac9d4016a3853cede7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Release files / auto_coder_chat_lite-0.1.13-py3-none-any.whl
| Download URL | auto_coder_chat_lite-0.1.13-py3-none-any.whl |
|---|---|
| Size | 47.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48a3fb293392589344256dd0563eee2188dd197b6a7efa7757380100496b6282
|
|
BLAKE2b-256 checksum How to use checksums |
0c1fd4d6e97aa06c7b1db991cd5b2e18d7b2311f412514190692360198d6a156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Security for auto-coder-chat-lite 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.