py-spy VS python-uncompyle6

Compare py-spy vs python-uncompyle6 and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
py-spy python-uncompyle6
25 8
11,850 3,549
- -
6.4 8.9
17 days ago about 1 month ago
Rust 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.

py-spy

Posts with mentions or reviews of py-spy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-13.
  • Minha jornada de otimização de uma aplicação django
    5 projects | dev.to | 13 Mar 2024
  • Graphical Python Profiler
    4 projects | news.ycombinator.com | 5 Jul 2023
  • Grasshopper – An Open Source Python Library for Load Testing
    3 projects | news.ycombinator.com | 1 May 2023
    For CPU cycles, py-spy[0] is getting more and more used. For RAM, I would like to known too...

    [0] -- https://github.com/benfred/py-spy

  • Debugging a Mixed Python and C Language Stack
    4 projects | news.ycombinator.com | 25 Apr 2023
    Theres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.

    https://github.com/benfred/py-spy

    It's worked really well for my needs

  • python to rust migration
    5 projects | /r/rust | 23 Apr 2023
    You should profile your consumer to check the bottlenecks. You can use the excellent py-spy(written in Rust). IMO a few usage of Numba there and there should solve your performance issues.
  • Has anyone switched from numpy to Rust?
    1 project | /r/rust | 11 Mar 2023
    So as a first step you'll want to profile your program to figure out where it's slow, and hopefully that'll also tell you why it's slow. I'm the (biased) author of the Sciagraph profiler which is designed for this sort of application (https://sciagraph.com) but you can also try py-spy, which isn't as well designed for data processing/analysis applications (e.g. it won't visualize parallelism at all) but can still be informative (https://github.com/benfred/py-spy). Both are written in Rust ;)
  • Trace your Python process line by line with minimal overhead!
    3 projects | news.ycombinator.com | 15 Jan 2023
    Any advantages/disadvantages compared to py-spy [1]?

    [1]: https://github.com/benfred/py-spy

  • Python 3.11 delivers.
    4 projects | /r/programming | 15 Dec 2022
    Python profiling is enabled primarily through cprofile, and can be visualized with help of tools like snakeviz (output flame graph can look like this). There are also memory profilers like memray which does in-depth traces, or sampling profilers like py-spy.
  • Tales of serving ML models with low-latency
    1 project | /r/mlops | 4 Dec 2022
    A good profiler would be https://github.com/benfred/py-spy . If you run your app/benchmark with it, it should be able to draw a flamegraph telling you where the majority of time is spent. The info here is quite fine grained so it would already tell you where the bottleneck is. Without a full-fledged profiler you can also measure the timings in various parts of the code to understand where the bottleneck is.
  • Profiling a Python library written in Rust (Maturin)
    2 projects | /r/learnrust | 25 Oct 2022
    Might be worth raising an issue on py-spy (a python profiler written in rust which "supports profiling native python extensions written in languages like C/C++ or Cython" to see if that can close the loop.

python-uncompyle6

Posts with mentions or reviews of python-uncompyle6. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-20.
  • Testing Github Co-Pilot and Trying to Win World Cup Bet
    5 projects | dev.to | 20 Nov 2022
    Q: What is RAPID_API_KEY = os.environ.get('RAPID_API_KEY')? A: You should store configuration in environment variables; never in code. See 12 factors app. Python .pyc files can easily be "decompiled" to .py and reveal all secrets in code.
  • PSA: Global QR Code bot could have malware...
    2 projects | /r/DBZDokkanBattle | 5 Jul 2022
    I was able to figure out that this is a python program which was compiled to an .exe. Using uncompyle6 and pyc2bytecode, I was able to decompile the .exe into the python bytecode...but I'm no expert at reading python bytecode. If you want to do this yourself, note that you will need to use the same version of python as the version used to make the exe (python 3.9). I did easily by changing the python_version in my Pipfile to 3.9 and using pipenv shell.
  • Synack Red Team Five CTF Writeup - Rev
    3 projects | dev.to | 5 May 2022
    It's a Pyinstaller binary.(I have used it once before, so I just knew it by checking the file.) Use https://github.com/extremecoders-re/pyinstxtractor to extract its source code archive in binary (by just running python pyinstxtractor.py ./backdoor or something), now many .pyc files are extracted. Find src.pyc and it's malformed as Python3.9, so https://github.com/rocky/python-uncompyle6/ denies to decompile. But challenge information says it's Python3.8, so I write helloworld python script and execute it with Python3.8. It yields Python3.8 .pyc file. Analyze it and find signature is \x55. Change src.pyc's signature from \x61 to \x55 and decompile by running uncompyle6 backdoor-src.38.pyc > backdoor-src.py
  • Help! Decompiling python 3.6 to source code
    1 project | /r/learnprogramming | 4 May 2022
  • De-obfuscating .pyc files?
    2 projects | /r/learnpython | 21 Jan 2022
  • Recovering lost python code from .pyc?
    2 projects | /r/learnpython | 17 Dec 2021
  • Error: uncompyle6 requires Python 2.6-3.8
    2 projects | /r/learnpython | 10 Aug 2021
    If not, you’ll either need to install and use 3.8 to run the program, or you’ll need to help the author continue support beyond 3.8.

What are some alternatives?

When comparing py-spy and python-uncompyle6 you can also consider the following projects:

pyflame

python-decompile3 - Python decompiler for 3.7-3.8 Stripped down from uncompyle6 so we can refactor and start to fix up some long-standing problems

pyinstrument - 🚴 Call stack profiler for Python. Shows you why your code is slow!

remote-pdb - Remote vanilla PDB (over TCP sockets).

memory_profiler - Monitor Memory usage of Python code

pdb++

icecream - 🍦 Never use print() to debug again.

pyinstxtractor - PyInstaller Extractor

line_profiler

profiling