PyCPython VS PyCParser

Compare PyCPython vs PyCParser and see what are their differences.

PyCPython

interpret CPython in pure Python (by albertz)

PyCParser

C parser and interpreter written in Python with automatic ctypes interface generation (by albertz)
Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
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
PyCPython PyCParser
1 1
16 342
- -
10.0 10.0
over 4 years ago over 4 years ago
Python Python
- BSD 2-clause "Simplified" 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.

PyCPython

Posts with mentions or reviews of PyCPython. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-03.
  • 30 Years of Decompilation and the Unsolved Structuring Problem: Part 1
    3 projects | news.ycombinator.com | 3 Jan 2024
    A funny anecdote: Some time ago, I was writing a C-to-Python translator.

    (Why? Just for fun, https://github.com/albertz/PyCParser, even more just-for-fun goal was this: https://github.com/albertz/PyCPython).

    It literally would translate the C code in equivalent Python code, using ctypes heavily. It was mostly straight-forward, except for mapping goto (thus related to this control flow structuring problem).

    Of course, there are some hacks to introduce goto in Python, which in many cases would operate on the Python bytecode, which actually has the JUMP_ABSOLUTE op, but there are also other ways (https://stackoverflow.com/questions/6959360/goto-in-python).

    I could also have translated C directly to equivalent Python bytecode and not Python source code, but I really wanted to have Python source code.

    My ugly solution worked basically like this: Whenever there was some goto in a function, it would translate it as follows:

    First, we flatten any Python AST into a series of statements,

PyCParser

Posts with mentions or reviews of PyCParser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-03.
  • 30 Years of Decompilation and the Unsolved Structuring Problem: Part 1
    3 projects | news.ycombinator.com | 3 Jan 2024
    A funny anecdote: Some time ago, I was writing a C-to-Python translator.

    (Why? Just for fun, https://github.com/albertz/PyCParser, even more just-for-fun goal was this: https://github.com/albertz/PyCPython).

    It literally would translate the C code in equivalent Python code, using ctypes heavily. It was mostly straight-forward, except for mapping goto (thus related to this control flow structuring problem).

    Of course, there are some hacks to introduce goto in Python, which in many cases would operate on the Python bytecode, which actually has the JUMP_ABSOLUTE op, but there are also other ways (https://stackoverflow.com/questions/6959360/goto-in-python).

    I could also have translated C directly to equivalent Python bytecode and not Python source code, but I really wanted to have Python source code.

    My ugly solution worked basically like this: Whenever there was some goto in a function, it would translate it as follows:

    First, we flatten any Python AST into a series of statements,

What are some alternatives?

When comparing PyCPython and PyCParser you can also consider the following projects:

angr - A powerful and user-friendly binary analysis platform!

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
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