Skip to main content

AI code assistant to help you write code faster, cover it with tests and more

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codecraft-0.0.1.tar.gz (89.8 kB view hashes)

Uploaded Source

Built Distribution

codecraft-0.0.1-py3-none-any.whl (29.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page