Skip to content

codegen-sh/codegen-examples

 
 

Repository files navigation

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.

About

Examples using the Codegen SDK

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7