Commit a309a79
authored
Feat: microgen - adds
* chore: removes old proof of concept
* removes old __init__.py
* Adds two utility files to handle basic tasks
* Adds a configuration file for the microgenerator
* Removes unused comment
* chore: adds noxfile.py for the microgenerator
* feat: microgen - adds two init file templates
* feat: adds _helpers.py.js template
* Updates with two usage examples
* feat: adds two partial templates for creating method signatures
* feat: Add microgenerator __init__.py
Migrates the empty __init__.py file to the microgenerator package.
* feat: Add AST analysis utilities
Introduces the CodeAnalyzer class and helper functions for parsing Python code using the ast module. This provides the foundation for understanding service client structures.
* feat: Add source file analysis capabilities
Implements functions to analyze Python source files, including:
- Filtering classes and methods based on configuration.
- Building a schema of request classes and their arguments.
- Processing service client files to extract relevant information.
* feat: adds code generation logic
* removes extraneous content
* feat: microgen - adds code generation logic
* feat: microgen - adds main execution and post-processing logic
* minor tweak to markers
* feat: Add testing directory\n\nAdds the scripts/microgenerator/testing directory.
* feat: Enhance to_snake_case to handle acronyms\n\nImproves the to_snake_case function in name_utils.py to correctly convert PascalCase names containing acronyms to snake_case.
* feat: Add client.py.j2 template\n\nAdds the main Jinja2 template for generating the BigQueryClient class.
* feat: Add _client_helpers.j2 partial template\n\nAdds a Jinja2 partial template containing helper macros for the client generation.
* Update scripts/microgenerator/testing/constraints-3.13.txt
* Update scripts/microgenerator/generate.py
* Update scripts/microgenerator/generate.py_client_helpers.py.j2 template (#2299)1 parent 5be86dd commit a309a79
File tree
1 file changed
+49
-0
lines changed- scripts/microgenerator/templates/partials
1 file changed
+49
-0
lines changedLines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments