Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

https://travis-ci.org/peteut/circbuf.svg?branch=master https://img.shields.io/coveralls/peteut/circbuf.svg

circbuf implements a circular buffer for Python. It allows for zero copy operation, i.e. it uses memoryview to expose consumer and producer buffers. Access to the buffer is synchronised by locks, managed by context managers.

Example

import circbuf

buf = circbuf.CircBuf()
# Produce data
with buf.producer_buf as mv:
    mv[0] = 42
    buf.produced(1)

print('First entry: {}'.format(next(iter(buf)))) # First entry: 42

Features

  • Pure Python

  • Minimises allocation of big memory chunks

  • Automatic access synchronisation

  • Tested on Python 3.2, 3.3, 3.4

Release files for circbuf 0.1b1

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

Source distribution (sdist)

Source distribution for circbuf 0.1b1
File Size Uploaded
circbuf-0.1b1.linux-x86_64.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circbuf 0.1b1
File Interpreter ABI Platform
circbuf-0.1b1-py32, py33, py34-none-any.whl Details

Total release size: 12.0 kB

Release files / circbuf-0.1b1.linux-x86_64.tar.gz

Download URL circbuf-0.1b1.linux-x86_64.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98903ec2649d168266c45cebddbb354acc0b2b910fb25bde50ad2643b310c317
BLAKE2b-256 checksum
How to use checksums
243dd9dd9946f5f8695af9f58db372e0a26bedab9ff55bbc44eed3978ccc3093
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / circbuf-0.1b1-py32, py33, py34-none-any.whl

Download URL circbuf-0.1b1-py32, py33, py34-none-any.whl
Size 4.9 kB
SHA-256 checksum
How to use checksums
c51d58ec380b536da0bdb9a8b907ee007ff07e4d2a7725f8ff4eda1f24988619
BLAKE2b-256 checksum
How to use checksums
23efe5753b816da94c2217b180c0b4ee116e1f5f62e83e904cf9cada12092372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1b1 This release

2 release files

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