Python-Binexport
python-binexport is a python module aiming to give a friendly interface to load
and manipulate binexport files.
What is binexport ?
Binexport is a protobuf format used by Bindiff to extract IDA database and
to process them outside. It gives a very optimizated (in size) representation
of the program.
Dependencies
Python-binexport can load any .BinExport files generated from the supported disassemblers IDA, Ghidra and Binary Ninja.
However to perform the export with binexporter or from the API ProgramBinexport.from_binary_file()
the IDA plugin must be installed as it is the only supported at the moment. For that it has to be installed first from the github page.
To use the feature python-binexport requires IDA >=7.2 (as it calls the BinExportBinary IDC function).
Installation
pip install python-binexport
Python module usage
The main intended usage of python-binexport is as a python module.
The main entry point is the class ProgramBinExport which triggers the
loading of the whole file. Here is a snippet to iterate on every expression
of every instruction in the program:
from binexport import ProgramBinExport
p = ProgramBinExport("myprogram.BinExport")
for fun_addr, fun in p.items():
with fun: # Preload all the basic blocks
for bb_addr, bb in fun.items():
for inst_addr, inst in bb.instructions.items():
for operand in inst.operands:
for exp in operand.expressions:
pass # Do whatever at such deep level
Obviously ProgramBinExport, FunctionBinExport, InstructionBinExport and OperandBinExport
all provides various attributes and method to get their type, and multiple other infos.
If the module
idascriptis installed you can directly generate a BinExport file using theProgram.from_binary_filestatic method.
Command line usage
The executable script binexporter provides a very basic utility
to export a BinExport file straight from the command line (without
having to launch IDA etc..). This is basically a wrapper for Program.from_binary_file.
Metadata
Release files for python-binexport 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_binexport-0.4.5.tar.gz | 23.8 kB | With provenance | Details for python_binexport-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_binexport-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for python_binexport-0.4.5-py3-none-any.whl |
Total release size: 50.4 kB
Release files / python_binexport-0.4.5.tar.gz
| Download URL | python_binexport-0.4.5.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31a7aa000a192219b236f109e69cda61cda6aa42732f52af977f33caebb4fc6d
|
|
BLAKE2b-256 checksum How to use checksums |
2ee2bd40804fb2859352e3e0a85835fa89e0f2eb6a8a4cf0ebae30928a68f284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logRelease files / python_binexport-0.4.5-py3-none-any.whl
| Download URL | python_binexport-0.4.5-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff998c61bcbd4e6582145a8e1a6825f8e25f2565d9bc0656e200bcf23711e181
|
|
BLAKE2b-256 checksum How to use checksums |
5cd9494dfbdd07cd87cfd98581c9b1c0ec7d666225150826b484fa0b430bef93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logSecurity for python-binexport 0.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for python_binexport-0.4.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.