Skip to content

Commit 8db3c43

Browse files
author
codegen-bot
committed
Merge branch 'main' into tawsif-import-loops-example
2 parents 7fd65f1 + 63d83da commit 8db3c43

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,37 @@ This is a collection of examples using [Codegen](https://codegen.com). You can u
88

99
We recommend using [`uv`](https://github.com/astral-sh/uv) with Python 3.13 for the best experience.
1010

11-
First, install uv if you haven't already
11+
To install Codegen, please follow the [official installation guide](https://docs.codegen.com/introduction/installation). Once Codegen is installed, use these steps to run the examples in this repository:
12+
13+
Install the Codegen CLI globally
1214
```bash
13-
brew install uv
15+
uv tool install codegen
1416
```
1517

16-
Create and activate a Python 3.13 virtual environment
18+
Initialize Codegen in your project
1719
```bash
18-
uv venv && source .venv/bin/activate
20+
codegen init
1921
```
2022

21-
Install the `codegen` package
23+
Activate the virtual environment
2224
```bash
23-
uv sync
25+
source .codegen/.venv/bin/activate
2426
```
2527

28+
Your environment is now ready to run example codemods.
29+
30+
### IDE Configuration (Optional)
31+
32+
To configure your IDE for optimal use with Codegen, follow our [IDE setup guide](https://docs.codegen.com/introduction/ide-usage#configuring-your-ide-interpreter).
33+
2634
## Examples
2735

28-
Each directory contains a self-contained example with:
29-
- A README explaining the transformation
30-
- Sample code to transform
31-
- The Codegen script that performs the transformation
36+
Within the examples folder, each subdirectory contains a self-contained example with:
37+
- An explanation of the transformation (`README.md`)
38+
- A Codegen script that performs the transformation (`run.py`)
39+
- Sample code to transform, if not using a repository (`input_repo/`)
40+
41+
To see a transformation, simply run the `run.py` script within the desired directory.
3242

3343
## Learn More
3444

0 commit comments

Comments
 (0)