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.
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
-
Configure Codeflash for your project:
codeflash init
-
Optimize a function:
codeflash --file path/to/your/file.py --function function_name
-
Optimize your entire codebase:
codeflash --all
Getting the Best Results
To get the most out of Codeflash:
- Install the Github App and actions workflow
- Find optimizations on your whole codebase with codeflash --all
- Find and optimize bottlenecks with the Codeflash Tracer
- 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
Release history Release notifications | RSS feed
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.22.tar.gz
(80.7 kB
view hashes)
Built Distribution
Close
Hashes for codeflash-0.6.22-cp312-cp312-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5d6feba9f12449abec9db7fe99b941ad14ce49d572d99c40e9896d890d982e |
|
MD5 | 78f140a61f78a6eefe628630954071d3 |
|
BLAKE2b-256 | 40b9e1f8328264c54c54e538f76e67de42a022a53c95aa2d1e015f1c02bf41fe |