prosodia
Parse Backus-Naur form syntaxs into parsers to generate ASTs of arbitrary syntaxs. (by chrisphilip322)
py2js
By erezsh
Our great sponsors
prosodia | py2js | |
---|---|---|
1 | 1 | |
1 | 3 | |
- | - | |
0.0 | 2.7 | |
over 4 years ago | almost 3 years ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prosodia
Posts with mentions or reviews of prosodia.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-01.
-
Show HN: Python Source Code Refactoring Toolkit via AST
I wrote a library that takes a language specification (BNF, ABNF, etc) into a custom AST in Python. Then you can define a set of visitors for the custom AST to transform the tree into whatever you want. I implemented some checks integrated into the Python type system to type-check the visitors and I've used the library to do some non-trivial manipulations before.
It's mostly a pet project and I just wanted to share since it could maybe at least inspire something.
https://github.com/chrisphilip322/prosodia
py2js
Posts with mentions or reviews of py2js.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-01.
-
Show HN: Python Source Code Refactoring Toolkit via AST
Nice! I like the syntax, this reminds me of the structural search and replace feature from IntelliJ IDEA. Is this the project you were referring to?
https://github.com/erezsh/py2js
What are some alternatives?
When comparing prosodia and py2js you can also consider the following projects:
semgrep - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.
hpy - HPy: a better API for Python
prefactor - Tool for writing Python refactorings
Bowler - Safe code refactoring for modern Python.
refactor - AST-based fragmental source code refactoring toolkit for Python