You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,34 @@ for function in codebase.functions:
24
24
25
25
Write code that transforms code. Codegen combines the parsing power of [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) with the graph algorithms of [rustworkx](https://github.com/Qiskit/rustworkx) to enable scriptable, multi-language code manipulation at scale.
26
26
27
-
## Installation
27
+
## Installation and Usage
28
28
**This library requires Python 3.12 – 3.13.**
29
29
```
30
+
# Install inside existing project
30
31
uv pip install codegen
32
+
33
+
# Install global CLI
34
+
uv tool install codegen
35
+
36
+
# Create a codemod for a given repo
37
+
cd path/to/repo
38
+
codegen init
39
+
codegen create test-function
40
+
41
+
# Run said codemod
42
+
codegen run test-function
43
+
44
+
# Create an isolated venv with codegen => open jupyter
45
+
codegen notebook
46
+
```
47
+
48
+
## Usage
49
+
50
+
See [https://docs.codegen.com/introduction/getting-started] for a full tutorial.
0 commit comments