circular-buffer
Efficient circular buffer implementation in Python with optional Numba JIT compilation
Usage
import circular_buffer
buffer_of_int_type = circular_buffer.for_instances_like(123)
buf = buffer_of_int_type(size = 10, autoexpand = True)
for i in range(12):
buf.push_back(i)
assert buf.pop_front() == 0
assert buf.front() == 1
assert buf.back() == 11
Remember to install numba JIT compiler package to get a small extra speedup. numba can be
automatically installed if you install this package via pip install circular-buffer[numba].
Metadata
Release files for circular-buffer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| circular-buffer-0.2.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| circular_buffer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / circular-buffer-0.2.0.tar.gz
| Download URL | circular-buffer-0.2.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32f563f1bda03f863a5e881a0e2d6faac6b71de922ea6c24888150c377c70f73
|
|
BLAKE2b-256 checksum How to use checksums |
89c2b7ff5251a874e1fd7790e8c46fdc87011cfd73b3fdc03091e22075ea00d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.1
|
Release files / circular_buffer-0.2.0-py3-none-any.whl
| Download URL | circular_buffer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26678b4f49a335595487f6610a5f936aa61928538e73ef3d05aebc3f1f0227d1
|
|
BLAKE2b-256 checksum How to use checksums |
bebfdd3b80371c40eb251b8cef251c52e8ab8528b38b98a9c7fb0ab6e1ff1182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.1
|