Skip to main content
https://travis-ci.org/alex/zero_buffer.png?branch=master

zero_buffer is a high-performance, zero-copy, implementation of a byte-buffer for Python.

Documentation is available on ReadTheDocs.

from zero_buffer import Buffer

# Create a buffer which has space for 8192 bytes.
b = Buffer.allocate(8192)
with open(path, "rb") as f:
    # Read up to 8192 bytes from the file into the buffer
    b.read_from(f.fileno())
# Create a read-only view of the buffer, this performs no copying.
view = b.view()
# Split the view on colons, this returns a generator which yields sub-views
# of the view.
for part in view.split(b":"):
    print(part)

zero_buffer works on Python 2.6, 2.7, 3.2, 3.3, and PyPy.

Metadata

Release files for zero_buffer 0.5.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 zero_buffer 0.5.1
File Size Uploaded Provenance Actions
zero_buffer-0.5.1.tar.gz 20.3 kB Without provenance Details for zero_buffer-0.5.1.tar.gz

Release files / zero_buffer-0.5.1.tar.gz

Download URL zero_buffer-0.5.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b1279663c463961490208d92bf30feda06542ddf5327aa16973c6bbd38386ddb
BLAKE2b-256 checksum
How to use checksums
acb23738bfa7a15e0d591d0946ca97df91e6d1fe6f3bd53d425a70f4f368befc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zero_buffer 0.5.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file No provenance

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