Skip to main content

No project description provided

Project description

Checol

This tool is designed to analyze Git repository diffs and Prisma schema files, and generate related text responses using the AI model. It enables you to get detailed explanations, clarifications, or SQL code based on Git changes or Prisma schema files from the AI.

Prerequisites

  • Python 3.8 or higher
  • Access to a Git local repository
  • Prisma schema file

Installation

pip install checol

Configuration

  1. Set your Anthropic API key in the environment variable ANTHROPIC_API_KEY.

    export ANTHROPIC_API_KEY='your_api_key_here'
    
  2. (Optional) If you want to change the default AI model, also set ANTHROPIC_API_MODEL.

    export ANTHROPIC_API_MODEL='claude-3-haiku-20240307'
    

Usage

Analyzing Git diffs

  1. Use the diff command to analyze Git diffs and start interacting with Claude.

    checol diff [git diff options]
    
  2. Follow the prompts to input your description or questions regarding the Git diffs.

  3. Review the response from Claude and continue the interaction as desired.

Generating SQL from Prisma schema

  1. Use the prismaQuery command to generate SQL from a Prisma schema file.

    checol prismaQuery path/to/your/schema.prisma
    
  2. Follow the prompts to provide any additional context or instructions to the AI.

  3. Review the generated SQL response from Claude and continue the interaction as needed.

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

checol-0.3.0.tar.gz (629.3 kB view details)

Uploaded Source

Built Distribution

checol-0.3.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file checol-0.3.0.tar.gz.

File metadata

  • Download URL: checol-0.3.0.tar.gz
  • Upload date:
  • Size: 629.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for checol-0.3.0.tar.gz
Algorithm Hash digest
SHA256 daaf9b8c1fdec9a9bd17925f78a6c35b6662023d46735ab8e4c6bc3d5d5053d5
MD5 913455dd2a0a53f4eab3d995f812b991
BLAKE2b-256 7388af50e80da9844a8e4f53f2f4732a66491dc5bbeec11cdeff63b13eb5a6d6

See more details on using hashes here.

File details

Details for the file checol-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: checol-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for checol-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a913cb03f27fd470d5a93d468f3921fbdcfa8bde843fbf91dc2fcdd5ca0f798
MD5 3147945d9acd6f70f8ccd1582f01d887
BLAKE2b-256 edb74b8ddb9290dd4e505666904a7a4ac147ca6d7801967d7e0be68089f33586

See more details on using hashes here.

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