Registry / devops / binsize

binsize

JSON →
library0.1.4pypypiunverified

A tool to analyze the size of a binary from an ELF file. Currently at version 0.1.4, released irregularly as a hobby project. It parses ELF files and provides detailed size breakdowns by sections, symbols, and memory regions.

pip install binsize
INSTALL
IMPORT
SIG · BINSIZE
B
binsize
devopspythonv0.1.4
Install
1.8s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

analyze
from binsize import analyze
The main entry point for analyzing an ELF file.

Basic usage: import the analyze function and pass the path to an ELF file. Returns a dictionary with size information.

from binsize import analyze import tempfile, os # Example: analyze an ELF file (provide path to your .elf) result = analyze('/path/to/your.elf') print(result)
binsize --version
Debug
Known issues
gotchaThe `analyze` function expects an existing ELF file; it does not generate binaries.
fix
Ensure you have an ELF binary (e.g., from GCC or Rust compilation) before calling analyze.
affects: <=0.1.4
gotchaThe output format is a nested dictionary that may change between minor versions; do not rely on exact keys without checking.
fix
Inspect the result structure manually after upgrading.
affects: <=0.1.4
Upgrade
Version history
0.1.4latest on PyPI · released Jan 27, 2025
Audit
Dependencies
pyelftoolsrequiredUsed to parse ELF files
Agent activity
13 hits · last 30 days
node
11
OpenAI (training)
1
Resources
binsize — pip install binsize · libregistry