Skip to main content

Claude-Powered Python Performance Optimizer

Project description

                 Achilles Logo   


Achilles: LLM-powered Python performance optimizer

How to use Achilles

Install Achilles using the following command:

uv add achilles-optimizer

Once Achilles is installed, you can optimize a python executable using the following command:

uv run achilles optimize your_python_file.py --your_python_args

If you've already ran Achilles once, you can benchmark it against the non-optimized python code with the following command:

uv run achilles benchmark your_python_file.py --your_python_args

To run a python executable using achillles, just type the following command:

uv run achilles run your_python_file.py --your_python_args

Additional Information

Requirements

  • Python 3.13 or later
  • uv package manager
  • An Anthropic API key (Claude)

Environment Setup

You can set up your Anthropic API key in one of two ways:

  1. Set the ANTHROPIC_API_KEY environment variable
  2. Create a .env file in your project directory with the following content:
    ANTHROPIC_API_KEY=your_api_key_here
    

How It Works

Achilles uses Claude to analyze your Python code and optimize its performance by:

  • Identifying bottlenecks through profiling
  • Implementing optimizations automatically in C++
  • Importing these optimizations at runtime

Command Reference

Command Description
uv run achilles optimize <file.py> Analyzes and optimizes your Python file
uv run achilles benchmark <file.py> Compares optimized vs. original performance
uv run achilles run <file.py> Runs your Python file with Achilles

Contributing

Contributions are welcome! Feel free to submit issues or pull requests on GitHub.

License

This project is open source. See the repository for license 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

achilles_optimizer-0.1.6.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

achilles_optimizer-0.1.6-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file achilles_optimizer-0.1.6.tar.gz.

File metadata

  • Download URL: achilles_optimizer-0.1.6.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for achilles_optimizer-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2c3572ab76f5a38a32d386c2f971dd55ddc36106b59e4ece39c8861c5a4bcc76
MD5 d569acaaf5afc3c5c5deb84f2a330411
BLAKE2b-256 2b31171243e19afaa1427ccbff662c9bec6d6b5021226dbcae1d4a7feb9e7b83

See more details on using hashes here.

File details

Details for the file achilles_optimizer-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for achilles_optimizer-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d23687b5d04e3597d35d2bfda76ba0d959bd602794dcb6a2ef4779eb953bd54
MD5 e5e322d24302aca085f6ccc052007fab
BLAKE2b-256 a7a4049b55989003efd8143e105b4976eb44f9acb83aa122b1cb6afb49b95ff7

See more details on using hashes here.

Supported by

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