Name | pydantic-zarr JSON |
Version |
0.8.3
JSON |
| download |
home_page | None |
Summary | Pydantic models for the Zarr file format |
upload_time | 2025-09-01 11:44:11 |
maintainer | David Stansby |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | None |
keywords |
pydantic
zarr
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pydantic-zarr
[](https://pypi.python.org/pypi/pydantic-zarr)
[Pydantic](https://docs.pydantic.dev/latest/) models for [Zarr](https://zarr.readthedocs.io/en/stable/index.html).
## Installation
`pip install -U pydantic-zarr`
## Getting help
- Docs: see the [documentation](https://zarr.dev/pydantic-zarr/) for detailed information about this project.
- Chat: We use [Zulip](https://ossci.zulipchat.com/#narrow/channel/423692-Zarr) for project-related chat.
## Example
```python
import zarr
from pydantic_zarr import GroupSpec
group = zarr.group(path='foo')
array = zarr.create(store = group.store, path='foo/bar', shape=10, dtype='uint8')
array.attrs.put({'metadata': 'hello'})
# this is a pydantic model
spec = GroupSpec.from_zarr(group)
print(spec.model_dump())
"""
{
'zarr_format': 2,
'attributes': {},
'members': {
'bar': {
'zarr_format': 2,
'attributes': {'metadata': 'hello'},
'shape': (10,),
'chunks': (10,),
'dtype': '|u1',
'fill_value': 0,
'order': 'C',
'filters': None,
'dimension_separator': '.',
'compressor': {
'id': 'blosc',
'cname': 'lz4',
'clevel': 5,
'shuffle': 1,
'blocksize': 0,
},
}
},
}
"""
```
## History
This project was developed at [HHMI / Janelia Research Campus](https://www.janelia.org/). It was originally written by Davis Bennett to solve problems he encountered while working on the [Cellmap Project team](https://www.janelia.org/project-team/cellmap/members). In December of 2024 this project was migrated from the [`janelia-cellmap`](https://github.com/janelia-cellmap) github organization to [`zarr-developers`](https://github.com/zarr-developers) organization.
Raw data
{
"_id": null,
"home_page": null,
"name": "pydantic-zarr",
"maintainer": "David Stansby",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "pydantic, zarr",
"author": null,
"author_email": "Davis Bennett <davis.v.bennett@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/b7/51/50e83ed32434acf5da103c4ed59299494fc52f106ebab9581484ae330e74/pydantic_zarr-0.8.3.tar.gz",
"platform": null,
"description": "# pydantic-zarr\n\n[](https://pypi.python.org/pypi/pydantic-zarr)\n\n[Pydantic](https://docs.pydantic.dev/latest/) models for [Zarr](https://zarr.readthedocs.io/en/stable/index.html).\n\n## Installation\n\n`pip install -U pydantic-zarr`\n\n## Getting help\n\n- Docs: see the [documentation](https://zarr.dev/pydantic-zarr/) for detailed information about this project.\n- Chat: We use [Zulip](https://ossci.zulipchat.com/#narrow/channel/423692-Zarr) for project-related chat.\n\n## Example\n\n```python\nimport zarr\nfrom pydantic_zarr import GroupSpec\n\ngroup = zarr.group(path='foo')\narray = zarr.create(store = group.store, path='foo/bar', shape=10, dtype='uint8')\narray.attrs.put({'metadata': 'hello'})\n\n# this is a pydantic model\nspec = GroupSpec.from_zarr(group)\nprint(spec.model_dump())\n\"\"\"\n{\n 'zarr_format': 2,\n 'attributes': {},\n 'members': {\n 'bar': {\n 'zarr_format': 2,\n 'attributes': {'metadata': 'hello'},\n 'shape': (10,),\n 'chunks': (10,),\n 'dtype': '|u1',\n 'fill_value': 0,\n 'order': 'C',\n 'filters': None,\n 'dimension_separator': '.',\n 'compressor': {\n 'id': 'blosc',\n 'cname': 'lz4',\n 'clevel': 5,\n 'shuffle': 1,\n 'blocksize': 0,\n },\n }\n },\n}\n\"\"\"\n```\n\n## History\n\nThis project was developed at [HHMI / Janelia Research Campus](https://www.janelia.org/). It was originally written by Davis Bennett to solve problems he encountered while working on the [Cellmap Project team](https://www.janelia.org/project-team/cellmap/members). In December of 2024 this project was migrated from the [`janelia-cellmap`](https://github.com/janelia-cellmap) github organization to [`zarr-developers`](https://github.com/zarr-developers) organization.\n",
"bugtrack_url": null,
"license": null,
"summary": "Pydantic models for the Zarr file format",
"version": "0.8.3",
"project_urls": {
"Documentation": "https://zarr.dev/pydantic-zarr/",
"Issues": "https://github.com/zarr-developers/pydantic-zarr/issues",
"Source": "https://github.com/zarr-developers/pydantic-zarr"
},
"split_keywords": [
"pydantic",
" zarr"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "acb4300015ed5d26d4da3d70e279c3916aec7c98b151bd1a259b902e8117aa59",
"md5": "4cd5185242bf58ecb12472d3eb3608c7",
"sha256": "634d7a5707e84295fea4fecc36abfb5965c4204cb8bc20b97be0583e259f4bda"
},
"downloads": -1,
"filename": "pydantic_zarr-0.8.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4cd5185242bf58ecb12472d3eb3608c7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 25946,
"upload_time": "2025-09-01T11:44:10",
"upload_time_iso_8601": "2025-09-01T11:44:10.090251Z",
"url": "https://files.pythonhosted.org/packages/ac/b4/300015ed5d26d4da3d70e279c3916aec7c98b151bd1a259b902e8117aa59/pydantic_zarr-0.8.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b75150e83ed32434acf5da103c4ed59299494fc52f106ebab9581484ae330e74",
"md5": "f26fb5786b5636d2a72bee30aea95734",
"sha256": "ce92b5d32315d6cad959fbd96e7b38cfb5f981ef6369c5c308b0f297bc9ad64a"
},
"downloads": -1,
"filename": "pydantic_zarr-0.8.3.tar.gz",
"has_sig": false,
"md5_digest": "f26fb5786b5636d2a72bee30aea95734",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 42613,
"upload_time": "2025-09-01T11:44:11",
"upload_time_iso_8601": "2025-09-01T11:44:11.273370Z",
"url": "https://files.pythonhosted.org/packages/b7/51/50e83ed32434acf5da103c4ed59299494fc52f106ebab9581484ae330e74/pydantic_zarr-0.8.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 11:44:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zarr-developers",
"github_project": "pydantic-zarr",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pydantic-zarr"
}