{"id":17300364,"url":"https://github.com/eric-wieser/numpy_ringbuffer","last_synced_at":"2025-04-07T05:16:40.818Z","repository":{"id":13142721,"uuid":"73709916","full_name":"eric-wieser/numpy_ringbuffer","owner":"eric-wieser","description":"Ring-buffer implementation that thinly wraps a numpy array","archived":false,"fork":false,"pushed_at":"2023-11-03T11:44:10.000Z","size":19,"stargazers_count":93,"open_issues_count":10,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-30T21:06:21.694Z","etag":null,"topics":["numpy","ringbuffer"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/numpy_ringbuffer/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eric-wieser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-14T13:59:06.000Z","updated_at":"2025-03-20T23:24:11.000Z","dependencies_parsed_at":"2022-09-05T09:31:49.539Z","dependency_job_id":"0ddf7eaa-e0c2-41f7-bccc-3203ed13e8da","html_url":"https://github.com/eric-wieser/numpy_ringbuffer","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"89707772e019bdebb9e4455393c6038f8b2066cd"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-wieser%2Fnumpy_ringbuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-wieser%2Fnumpy_ringbuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-wieser%2Fnumpy_ringbuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eric-wieser%2Fnumpy_ringbuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eric-wieser","download_url":"https://codeload.github.com/eric-wieser/numpy_ringbuffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["numpy","ringbuffer"],"created_at":"2024-10-15T11:27:44.854Z","updated_at":"2025-04-07T05:16:40.775Z","avatar_url":"https://github.com/eric-wieser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numpy_ringbuffer\n\n[![Build Status](https://github.com/eric-wieser/numpy_ringbuffer/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/eric-wieser/numpy_ringbuffer/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/eric-wieser/numpy_ringbuffer/branch/master/graph/badge.svg)](https://codecov.io/gh/eric-wieser/numpy_ringbuffer)\n\nRing (aka circular) buffers backed by a numpy array, supporting:\n\n * Operations from `collections.deque`\n   * `b.append(val)`\n   * `b.appendleft(val)`\n   * `b.extend(val)`\n   * `b.extendleft(val)`\n   * `b.pop(val)`\n   * `b.popleft(val)`\n * The `collections.Sequence` protocol (unoptimized)\n * C-side unwrapping into an array with `np.array(b)`\n * Arbitrary element dtypes, including extra dimensions like `RingBuffer(N, dtype=(int, 3))`\n\nFor example:\n\n```python\nimport numpy as np\nfrom numpy_ringbuffer import RingBuffer\n\nr = RingBuffer(capacity=4, dtype=bool)\nr.append(True)\nr.appendleft(False)\nprint(np.array(r))  # array([False, True])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feric-wieser%2Fnumpy_ringbuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feric-wieser%2Fnumpy_ringbuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feric-wieser%2Fnumpy_ringbuffer/lists"}