Skip to main content

Client for codeflash.ai - automatic code performance optimization, powered by AI

Project description

Codeflash

Codeflash is an AI optimization tool that automatically improves the performance of your Python code while maintaining its correctness.

img.png

Features

  • Automatically optimizes your code using AI
  • Maintains code correctness through extensive testing
  • Opens a pull request for each optimization
  • Continuously optimizes your codebase through CI
  • Dynamically optimizes your real workflows through tracing

Installation

To install Codeflash, run:

pip install codeflash

Quick Start

  1. Configure Codeflash for your project:

    codeflash init
    
  2. Optimize a function:

    codeflash --file path/to/your/file.py --function function_name
    
  3. Optimize your entire codebase:

    codeflash --all
    

Getting the Best Results

To get the most out of Codeflash:

  1. Install the Github App and actions workflow
  2. Find optimizations on your whole codebase with codeflash --all
  3. Find and optimize bottlenecks with the Codeflash Tracer
  4. Review the PRs Codeflash opens

Learn More

License

Codeflash is licensed under the BSL-1.1 License. See the LICENSE file for details.

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

codeflash-0.6.21.tar.gz (80.2 kB view hashes)

Uploaded Source

Built Distribution

codeflash-0.6.21-cp312-cp312-macosx_14_0_arm64.whl (96.7 kB view hashes)

Uploaded CPython 3.12 macOS 14.0+ ARM64

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