Skip to main content

binbun

Python bindings to binbun, an open-source interactive disassembler and decompiler for x86, x86-64 and AArch64 executables in ELF, PE and Mach-O files. The whole engine is in the package: open a binary, list its functions and cross-references, decompile them to C with each line's provenance, check the C against the machine code, and edit names, types and comments in transactions you can undo. Its disassemblers also work on raw bytes.

pip install binbun
import binbun

with binbun.open("/usr/bin/bash", project=False) as db:
    c = db.functions.get_by_name("main").decompile()
    print(c.text)
    # Each line of C with the instructions it came from.
    for line in c.lines:
        if line.addresses:
            print(line.number + 1, [hex(a) for a in line.addresses])
import binbun

code = bytes.fromhex("554889e531c05dc3")
for insn in binbun.disassemble(code, arch=binbun.Arch.X86, address=0x401000):
    print(f"{insn.address:#x}  {insn.text()}")

The same package works against the binary open in the binbun app with binbun.connect(). Python 3.11 or later; the Python documentation covers the API, and the app is on binbun.org. The API can change between releases while binbun is 0.x.

Licensed under either of Apache License, Version 2.0 or MIT license at your option. The decoders' code generated from Intel XED is under XED's Apache License, Version 2.0, and that generated from Arm's A-profile Machine Readable Specification under Arm's BSD 3-Clause licence; both texts are in the package's licence files.

Metadata

Release files for binbun 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for binbun 0.1.0
File Size Uploaded Provenance Actions
binbun-0.1.0.tar.gz 10.4 MB With provenance Details for binbun-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for binbun 0.1.0
File Actions
binbun-0.1.0-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details for binbun-0.1.0-cp311-abi3-win_arm64.whl
binbun-0.1.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for binbun-0.1.0-cp311-abi3-win_amd64.whl
binbun-0.1.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for binbun-0.1.0-cp311-abi3-musllinux_1_2_x86_64.whl
binbun-0.1.0-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for binbun-0.1.0-cp311-abi3-musllinux_1_2_aarch64.whl
binbun-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for binbun-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
binbun-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for binbun-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
binbun-0.1.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for binbun-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
binbun-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for binbun-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 146.9 MB

Release files / binbun-0.1.0.tar.gz

Download URL binbun-0.1.0.tar.gz
Size 10.4 MB
Tags Source
SHA-256 checksum
How to use checksums
68768dbc06e8d2788c9e2ff4eac9cc28fd47a604487f0779a61d01ec8368c02f
BLAKE2b-256 checksum
How to use checksums
a7e8f52d9509998480a15a0a6e76889f440289c4c48b5e56c52d1b2d07032016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-win_arm64.whl

Download URL binbun-0.1.0-cp311-abi3-win_arm64.whl
Size 16.6 MB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
979f250be795cdd7dedcc5491b8d237889b2d4d051a911632032b80ec631d4a7
BLAKE2b-256 checksum
How to use checksums
ebe26e3ca7026e0720578b62d497468f92f6cebc0e3bcb13cd598a25f2841154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-win_amd64.whl

Download URL binbun-0.1.0-cp311-abi3-win_amd64.whl
Size 17.5 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d7b52365a25d0eef10d6e4dce0854b2cfc7a045702d2050b7e8d2c5c629b429e
BLAKE2b-256 checksum
How to use checksums
cde97908c07a5ad9d401ceb222d0dddd8ac374c3f1fb31dfc1f33bd12308c5d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL binbun-0.1.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 17.9 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e25cbea95e87b203fd49832400793dc3d68de59eba5e34d7cd6ef594a3e40085
BLAKE2b-256 checksum
How to use checksums
d697c991d3816762f75f870ed117fea1cb65b666d31c693ee5e5d7f04c809039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL binbun-0.1.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 16.9 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
79d85865596ecaf6a4bdef7daf6a60bbbe2976b0b89320e867f5f768dbc4ced0
BLAKE2b-256 checksum
How to use checksums
fea571465dd727dda1a3e623018e50df7011cc5a8b3df6a28354763aa454a993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL binbun-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 17.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
89c79b56ae4a5f60c090add9e990eb2fbe6670c80d39491ed89c32bd3c633530
BLAKE2b-256 checksum
How to use checksums
7366ce44a3e1d6ba7f79abf3bbde4c374bada7e8f4977cb150a1b7d387b721e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL binbun-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 16.8 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
18d25ae3fa81cb200e9cd4f471566cc200da8222a4e9849716e36b3906a988ea
BLAKE2b-256 checksum
How to use checksums
50a9482e1eaa94cb7248f93509540718ee106e76458e069a7b298bcbf3a1328a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL binbun-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Size 16.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
62239d26c7f89ff6d0292f343d2d1e604b09b7650d28cb4bfe9e602bd7ffd5db
BLAKE2b-256 checksum
How to use checksums
e49bbb746aad79e74b347df3579efc49eea31797ded761d8b7b4b6de7372f31e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / binbun-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL binbun-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 17.0 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e93a40acdd9b87d80904edfeb124aeb522b9f126edb084ba8df228e2fa58b813
BLAKE2b-256 checksum
How to use checksums
060df3c6af79522d72d92c79f54bd65c0364d15888943710dd5edabf3739a4fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for binbun 0.1.0

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

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for binbun-0.1.0.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 Nov 23, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

9 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page