skillfed

PyByteBuffer

A bytes manipulation library inspired by Java ByteBuffer

pybytebuffer v1.0.5 1.5M downloads/30d#3,883 on PyPI8
Copyleft license GPL 3.0 Abandoned released

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 pybytebuffer

uv

uv add pybytebuffer

poetry

poetry add pybytebuffer

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: PyPy

Tags

byte buffer manipulationjava bytebuffer pythonbinary data packing unpackingendian conversionbytes position trackinghex buffer parsinglow-level byte operations
binary-dataabandoned

More Software Development packages