CodeStar is an advanced AI-powered coding assistant designed to enhance developer productivity by providing intelligent code suggestions and natural language interactions. Built on Hugging Face's StarCoder 2 (15B) and StarChat 2 15B.
Project description
CodeStar CLI: AI-Powered Development Guide and Productivity Enhancement
Welcome to the world of CodeStar, a cutting-edge AI-powered development tool designed to enhance your programming efficiency and productivity. By harnessing the power of StarCoder 2, a state-of-the-art LLM for code, CodeStar provides unparalleled assistance in various coding tasks, including AI-powered code completions, natural language processing, multi-language support, and seamless integration.
Key features of CodeStar include:
- Superior code completions: Receive precise and contextually relevant suggestions, allowing you to write code faster with fewer errors.
- Natural language understanding: Interact with CodeStar using natural language, enabling explanations, debugging tips, and guidance tailored to your specific needs.
- Multi-language support: Effortlessly write and run code in over 100 programming languages with CodeStar's seamless integration support.
- Learning from usage data: Make every interaction more personalized by continuously learning from your coding habits, ensuring that you always receive relevant and timely insights.
With CodeStar, you can unlock new worlds of possibilities for coding efficiency, faster response times, and greater intuitiveness. Your drive for better software development can be rewarded with increased productivity, reduced debugging time, and enhanced code quality.
Installation
To install CodeStar CLI, use pip:
pip install code-star-cli
After installation, make sure to export your HF_TOKEN
as an environment variable. Your token can be found in HuggingFace's Settings page:
shell:
export HF_TOKEN=hf_**********************************
Powershell:
$env:HF_TOKEN = "hf_**********************************"
Now, you're ready to start using CodeStar's rich suite of features to enhance your coding experience.
Usage Instructions
Command Reference
To view the usage instructions and command reference, use:
code-star --help
Prompt AI-Powered Code Completions
To get AI-powered code completions for your coding journey:
code-star ai "Generate a function to calculate the area of a circle"
code-star ai -c code.py "Explain the code"
code-star ai -o output.md "How to install HuggingFace Transformers?"
Start an Interactive Chat
CodeStar also offers an interactive chat experience, allowing you to engage in semi-structured conversations:
code-star chat --
To export your chat history:
code-star chat -e chat-history.json
To import a chat history:
code-star chat -h chat-history.json
Perform both import and export actions:
code-star chat -h chat-history.json -e chat-history.json
Generate Code Completions Based on Code Snippets
Need assistance with completing your code snippet? CodeStar can help:
code-star completions 'def hello_world():'
code-star completions -l python 'def hello_world():'
Generate Code Documentation
To improve your code readability and maintainability, generate documentation using CodeStar:
code-star document code.py
Enhance Code Quality and Best Practices
Apply best practices and enhancements suggested by CodeStar:
code-star enhance code.py
Perform Code Reviews
CodeStar can guide you through code reviews, highlighting potential improvements and adhering to coding standards:
code-star review code.py
Scan for Security Vulnerabilities
Take a deep dive into finding and fixing vulnerabilities in your code:
code-star scan code.py
Generate Tests
Create unit tests and integration tests to verify the correctness of your code:
code-star test code.py
License
CodeStar CLI 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
File details
Details for the file code_star_cli-0.2.3.tar.gz
.
File metadata
- Download URL: code_star_cli-0.2.3.tar.gz
- Upload date:
- Size: 9.0 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 | 3ec694fd1b26c036b6e134380977332a7ffc8df1d3382979716735549cb639af |
|
MD5 | 05e18312761ed37b6fcb5e70da7c0ce0 |
|
BLAKE2b-256 | bccc0151c7600a2030b7c363a13b216a56a13b1548b07848f1c5c05bff20db10 |
File details
Details for the file code_star_cli-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: code_star_cli-0.2.3-py3-none-any.whl
- Upload date:
- Size: 14.5 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 | 30f61e80862035cb18c7f45f7162ce831199c66a9e7523766ae29378e43030ca |
|
MD5 | ab7461a00c769e644c4d6921ef78d208 |
|
BLAKE2b-256 | 0050ae2de17bbf3b771811e1cd97b0b009c76973166953ae9e9d4cf80e8d31f8 |