{"id":15196996,"url":"https://github.com/ryancswallace/npdb","last_synced_at":"2026-02-09T04:35:36.692Z","repository":{"id":57446997,"uuid":"112865265","full_name":"ryancswallace/npdb","owner":"ryancswallace","description":"Parallel NumPy-like interface for large n-dimensional arrays on disk.","archived":false,"fork":false,"pushed_at":"2017-12-10T21:13:09.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:17:54.352Z","etag":null,"topics":["mapreduce-designpatterns","numpy","numpy-arrays","parallel-computing","python"],"latest_commit_sha":null,"homepage":"","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/ryancswallace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-02T18:12:08.000Z","updated_at":"2017-12-10T03:19:00.000Z","dependencies_parsed_at":"2022-08-29T20:02:08.490Z","dependency_job_id":null,"html_url":"https://github.com/ryancswallace/npdb","commit_stats":null,"previous_names":["ryanwallace96/npdb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryancswallace/npdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancswallace%2Fnpdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancswallace%2Fnpdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancswallace%2Fnpdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancswallace%2Fnpdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryancswallace","download_url":"https://codeload.github.com/ryancswallace/npdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancswallace%2Fnpdb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268181237,"owners_count":24209164,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mapreduce-designpatterns","numpy","numpy-arrays","parallel-computing","python"],"created_at":"2024-09-28T00:22:32.435Z","updated_at":"2026-02-09T04:35:36.595Z","avatar_url":"https://github.com/ryancswallace.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npdb: Large Parallelized NumPy Arrays\n[![PyPI version](https://badge.fury.io/py/npdb.svg)](https://badge.fury.io/py/npdb)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.org/ryancwallace/npdb.svg?branch=master)](https://travis-ci.org/ryancwallace/npdb)\n[![codecov](https://codecov.io/gh/ryancwallace/npdb/branch/master/graph/badge.svg)](https://codecov.io/gh/ryancwallace/npdb)\n[![Documentation Status](https://readthedocs.org/projects/npdb/badge/?version=latest)](http://npdb.readthedocs.io/en/latest/?badge=latest)\n\n[**Docs**](https://npdb.readthedocs.io)\n| [**Install Guide**](https://npdb.readthedocs.io/en/latest/install.html)\n| [**Tutorial**](https://npdb.readthedocs.io/en/latest/tutorial.html)\n| [**Examples**](https://github.com/ryancwallace/npdb/tree/master/algs)\n\nnpdb is an implementation of large disk-stored NumPy-compatible n-dimenstional arrays that may exceed available memory. npdb implements the core multi-dimensional array class `npdb.dbarray`, which supports persistent binary storage and distributed batch processed operations. `npdb.dbarray` supports a subset of the `numpy.ndarray` interface.\n\n## Background\nThe `numpy.memmap` class also supports arrays stored on disk but has several limitations. Arrays are stored in a single file, and the size of the file can not exceed 2GB on 32-bit systems. This implementation both restricts the size of data and disallows distributed storage. On the other hand, `numpy.memmap` objects support the entire `numpy.ndarray` interface. \n\nThe npdb library strikes a different balance--array sizes are constrained only by available disk space and can be distributed across multiple files. The cost of this capability is that a limited subset of the numpy interface is supported.\n\n## Example\n\n```python\nimport npdb as nd\n\n# create on disk a 3D array of floats of lengths 100\ndb_arr = npdb.dbarray((100,100,100), float)\n\n# slice from array\n\n```\n\n## Installation\nYou can install npdb using pip by running\n\n```\n$ pip install npdb\n```\n\n## Testing\nIf unittest is installed, tests can be run after installation with\n\n```\n$ python -m unittest discover\n```\n\n## License\nMIT License (see `LICENSE`). Copyright (c) 2017 Ryan Wallace.\n\n## Authors\nRyan Wallace. ryanwallace@college.harvard.edu.\n\n\n# IN PRE-ALHPA DEV\nTODO: \n\n---infrastruture---\n* autodoc for reference \n* host\n* link examples, install guide, docs, tutorial\n\n---core content---\n* set minimum size before spill over onto disk\n* better handling of open(file) re exceptions,  remove file on delete\n* magic methods \n* indexing location, module names?\n* creation: basic - npdb.empty(), from data - npdb.array()\n* free dbarray? parameter to save explicitly, or paramater for persistence? overload del\n* keep track of what's in memory to avoid repetitive pulls\n* default size params, data dir\n* rewrite arraymap and indexing in Cython/C/numpy?\n* compression\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancswallace%2Fnpdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryancswallace%2Fnpdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancswallace%2Fnpdb/lists"}