Skip to main content

A Python library and tools providing easy access to the decompilation service through their public REST API.

Project description

Documentation Status Build Status Code Coverage Status PyPI Version

A Python library and tools providing easy access to the decompilation service through their public REST API.

You can either incorporate the library in your own scripts:

from retdec.decompiler import Decompiler

decompiler = Decompiler(api_key='YOUR-API-KEY')
decompilation = decompiler.start_decompilation(input_file='file.exe')

or you can use the provided script for stand-alone decompilations:

$ decompiler -k YOUR-API-KEY file.exe

Waiting for resources (0%)...                    [OK]
  Obtaining file information (5%)...             [OK]
  Unpacking (10%)...                             [OK]
  Initializing (20%)...                          [OK]
Done (100%)...

 - file.c

Either way, file.c then contains the decompiled C code:

$ cat file.c
// This file was generated by the Retargetable Decompiler
// Website:
// Copyright (c) 2016 Retargetable Decompiler <>

#include <stdio.h>


The library provides support for the decompilation, fileinfo, and test services. For a more detailed list, see the status page in the documentation.



The recommended way of installing is from Python Package Index (PyPI) with pip:

$ pip install retdec-python

This will install the latest stable version, including all dependencies. You can also install the latest development version directly from GitHub:

$ pip install git+


The documentation is available on

Contact and Support

I will be very glad to get your feedback, pull requests, issues, or just a simple Thanks. Feel free to contact me for any questions you might have!


Copyright (c) 2015-2017 Petr Zemek ( and contributors.

Distributed under the MIT license. See the LICENSE file for more details.

Access from Other Languages

If you want to access the decompilation service from other languages, check out the following projects:

  • retdec-rust - A library and tools for accessing the service from Rust.
  • retdec-cpp - A library and tools for accessing the service from C++.
  • retdec-sh - Scripts for accessing the service from shell.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
retdec-python-0.5.2.tar.gz (23.4 kB) Copy SHA256 hash SHA256 Source None Jul 26, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page