Lua-To-Python VS refactor

Compare Lua-To-Python vs refactor and see what are their differences.

Lua-To-Python

Lua to python compiler (by marteinn)

refactor

AST-based fragmental source code refactoring toolkit for Python (by isidentical)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Lua-To-Python refactor
1 7
16 434
- -
0.0 0.0
almost 2 years ago 4 months ago
Python Python
- MIT License
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.

Lua-To-Python

Posts with mentions or reviews of Lua-To-Python. We have used some of these posts to build our list of alternatives and similar projects.

refactor

Posts with mentions or reviews of refactor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-01.
  • Refactor: Python Refactoring tool at the AST level
    1 project | news.ycombinator.com | 17 Sep 2023
  • GitHub - isidentical/refactor: Simple python source refactoring toolkit based on AST
    1 project | /r/Python | 2 Aug 2021
  • Show HN: Python Source Code Refactoring Toolkit via AST
    7 projects | news.ycombinator.com | 1 Aug 2021
    Indeed! I also would suggest people to use a CST implementation (parso / LibCST) instead of refactor if they intend do large scale refactors, but from what I can see in my previous attempts (e.g teyit, a unittest assertion formatter) when you deal with small code fragments (a single expression, or a small statement) then you generally don't need to worry much about the style. The only concern is the literals (especially strings, which there are a few different variations of the same AST) where you could resurrect them back from the token stream (which the CustomUnparser representative in refactor allows).

    The real start point for this project was to find / replace all type()'s in CPython codebase with type(type()) (e.g type('') would become type(str)) which is very light weight transformation, and I was able to write a script which did it without having any major problems about style on over 2000 files. Here it is for the reference: https://github.com/isidentical/refactor/blob/master/examples...

    Also one thing to note here is that; in the last couple of years, thanks to black (and yapf), the adoptance of code formatters have really increased which is very nice for custom refactoring tools like refactor since the end-code would be refactored anyways so that means if you convert a multi line call, or a list to a single line version then the formatter you use probably reformat that segment anyways.

    But thanks for authoring Bowler! It is a very cool project.

  • Simple python source refactoring toolkit based on AST
    1 project | /r/Python | 1 Aug 2021
    1 project | /r/ProgrammingLanguages | 1 Aug 2021
  • refactor: AST based source code refactoring for Python
    1 project | /r/Python | 30 Jul 2021
    I've just released 0.2.0 version of refactor, https://github.com/isidentical/refactor, which features additional information collection from the surrounding code.
  • AST based source refactoring toolkit
    1 project | /r/Python | 24 Jul 2021

What are some alternatives?

When comparing Lua-To-Python and refactor you can also consider the following projects:

rickroll-lang - The Rick Roll programming language is a rickroll based, process oriented, dynamic, strong, esoteric programming language. All of the keywords/statements are from Rick Astley's lyrics. Check our tutorial site, https://rick-lang.github.io/programming-language-explainer/

Bowler - Safe code refactoring for modern Python.

semgrep - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

py2js

hpy - HPy: a better API for Python

prefactor - Tool for writing Python refactorings

Rope - a python refactoring library