Skip to main content

numpy_array_buffer

Library for buffers used in real-time computation:

  • RingBuffer: when full overwrites oldest row
  • DownsamplingBuffer: when full downsamples full buffer

Example

ring_buffer = RingBuffer(3,2, column_names=["x", "y"])
for i in range(6):
    ring_buffer.append([i, i + 10])
    print(f"{i=}, y: {ring_buffer.get_col('x')}")

output:

i=0, y: [0.]
i=1, y: [0. 1.]
i=2, y: [0. 1. 2.]
i=3, y: [1. 2. 3.]
i=4, y: [2. 3. 4.]
i=5, y: [3. 4. 5.]

Downsampled array

downsampling_buffer = DownsamplingBuffer(4, 2)
for i in range(9):
    data_object = [i, i + 10]
    downsampling_buffer.append(data_object)
    print(f"{i=}, Arr: {downsampling_buffer.get_array()[:,0]}")

output:

i=0, Arr: [0.]
i=1, Arr: [0. 1.]
i=2, Arr: [0. 1. 2.]
i=3, Arr: [0. 2.]
i=4, Arr: [0. 2. 4.]
i=5, Arr: [0. 4.]
i=6, Arr: [0. 4.]
i=7, Arr: [0. 4.]
i=8, Arr: [0. 4. 8.]

Similar packages:

Look at if functionality is the same, or compare benchmark:

Develop:

pip install -e .

Metadata

Release files for numpy-array-buffer 0.1.2

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

Source distribution (sdist)

Source distribution for numpy-array-buffer 0.1.2
File Size Uploaded Provenance Actions
numpy_array_buffer-0.1.2.tar.gz 8.5 kB Without provenance Details for numpy_array_buffer-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numpy-array-buffer 0.1.2
File Interpreter ABI Platform Actions
numpy_array_buffer-0.1.2-py3-none-any.whl Python 3 none any Details for numpy_array_buffer-0.1.2-py3-none-any.whl

Total release size: 15.8 kB

Release files / numpy_array_buffer-0.1.2.tar.gz

Download URL numpy_array_buffer-0.1.2.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bca20a1c3ca32cc8ba5c8b3d741790c3d2029a673082a3559e37174b38a0b7e8
BLAKE2b-256 checksum
How to use checksums
0f9888f65df345b3697d2bd415989fa891caf75b6ff88dccf2ac155631baec31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / numpy_array_buffer-0.1.2-py3-none-any.whl

Download URL numpy_array_buffer-0.1.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2061d0007194c95ecd5c6020b07d8ecbc9d267008255b8da36a9d5ec53ed3cc8
BLAKE2b-256 checksum
How to use checksums
f2c30347364e4f0fb943a425728b0670a1e6b039b0cea4d3f5b23aec83351ef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for numpy-array-buffer 0.1.2

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.

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