Show HN: Codegen – OSS Python Library for Advanced Code Manipulation

  • Man, at first glance the documentation looks so good.

    I’ve been meaning to build a PoC for directly manipulating symbols instead of text with the idea to eventually eliminate the possibility of syntax errors.

    The task always looked one step too big for me to be worth it - the foundation for programmatically manipulating code seemed to be missing, maybe Roslyn fits the bill, but C# isn’t interesting to me ecosystem wise.

    It seems like this may be what I was waiting for - pretty cool!

  • How does this compare to Codemodder? Can it be used for transpilation?