py-backwards icon indicating copy to clipboard operation
py-backwards copied to clipboard

link to newer tool strip_python3

Open gdraheim opened this issue 9 months ago • 0 comments

Thank you for providing py-backwards, although it did not work on my latest source code, it provided me with the ideas to write my own tool that can downgrade python3 code to even support python2. Specifically, I noted your usage of astunparse which hase become a builtin function ast.unparse() since python3.9. However I wanted to also support older python3 with typehints, so that my tool will extract them to an extra *.pyi includes file by default. That's for python3.6 which is still used on a lot of servers.

I have made my new implementation to be extremely simple to make it easy to integrate patches for more transformers. Perhaps you could include a link on your repo readme so that people would also consider submitting them at my repo.

https://github.com/gdraheim/strip_python3

Thanks in advance.

gdraheim avatar Mar 13 '25 10:03 gdraheim