Skip to main content

BinaryPacking

C extension for packing and unpacking numeric values (ints, floats, bools, pointers) as binary data. Supports fixed-width little/big-endian formats and dense variable-length integers.

Install

pip install BinaryPacking

Usage

from BinaryPacking import Packing

Packing.PackInt32(258)            # b'\x02\x01\x00\x00'
Packing.UnPackInt32(b"\x02\x01\x00\x00")  # 258
Packing.PackUInt32(0x1234, "big") # b'\x00\x00\x12\x34'

Build from source

  • Windows: build.bat (also build.bat wheel, build.bat clean)
  • Make: make build, make wheel, make dist, make upload, make clean

License

MIT

Metadata

Release files for BinaryPacking 1.0.1

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

Source distribution (sdist)

Source distribution for BinaryPacking 1.0.1
File Size Uploaded Provenance
binarypacking-1.0.1.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for BinaryPacking 1.0.1
File Interpreter ABI Platform
binarypacking-1.0.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details

Total release size: 34.2 kB

Release files / binarypacking-1.0.1.tar.gz

Download URL binarypacking-1.0.1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
03cd5ccd20d0d8ac08ed944d72af105ae3ce60e92615473a775d89ec049b3488
BLAKE2b-256 checksum
How to use checksums
2eb9d0f8e7bb61569297301bce83046a4b74f5d800176d617ed0133f1c665bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / binarypacking-1.0.1-cp310-abi3-win_amd64.whl

Download URL binarypacking-1.0.1-cp310-abi3-win_amd64.whl
Size 21.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7c0fe185a0ef4991b98d4e896c3354e1e77a76b8e0af8610b6d7e23a7f03c94b
BLAKE2b-256 checksum
How to use checksums
67f319e7beebcac581aa9038290db7a2252cc1f26c8411e48bf18187879187a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for BinaryPacking 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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