Skip to content

Conversation

@chalmerlowe
Copy link
Collaborator

This PR upgrades the _to_snake_case() function to better handle names that have acronyms or initialisms.
Also adds a raise statement if method name is empty.

Migrates the empty __init__.py file to the microgenerator package.
Introduces the CodeAnalyzer class and helper functions for parsing Python code using the ast module. This provides the foundation for understanding service client structures.
    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.
…ke_case function in name_utils.py to correctly convert PascalCase names containing acronyms to snake_case.
@chalmerlowe chalmerlowe added this to the µgen PoC milestone Sep 16, 2025
@chalmerlowe chalmerlowe requested review from a team as code owners September 16, 2025 12:43
@chalmerlowe chalmerlowe requested review from tswast and removed request for a team September 16, 2025 12:43
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Sep 16, 2025
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Sep 16, 2025
@chalmerlowe chalmerlowe self-assigned this Sep 16, 2025
Copy link
Contributor

@shollyman shollyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to worry about special case acronym be

Base automatically changed from feat/migrate-testing-dir to autogen September 23, 2025 18:06
@chalmerlowe chalmerlowe added the automerge Merge the pull request once unit tests and other checks pass. label Sep 23, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit c0b3c7e into autogen Sep 23, 2025
11 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 23, 2025
@gcf-merge-on-green gcf-merge-on-green bot deleted the feat/upgrade-name-utils branch September 23, 2025 23:56
gcf-merge-on-green bot pushed a commit that referenced this pull request Oct 1, 2025
- [x] Follows: PR #2297  (should be merged after that PR is merged.)

This PR adds a `client.py.j2` template to enable creation of the `client.py` file that contains the `BigQueryClient` class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants