Skip to content

Commit 3375501

Browse files
committed
.
1 parent b6b2f73 commit 3375501

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,42 @@ 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+
The complete installation guide for Codegen is available [here](https://docs.codegen.com/introduction/installation). The steps below are a quickstart to getting the examples working.
12+
1113
First, install uv if you haven't already
1214
```bash
1315
brew install uv
1416
```
1517

16-
Create and activate a Python 3.13 virtual environment
18+
Install the Codegen CLI globally
19+
```bash
20+
uv tool install codegen
21+
```
22+
23+
Initialize Codegen in your project
1724
```bash
18-
uv venv && source .venv/bin/activate
25+
codegen init
1926
```
2027

21-
Install the `codegen` package
28+
Activate a virtual environment
2229
```bash
23-
uv sync
30+
source .codegen/.venv/bin/activate
2431
```
2532

33+
Your environment is now ready to run example codemods.
34+
35+
### IDE Configuration
36+
37+
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).
38+
2639
## Examples
2740

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
41+
Within the /examples folder, each subdirectory contains a self-contained example with:
42+
- An explanation of the transformation (`README.md`)
43+
- A Codegen script that performs the transformation (`run.py`)
44+
- Sample code to transform if not using a repository (`input_repo/`)
45+
46+
To see the transformation, simply run the `run.py` script within the desired directory.
3247

3348
## Learn More
3449

0 commit comments

Comments
 (0)