A Python implementation of a PCM ring buffer
Project description
pypcmringbuffer
概要
python用PCMリングバッファモジュールです。
インストールの方法
pip install pypcmringbuffer
使い方
リングキュークラス
from pypcmringbuffer import PyPcmRingQueue
# 最大10要素をキューイングできるキューインスタンスを作成
queue = PyPcmRingQueue(10)
queue.enqueue([0,1,2,3])
print(len(queue)) # 4
pcm = queue.dequeue(3)
print(pcm) # [0, 1, 2]
print(len(queue)) # 1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypcmringbuffer-0.0.4.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypcmringbuffer-0.0.4.tar.gz.
File metadata
- Download URL: pypcmringbuffer-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d869f3d117c0e52c8bf6038894ed4870a4ef71d1be309ebfd10bfcc1c4aea8db
|
|
| MD5 |
3139aeda584804e939f191c4bf1f5ef4
|
|
| BLAKE2b-256 |
8b7a44614b674871eda19525669a3931a3c75cbb78a7dd4c448db130ded0e1cb
|
File details
Details for the file pypcmringbuffer-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pypcmringbuffer-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00477a6f953f5566f21a0f3eee65108be7ba76f16b03feb110ae7c33413dcf2d
|
|
| MD5 |
8bf34f404b25a9a64c6d15e50316135d
|
|
| BLAKE2b-256 |
2284b5dd13a3db5f06ca4166e1990e545f43a20eaa4c5f577f80be0540b0e527
|