CodeCraft
AI code assistant to help you write code faster, cover it with tests and more
Getting started
cd path/to/your/project
pip install codecraft
export OPENAI_API_KEY=your-key-goes-here
Usage
Once installed, codecraft can be run through its command-line interface.
Command-line Interface
Run a codecraft session using the following command:
codecraft
Optional Arguments:
- -q or --query: Run with a specific query.
- -c or --coverage: Run with coverage analysis.
codecraft --query "Your query here"
codecraft --coverage
Requirements
- python: 3.10+
First run
On the first run codecraft create folder .codecraft/prompts with main prompts so you can tune prompts for your project
Also codecraft will add .codecraft to .gitignore file - not to use prompts in GIT
Envs
CODECRAFT_MODEL_NAME
Model name in OpenAI API to use
OPENAI_API_KEY
API key for OpenAI API
CODECRAFT_COV_FOLDER
Folder to use in coverage report (default: .)
Contributing
Contributions to codecraft are welcome! Please read our contributing guidelines for details on how to submit pull requests
Clone repository
git clone ...
Install dependencies
poetry install
Use with your project
cd path/to/your/project
pip install -e path/to/cloned/codecraft
codecraft
License
codecraft is licensed under MIT License
Contact
For any queries or suggestions, feel free to contact us at [hello@welltory.com]
Metadata
Release files for codecraft 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codecraft-0.0.1.tar.gz | 89.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codecraft-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.0 kB
Release files / codecraft-0.0.1.tar.gz
| Download URL | codecraft-0.0.1.tar.gz |
|---|---|
| Size | 89.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4741db7eafba1834d19f639b92647e0d2685995b3353b8f8336d24b5efc06c2c
|
|
BLAKE2b-256 checksum How to use checksums |
c8e6c90855b40d17fb7b3b4bee38f1a74762579a84be29a0f2b75bd0a0ab8db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.8.6 Darwin/23.2.0
|
Release files / codecraft-0.0.1-py3-none-any.whl
| Download URL | codecraft-0.0.1-py3-none-any.whl |
|---|---|
| Size | 29.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b07a0f53babbb74d005d114cb9e534c635a3d40d69e2e36d0f3594aa1e86fe5
|
|
BLAKE2b-256 checksum How to use checksums |
9d1f1ab0168202b657350140e3ecfd86f8ceb4af0c7dbc1459a2907dcf76ce06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.8.6 Darwin/23.2.0
|