|Github CI Status| |Appveyor Status| |PyPi version| |Conda Forge|
|Codecov Badge| |Docs Status| |Zenodo Badge|
Darr is a Python science library that allows you to work efficiently with
potentially very large, disk-based Numpy arrays that are widely readable and
self-documented. Documentation includes copy-paste ready code to read arrays
in many popular data science languages such as R, Julia, Scilab, IDL,
Matlab, Maple, and Mathematica, or in Python/Numpy without Darr. Without
exporting them and with minimal effort.
Universal readability of data is a pillar of good scientific practice. It is
also generally a good idea for anyone who wants to flexibly move between
analysis environments, who wants to save data for the longer term, or who
wants to share data with others without spending much time on figuring out
and/or explaining how the receiver can read it. No idea how to read your
7-dimensional uint32 numpy array in Matlab to quickly try out an algorithm
your colleague wrote? No worries, a quick copy-paste of code from the array
documentation is all that is needed to read your data in, e.g. R or Matlab
(see `example
<https://github.com/gbeckers/Darr/tree/master/examplearrays/arrays/array_int32_2D.darr>`__).
As you work with your array, its documentation is automatically kept up to
date. No need to export anything, make notes, or to provide elaborate
explanation. No looking up things. No dependence on complicated formats or
specialized libraries for reading you data elsewhere later.
In essence, Darr makes it trivially easy to share your numerical arrays with
others or with yourself when working in different computing environments,
and stores them in a future-proof way.
More rationale for a tool-independent approach to numeric array storage is
provided `here <https://darr.readthedocs.io/en/latest/rationale.html>`__.
Under the hood, Darr uses NumPy memory-mapped arrays, which is a widely
established and trusted way of working with disk-based numerical data, and
which makes Darr fully NumPy compatible. This enables efficient out-of-core
read/write access to potentially very large arrays. In addition to automatic
documentation, Darr adds other functionality to NumPy's memmap, such as easy
the appending and truncating of data, support for ragged arrays, the ability
to create arrays from iterators, and easy use of metadata. Flat binary files
and (JSON) text files are accompanied by a README text file that explains how
the array and metadata are stored (`see example arrays
<https://github.com/gbeckers/Darr/tree/master/examplearrays/>`__).
See this `tutorial <https://darr.readthedocs.io/en/latest/tutorialarray.html>`__
for a brief introduction, or the
`documentation <http://darr.readthedocs.io/>`__ for more info.
Darr is currently pre-1.0, still undergoing development. It is open source and
freely available under the `New BSD License
<https://opensource.org/licenses/BSD-3-Clause>`__ terms.
Features
--------
- Data is stored purely based on flat binary and text files, maximizing
universal readability.
- Automatic self-documention, including copy-paste ready code snippets for
reading the array in a number of popular data analysis environments, such as
Python (without Darr), R, Julia, Scilab, Octave/Matlab, GDL/IDL, and
Mathematica
(see `example array
<https://github.com/gbeckers/Darr/tree/master/examplearrays/arrays/array_int32_2D.darr>`__).
- Disk-persistent array data is directly accessible through `NumPy
indexing <https://numpy.org/doc/stable/reference/arrays.indexing.html>`__
and may be larger than RAM
- Easy and efficient appending of data (`see example <https://darr.readthedocs.io/en/latest/tutorialarray.html#appending-data>`__).
- Supports ragged arrays.
- Easy use of metadata, stored in a widely readable separate
JSON text file (`see example
<https://darr.readthedocs.io/en/latest/tutorialarray.html#metadata>`__).
- Many numeric types are supported: (u)int8-(u)int64, float16-float64,
complex64, complex128.
- Integrates easily with the `Dask <https://dask.pydata.org/en/latest/>`__
library for out-of-core computation on very large arrays.
- Minimal dependencies, only `NumPy <http://www.numpy.org/>`__.
Limitations
-----------
- No `structured (record) arrays <https://numpy.org/doc/stable/user/basics.rec.html>`__
supported yet, just
`ndarrays <https://numpy.org/doc/stable/reference/arrays.ndarray.html>`__
- No string data, just numeric.
- No compression, although compression for archiving purposes is supported.
- Uses multiple files per array, as binary data is separated from text
documentation and metadata. This can be a disadvantage in terms of storage
space if you have very many very small arrays.
See the `documentation <http://darr.readthedocs.io/>`__ for more information.
.. |Github CI Status| image:: https://github.com/gbeckers/Darr/actions/workflows/python_package.yml/badge.svg
:target: https://github.com/gbeckers/Darr/actions/workflows/python_package.yml
.. |Appveyor Status| image:: https://ci.appveyor.com/api/projects/status/github/gbeckers/darr?svg=true
:target: https://ci.appveyor.com/project/gbeckers/darr
.. |PyPi version| image:: https://img.shields.io/badge/pypi-0.6.0-orange.svg
:target: https://pypi.org/project/darr/
.. |Conda Forge| image:: https://anaconda.org/conda-forge/darr/badges/version.svg
:target: https://anaconda.org/conda-forge/darr
.. |Docs Status| image:: https://readthedocs.org/projects/darr/badge/?version=stable
:target: https://darr.readthedocs.io/en/stable/
.. |Repo Status| image:: https://www.repostatus.org/badges/latest/active.svg
:alt: Project Status: Active – The project has reached a stable, usable state and is being actively developed.
:target: https://www.repostatus.org/#active
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/c0157592ce7a4ecca5f7d8527874ce54
:alt: Codacy Badge
:target: https://app.codacy.com/app/gbeckers/Darr?utm_source=github.com&utm_medium=referral&utm_content=gbeckers/Darr&utm_campaign=Badge_Grade_Dashboard
.. |Zenodo Badge| image:: https://zenodo.org/badge/151593293.svg
:target: https://zenodo.org/badge/latestdoi/151593293
.. |Codecov Badge| image:: https://codecov.io/gh/gbeckers/Darr/branch/master/graph/badge.svg?token=BBV0WDIUSJ
:target: https://codecov.io/gh/gbeckers/Darr
Raw data
{
"_id": null,
"home_page": "https://github.com/gbeckers/darr",
"name": "darr",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Gabriel J.L. Beckers",
"author_email": "gabriel@gbeckers.nl",
"download_url": "https://files.pythonhosted.org/packages/41/0a/e44a7a08837f8769bba15bd07348b22a603c08618ad32be06a4eab9d7d22/darr-0.6.0.tar.gz",
"platform": null,
"description": "|Github CI Status| |Appveyor Status| |PyPi version| |Conda Forge|\r\n|Codecov Badge| |Docs Status| |Zenodo Badge|\r\n\r\nDarr is a Python science library that allows you to work efficiently with\r\npotentially very large, disk-based Numpy arrays that are widely readable and\r\nself-documented. Documentation includes copy-paste ready code to read arrays\r\nin many popular data science languages such as R, Julia, Scilab, IDL,\r\nMatlab, Maple, and Mathematica, or in Python/Numpy without Darr. Without\r\nexporting them and with minimal effort.\r\n\r\nUniversal readability of data is a pillar of good scientific practice. It is\r\nalso generally a good idea for anyone who wants to flexibly move between\r\nanalysis environments, who wants to save data for the longer term, or who\r\nwants to share data with others without spending much time on figuring out\r\nand/or explaining how the receiver can read it. No idea how to read your\r\n7-dimensional uint32 numpy array in Matlab to quickly try out an algorithm\r\nyour colleague wrote? No worries, a quick copy-paste of code from the array\r\ndocumentation is all that is needed to read your data in, e.g. R or Matlab\r\n(see `example\r\n<https://github.com/gbeckers/Darr/tree/master/examplearrays/arrays/array_int32_2D.darr>`__).\r\nAs you work with your array, its documentation is automatically kept up to\r\ndate. No need to export anything, make notes, or to provide elaborate\r\nexplanation. No looking up things. No dependence on complicated formats or\r\nspecialized libraries for reading you data elsewhere later.\r\n\r\nIn essence, Darr makes it trivially easy to share your numerical arrays with\r\nothers or with yourself when working in different computing environments,\r\nand stores them in a future-proof way.\r\n\r\nMore rationale for a tool-independent approach to numeric array storage is\r\nprovided `here <https://darr.readthedocs.io/en/latest/rationale.html>`__.\r\n\r\nUnder the hood, Darr uses NumPy memory-mapped arrays, which is a widely \r\nestablished and trusted way of working with disk-based numerical data, and \r\nwhich makes Darr fully NumPy compatible. This enables efficient out-of-core \r\nread/write access to potentially very large arrays. In addition to automatic \r\ndocumentation, Darr adds other functionality to NumPy's memmap, such as easy \r\nthe appending and truncating of data, support for ragged arrays, the ability \r\nto create arrays from iterators, and easy use of metadata. Flat binary files \r\nand (JSON) text files are accompanied by a README text file that explains how \r\nthe array and metadata are stored (`see example arrays \r\n<https://github.com/gbeckers/Darr/tree/master/examplearrays/>`__).\r\n\r\nSee this `tutorial <https://darr.readthedocs.io/en/latest/tutorialarray.html>`__\r\nfor a brief introduction, or the\r\n`documentation <http://darr.readthedocs.io/>`__ for more info.\r\n\r\nDarr is currently pre-1.0, still undergoing development. It is open source and\r\nfreely available under the `New BSD License\r\n<https://opensource.org/licenses/BSD-3-Clause>`__ terms.\r\n\r\nFeatures\r\n--------\r\n- Data is stored purely based on flat binary and text files, maximizing\r\n universal readability.\r\n- Automatic self-documention, including copy-paste ready code snippets for\r\n reading the array in a number of popular data analysis environments, such as\r\n Python (without Darr), R, Julia, Scilab, Octave/Matlab, GDL/IDL, and\r\n Mathematica\r\n (see `example array\r\n <https://github.com/gbeckers/Darr/tree/master/examplearrays/arrays/array_int32_2D.darr>`__).\r\n- Disk-persistent array data is directly accessible through `NumPy\r\n indexing <https://numpy.org/doc/stable/reference/arrays.indexing.html>`__\r\n and may be larger than RAM\r\n- Easy and efficient appending of data (`see example <https://darr.readthedocs.io/en/latest/tutorialarray.html#appending-data>`__).\r\n- Supports ragged arrays.\r\n- Easy use of metadata, stored in a widely readable separate\r\n JSON text file (`see example\r\n <https://darr.readthedocs.io/en/latest/tutorialarray.html#metadata>`__).\r\n- Many numeric types are supported: (u)int8-(u)int64, float16-float64,\r\n complex64, complex128.\r\n- Integrates easily with the `Dask <https://dask.pydata.org/en/latest/>`__\r\n library for out-of-core computation on very large arrays.\r\n- Minimal dependencies, only `NumPy <http://www.numpy.org/>`__.\r\n\r\nLimitations\r\n-----------\r\n- No `structured (record) arrays <https://numpy.org/doc/stable/user/basics.rec.html>`__\r\n supported yet, just\r\n `ndarrays <https://numpy.org/doc/stable/reference/arrays.ndarray.html>`__\r\n- No string data, just numeric.\r\n- No compression, although compression for archiving purposes is supported.\r\n- Uses multiple files per array, as binary data is separated from text\r\n documentation and metadata. This can be a disadvantage in terms of storage\r\n space if you have very many very small arrays.\r\n\r\n\r\nSee the `documentation <http://darr.readthedocs.io/>`__ for more information.\r\n\r\n.. |Github CI Status| image:: https://github.com/gbeckers/Darr/actions/workflows/python_package.yml/badge.svg\r\n :target: https://github.com/gbeckers/Darr/actions/workflows/python_package.yml\r\n.. |Appveyor Status| image:: https://ci.appveyor.com/api/projects/status/github/gbeckers/darr?svg=true\r\n :target: https://ci.appveyor.com/project/gbeckers/darr\r\n.. |PyPi version| image:: https://img.shields.io/badge/pypi-0.6.0-orange.svg\r\n :target: https://pypi.org/project/darr/\r\n.. |Conda Forge| image:: https://anaconda.org/conda-forge/darr/badges/version.svg\r\n :target: https://anaconda.org/conda-forge/darr\r\n.. |Docs Status| image:: https://readthedocs.org/projects/darr/badge/?version=stable\r\n :target: https://darr.readthedocs.io/en/stable/\r\n.. |Repo Status| image:: https://www.repostatus.org/badges/latest/active.svg\r\n :alt: Project Status: Active \u2013 The project has reached a stable, usable state and is being actively developed.\r\n :target: https://www.repostatus.org/#active\r\n.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/c0157592ce7a4ecca5f7d8527874ce54\r\n :alt: Codacy Badge\r\n :target: https://app.codacy.com/app/gbeckers/Darr?utm_source=github.com&utm_medium=referral&utm_content=gbeckers/Darr&utm_campaign=Badge_Grade_Dashboard\r\n.. |Zenodo Badge| image:: https://zenodo.org/badge/151593293.svg\r\n :target: https://zenodo.org/badge/latestdoi/151593293\r\n.. |Codecov Badge| image:: https://codecov.io/gh/gbeckers/Darr/branch/master/graph/badge.svg?token=BBV0WDIUSJ\r\n :target: https://codecov.io/gh/gbeckers/Darr\r\n\r\n",
"bugtrack_url": null,
"license": "BSD-3",
"summary": "Stores NumPy arrays in a way that is self-documented and tool-independent.",
"version": "0.6.0",
"project_urls": {
"Homepage": "https://github.com/gbeckers/darr",
"Source": "https://github.com/gbeckers/darr"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a6df044828a4e490031b6be2c7fc29a80ad510fd5c7031830c758504f733c9e",
"md5": "15f84ea5c3032f1ab9343163a8babcad",
"sha256": "b4f07aa0826a0c5fd3b9bb8cbbdfad4595591487b9a050b6c7bf58c20eef2994"
},
"downloads": -1,
"filename": "darr-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "15f84ea5c3032f1ab9343163a8babcad",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 55623,
"upload_time": "2024-11-07T14:31:24",
"upload_time_iso_8601": "2024-11-07T14:31:24.446933Z",
"url": "https://files.pythonhosted.org/packages/9a/6d/f044828a4e490031b6be2c7fc29a80ad510fd5c7031830c758504f733c9e/darr-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "410ae44a7a08837f8769bba15bd07348b22a603c08618ad32be06a4eab9d7d22",
"md5": "b96863b7609cadd7edd2f04f861fbcba",
"sha256": "bf2e608bbcf7bfc7835a1066e5e8fed8394abd2be50dad3e6e40d8d171e40c00"
},
"downloads": -1,
"filename": "darr-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "b96863b7609cadd7edd2f04f861fbcba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 67882,
"upload_time": "2024-11-07T14:31:25",
"upload_time_iso_8601": "2024-11-07T14:31:25.702905Z",
"url": "https://files.pythonhosted.org/packages/41/0a/e44a7a08837f8769bba15bd07348b22a603c08618ad32be06a4eab9d7d22/darr-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-07 14:31:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gbeckers",
"github_project": "darr",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"appveyor": true,
"requirements": [],
"lcname": "darr"
}