Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.24 KB

File metadata and controls

46 lines (31 loc) · 1.24 KB

Codegen Examples

Documentation

This is a collection of examples using Codegen. You can use these examples to learn how to use Codegen and build custom code transformations.

Setup

We recommend using uv with Python 3.13 for the best experience.

First, install uv if you haven't already

brew install uv

Create and activate a Python 3.13 virtual environment

uv venv && source .venv/bin/activate

Install the codegen package

uv sync

Examples

Each directory contains a self-contained example with:

  • A README explaining the transformation
  • Sample code to transform
  • The Codegen script that performs the transformation

Learn More

Contributing

Have a useful example to share? We'd love to include it! Please see our Contributing Guide for instructions.

License

The Apache 2.0 license.