PyByteBuffer
A bytes manipulation library inspired by Java ByteBuffer
What it is and what it does
PyByteBuffer is a bytes manipulation library modeled after Java's java.nio.ByteBuffer. It wraps Python's byte handling to provide a familiar API for developers coming from Java, with methods to allocate buffers, write and read data at a tracked position, and control endianness during conversions. The library handles single bytes, byte arrays, strings, and multi-byte integers with explicit byte-order specification.
The package has no external runtime dependencies and installs cleanly, but it is no longer maintained. The last commit was 2020-10-25, and no updates have been released since 2020-12-28. While it may still work on current Python versions, it will not receive bug fixes, security patches, or compatibility updates for future Python releases.
Use it for:
- Porting Java code that uses ByteBuffer to Python while preserving the original API and logic
- Implementing binary protocol parsers or network packet handlers that require precise byte-order control
- Building low-level serialization or deserialization routines for binary file formats
- Prototyping or learning byte-level data manipulation with a familiar Java-style interface
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyByteBuffer provides Java ByteBuffer-style buffer manipulation for Python, allowing you to allocate, read, and write bytes with position tracking and endianness control.
No, unless you have a specific legacy requirement. The package is abandoned and will not receive updates or security patches. For new projects, use Python's built-in capabilities for byte manipulation, which are actively maintained. The copyleft GPL 3.0 license also restricts use in proprietary code.
Install
pybytebuffer on PyPI
pip
pip install pybytebufferuv
uv add pybytebufferpoetry
poetry add pybytebufferInstalling PyByteBuffer
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last commit was 2020-10-25 and no releases since 2020-12-28. It remains compatible with modern Python versions but will receive no maintenance or security updates.
License in practice
PyByteBuffer is licensed under GPL 3.0 (copyleft). Any code that imports and uses this library must also be licensed under GPL 3.0 or a compatible copyleft license, which may restrict commercial or proprietary use.
Quickstart
pip install PyByteBuffer
from PyByteBuffer import ByteBuffer
buf = ByteBuffer.allocate(50)
buf.put(0x10)
buf.put([0xcc, 0xdd, 0xee])
value = buf.get(1)
Verify before relying
- Whether performance characteristics claimed in the description (int↔bytes conversion benchmarks) remain relevant or have been superseded by Python standard library improvements
- Compatibility with Python versions released after 3.7 (classifiers list only up to 3.7)
Package facts
| License | GPL 3.0 (copyleft) |
| Python support | supports the current Python release (>=3) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,055 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,455,921/month — #3,883 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: PyByteBuffer-1.0.5-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
bitarray-hardbyteProvides an efficient C-backed array type for…
permissive · top 15,000 on PyPI
bitstringbitstring provides Python classes and functions…
permissive · top 5,000 on PyPI
flatbuffersFlatBuffers is a serialization library that…
permissive · top 1,000 on PyPI
base64ioProvides a streaming interface for Base64…
permissive · top 15,000 on PyPI
plum-pyTransforms byte sequences into Python objects…
permissive · top 15,000 on PyPI
binapyBinaPy wraps Python's binary-handling libraries…
permissive · top 5,000 on PyPI
cbitstructA C-accelerated implementation of the bitstruct…
copyleft · top 15,000 on PyPI
bitstructPacks and unpacks Python values into bit-level…
permissive · top 5,000 on PyPI
PymemPymem provides direct read and write access to…
permissive · top 15,000 on PyPI
bitarrayProvides an efficient C-backed array type for…
permissive · top 1,000 on PyPI