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
# Motivation
<!-- Why is this change necessary? -->
# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review
- [ ] I have added tests for my changes
- [ ] I have updated the documentation or added new documentation as
needed
- [ ] I have read and agree to the [Contributor License
Agreement](../CLA.md)
[](https://docs.codegen.com)[](https://community.codegen.com)[](https://x.com/codegen)
6
4
7
5
[Codegen](https://docs.codegen.com) is a python library for manipulating codebases.
8
6
@@ -11,7 +9,7 @@
11
9
from codegen import Codebase
12
10
13
11
# Codegen builds a complete graph connecting
14
-
#functions, classes, imports and their relationships
12
+
# functions, classes, imports and their relationships
15
13
codebase = Codebase("./")
16
14
17
15
# Work with code without dealing with syntax trees or parsing
@@ -21,7 +19,6 @@ for function in codebase.functions:
21
19
# Auto-handles references and imports to maintain correctness
22
20
function.move_to_file('deprecated.py')
23
21
```
24
-
25
22
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.
0 commit comments