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(alsobuild.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.2
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 | |
|---|---|---|---|---|
| binarypacking-1.0.2.tar.gz | 13.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| binarypacking-1.0.2-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
Total release size: 34.2 kB
Release files / binarypacking-1.0.2.tar.gz
| Download URL | binarypacking-1.0.2.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f5937fe40a0833b275b0350047142dded1bbcbfa588cdd01ce73507ac157ded
|
|
BLAKE2b-256 checksum How to use checksums |
b7344a88a5365e7156cc474d47794d3187ee73a955cebd315b47026927f8e7d8
|
| 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.2-cp310-abi3-win_amd64.whl
| Download URL | binarypacking-1.0.2-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 21.0 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
83687fccaee32c305eb9f37224f4c22975eeb2ca241280aebf5b0ef61f285be0
|
|
BLAKE2b-256 checksum How to use checksums |
c608d081f9673f9abba35c1253d0f50fe031eb6b3a5a4e40e453b2973b9bb1ae
|
| 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.2
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.