Coding super-intelligence to find the most optimized Python code. Use it to optimize existing codebases or new Pull requests as a GitHub Action or a VS Code Extension.
Find a file
2024-08-12 15:42:00 -07:00
code_to_optimize Add conditional examples 2024-07-03 15:10:48 -07:00
codeflash Release v0.6.17 2024-08-11 21:14:18 -07:00
experiments create instrumented tests locally 2024-07-23 15:50:47 -07:00
pie_test_set Move pie test set files 2024-05-21 10:29:26 -07:00
tests Make pytest test discovery a lot more robust, by removing console parsing 2024-08-11 19:04:31 -07:00
pyproject.toml Update the dependency spec 2024-08-11 21:04:35 -07:00
README.md README for Pypi 2024-08-12 15:42:00 -07:00

Codeflash CLI

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

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.