jetblack-memoryqueue
A C extension for CPython 3.11 and later that stores incoming byte buffers as chunks and exposes them as one byte sequence. Appending and popping chunks take constant time and does not copy the underlying data.
Example
from jetblack_memoryqueue import memoryqueue
queue = memoryqueue(b"abc", b"def")
queue.append(b"ghi")
assert queue[3] == ord("d")
assert bytes(queue[2:5]) == b"cde"
assert queue.find(b"cde") == 2
assert queue.popleft().tobytes() == b"abc"
Installation
The package can be installed from the pypi.
pip install jetblack-memoryqueue
Metadata
Release files for jetblack-memoryqueue 0.1.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 | |
|---|---|---|---|
| jetblack_memoryqueue-0.1.0.tar.gz | 15.7 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| jetblack_memoryqueue-0.1.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.14 | CPython 3.14 free-threading | Linux glibc 2.5+ x86-64 | Details |
| jetblack_memoryqueue-0.1.0-cp314-cp314-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.5+ x86-64 | Details |
| jetblack_memoryqueue-0.1.0-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.5+ x86-64 | Details |
| jetblack_memoryqueue-0.1.0-cp312-cp312-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.5+ x86-64 | Details |
| jetblack_memoryqueue-0.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.5+ x86-64 | Details |
Total release size: 344.9 kB
Release files / jetblack_memoryqueue-0.1.0.tar.gz
| Download URL | jetblack_memoryqueue-0.1.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aae8f93ff3e6ff54400cb4d11b090acf957873f0222db558288aa4f476c5ec0a
|
|
BLAKE2b-256 checksum How to use checksums |
d18008f2f75861f345214c892b26dcd0b54e9371375a2a674388cf3f2513cd53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / jetblack_memoryqueue-0.1.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | jetblack_memoryqueue-0.1.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 75.8 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
36a95cf4636b3c4dcb3d46e4b77a4d8de1d38481a6c7052ce9cc57537f88c9dd
|
|
BLAKE2b-256 checksum How to use checksums |
980af24ef9a0523f3fa61ac12661c9c40a0eb46828ef2745cacd11b47c77b0a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / jetblack_memoryqueue-0.1.0-cp314-cp314-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | jetblack_memoryqueue-0.1.0-cp314-cp314-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 64.9 kB |
| Tags | CPython 3.14 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
b7c7d1b7b5dd8441bc75fc99d64bd05cabc9a0a2c93a450c1fe5d53d8aa4595e
|
|
BLAKE2b-256 checksum How to use checksums |
4d6c0a519f0796e5ea33ddcaf7dbfba804eec9c26667ea0ad317b038c4642242
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / jetblack_memoryqueue-0.1.0-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | jetblack_memoryqueue-0.1.0-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 63.4 kB |
| Tags | CPython 3.13 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d236472917e44c43580345bb566bdd80776570db80f5631980554099e0f05e89
|
|
BLAKE2b-256 checksum How to use checksums |
bef5360e38eeb85d11f61175609a3dfd731dbe9bfcba29d5c1cafcf73474cdae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / jetblack_memoryqueue-0.1.0-cp312-cp312-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | jetblack_memoryqueue-0.1.0-cp312-cp312-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 63.3 kB |
| Tags | CPython 3.12 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
a4a8f65a5bf15e0f62e6f23777e34e3f12ac6a79c44e70567ea0f3b23970a29b
|
|
BLAKE2b-256 checksum How to use checksums |
6e76c604b040c61cc48540e7fa51f18473ec8a139dda5c8cb555a9d6277a53de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / jetblack_memoryqueue-0.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | jetblack_memoryqueue-0.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 61.8 kB |
| Tags | CPython 3.11 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d4443183fffad89dfd33d5746d842c54450ca08a9b46fce0fc1ac1c835b71fa1
|
|
BLAKE2b-256 checksum How to use checksums |
61b08f8cd90dad6c134b85aef2b646976fc193c312736eff4885f31567360ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|