Your customizable codding assistant in your CLI
Project description
CodePilot CLI
A powerful and customizable code assistant designed for the command line interface (CLI) to help developers automate various coding tasks.
Interactive Demonstration
We have created a short interactive demonstration on how to use the CodePilot CLI, showcasing its features.
Getting Started
To use the CodePilot CLI, you'll need to first install the package using pip:
pip install code-pilot-cli
Next, make sure to export your Hugging Face HF_TOKEN
as an environment variable. You can obtain your token from Hugging Face's website.
For Bash:
export HF_TOKEN=hf_**********************************
For PowerShell:
$env:HF_TOKEN = "hf_**********************************"
Now you are all set to start using the CodePilot CLI!
Usage
Access Help Options
To view available help options, run:
code-pilot --help
Interact with CodePilot
Engage with CodePilot by providing prompts:
code-pilot ai 'list all files in the current directory'
Chat with CodePilot
Initiate a conversation with CodePilot and export or import the chat history for future reference:
code-pilot chat --
Generate Code Completions
Obtain code completions from CodePilot based on the user's input:
code-pilot completions 'fn add(x: i32, y: i32) -> i32 {'
Generate Documentation
Generate code documentation directly from source files:
code-pilot document src/main.rs
Enhance Code Quality and Best Practices
Get suggestions on how to improve your code according to best practices:
code-pilot enhance App.tsx
Perform Code Review
Perform a code review using CodePilot model and receive valuable feedback:
code-pilot review app/models.py
Perform Code Scanning
Scan your code for potential security vulnerabilities:
code-pilot scan src/main.rs
Generate Tests
Automatically generate tests based on your source code:
code-pilot test src/lib.rs
Use Custom Large Language Models (LLMs)
Leverage custom LLMs for enhanced code assistants:
code-pilot chat -m'mistralai/Mistral-Nemo-Instruct-2407'
License
The CodePilot CLI project is released 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
File details
Details for the file code_pilot_cli-0.2.0.tar.gz
.
File metadata
- Download URL: code_pilot_cli-0.2.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982f3d2144acff52341468926e4d5bb0f5694150ad6c0af5e2af06b36430c0c0 |
|
MD5 | 4985943372d5abfa08ffccd48072f664 |
|
BLAKE2b-256 | d5b6de9dd8061b7f578c060d21f7aff32f5409b512a69c189ed05034fdc52bde |
File details
Details for the file code_pilot_cli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: code_pilot_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07c0a486cf75374b4b4072658a3097e7c598db3d084d125b9895db0e5e8f6b2a |
|
MD5 | 52efae2f082b544394974b10f4485c21 |
|
BLAKE2b-256 | 16d7f8c0dd0edc71a59d2dcc54b5a9a976a7e8ae434b9f21bcd8aad613bc3aa4 |