Name | dataspecs JSON |
Version |
5.0.0
JSON |
| download |
home_page | None |
Summary | Data specifications by data classes |
upload_time | 2025-01-14 14:56:15 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <3.14,>=3.9 |
license | MIT License Copyright (c) 2023-2025 Akio Taniguchi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
dataclasses
specifications
typing
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# dataspecs
[![Release](https://img.shields.io/pypi/v/dataspecs?label=Release&color=cornflowerblue&style=flat-square)](https://pypi.org/project/dataspecs/)
[![Python](https://img.shields.io/pypi/pyversions/dataspecs?label=Python&color=cornflowerblue&style=flat-square)](https://pypi.org/project/dataspecs/)
[![Downloads](https://img.shields.io/pypi/dm/dataspecs?label=Downloads&color=cornflowerblue&style=flat-square)](https://pepy.tech/project/dataspecs)
[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.10652375-cornflowerblue?style=flat-square)](https://doi.org/10.5281/zenodo.10652375)
[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/dataspecs/tests.yaml?label=Tests&style=flat-square)](https://github.com/astropenguin/dataspecs/actions)
Data specifications by data classes
## Installation
```shell
pip install dataspecs
```
## Basic usage
### Common imports and tags
```python
from dataclasses import dataclass
from dataspecs import TagBase, from_dataclass
from enum import auto
from typing import Annotated as Ann
class Tag(TagBase):
ATTR = auto()
DATA = auto()
DTYPE = auto()
```
### Simple specifications
```python
@dataclass
class Weather:
temp: list[float]
humid: list[float]
location: str
specs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], "Tokyo"))
print(specs)
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'float'>, data=None),
Spec(path=Path('/humid'), name='humid', tags=(), type=list[float], data=[50.0, 55.0]),
Spec(path=Path('/humid/0'), name='0', tags=(), type=<class 'float'>, data=None),
Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),
])
```
### Simple specifications with tags
```python
@dataclass
class Weather:
temp: Ann[list[float], Tag.DATA]
humid: Ann[list[float], Tag.DATA]
location: str
specs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], "Tokyo"))
print(specs)
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'float'>, data=None),
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
Spec(path=Path('/humid/0'), name='0', tags=(), type=<class 'float'>, data=None),
Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),
])
```
### Nested specifications (with tags)
```python
@dataclass
class Meta:
units: Ann[str, Tag.ATTR]
@dataclass
class Weather:
temp: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA, Meta("K")]
humid: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA, Meta("%")]
location: str
specs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], "Tokyo"))
print(specs)
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),
Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),
])
```
### Selecting specifications
```python
specs[Tag.DATA]
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
])
```
```python
specs[Tag]
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),
])
```
```python
specs[str]
```
```
Specs([
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),
Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),
Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),
])
```
```python
specs["/temp/[a-z]+"]
```
```
Specs([
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),
])
```
### Grouping specifications
```python
specs.groupby("tags")
```
```
[
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
]),
Specs([
Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),
]),
Specs([
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),
Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),
]),
Specs([
Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),
]),
]
```
## Advanced usage
### Formatting specifications
```python
from dataspecs import Format, format
@dataclass
class Meta:
units: Ann[str, Tag.ATTR]
@dataclass
class Weather:
temp: Ann[float, Meta("{0}")]
humid: Ann[float, Meta("{0}")]
temp_units: Ann[str, Format("/temp/units")]
humid_units: Ann[str, Format("/humid/units")]
format(from_dataclass(Weather(20.0, 50.0, "K", "%")))
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(), type=<class 'float'>, data=20.0),
Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'), # <- data formatted
Spec(path=Path('/humid'), name='humid', tags=(), type=<class 'float'>, data=55.0),
Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'), # <- data formatted
Spec(path=Path('/temp_units'), name='temp_units', tags=(), type=<class 'str'>, data='K'),
Spec(path=Path('/humid_units'), name='humid_units', tags=(), type=<class 'str'>, data='%'),
])
```
### Naming specifications
```python
from dataspecs import Name, name
@dataclass
class Weather:
temp: Ann[float, Name("Ground temperature")]
humid: Ann[float, Name("Relative humidity")]
name(from_dataclass(Weather(20.0, 50.0)))
```
```
Specs([
Spec(path=Path('/temp'), name='Ground temperature', tags=(), type=<class 'float'>, data=20.0), # <- name replaced
Spec(path=Path('/humid'), name='Relative humidity', tags=(), type=<class 'float'>, data=50.0), # <- name replaced
])
```
### Replacing specifications
```python
from dataspecs import Replace, replace
@dataclass
class Weather:
temp: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA]
humid: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA]
dtype: Ann[type, Replace("/[a-z]+/0", "type")]
replace(from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], int)))
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),
Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'int'>, data=None), # <- type replaced
Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),
Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'int'>, data=None), # <- type replaced
Spec(path=Path('/dtype'), name='dtype', tags=(), type=<class 'type'>, data=<class 'int'>),
])
```
## Specification rules
### First union type as representative type
```python
@dataclass
class Weather:
temp: list[int | float] | (int | float)
from_dataclass(Weather(0.0))
```
```
Specs([
Spec(path=Path('/temp'), name='temp', tags=(), type=list[int | float], data=0.0),
Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'int'>, data=None),
])
```
Raw data
{
"_id": null,
"home_page": null,
"name": "dataspecs",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.9",
"maintainer_email": null,
"keywords": "dataclasses, specifications, typing",
"author": null,
"author_email": "Akio Taniguchi <taniguchi.akio@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e4/63/abe4dc518eb37cdf2818098b676257431eee672ffe71771d86e0734ed56b/dataspecs-5.0.0.tar.gz",
"platform": null,
"description": "# dataspecs\n\n[![Release](https://img.shields.io/pypi/v/dataspecs?label=Release&color=cornflowerblue&style=flat-square)](https://pypi.org/project/dataspecs/)\n[![Python](https://img.shields.io/pypi/pyversions/dataspecs?label=Python&color=cornflowerblue&style=flat-square)](https://pypi.org/project/dataspecs/)\n[![Downloads](https://img.shields.io/pypi/dm/dataspecs?label=Downloads&color=cornflowerblue&style=flat-square)](https://pepy.tech/project/dataspecs)\n[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.10652375-cornflowerblue?style=flat-square)](https://doi.org/10.5281/zenodo.10652375)\n[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/dataspecs/tests.yaml?label=Tests&style=flat-square)](https://github.com/astropenguin/dataspecs/actions)\n\nData specifications by data classes\n\n## Installation\n\n```shell\npip install dataspecs\n```\n\n## Basic usage\n\n### Common imports and tags\n\n```python\nfrom dataclasses import dataclass\nfrom dataspecs import TagBase, from_dataclass\nfrom enum import auto\nfrom typing import Annotated as Ann\n\nclass Tag(TagBase):\n ATTR = auto()\n DATA = auto()\n DTYPE = auto()\n```\n\n### Simple specifications\n\n```python\n@dataclass\nclass Weather:\n temp: list[float]\n humid: list[float]\n location: str\n\nspecs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], \"Tokyo\"))\nprint(specs)\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'float'>, data=None),\n Spec(path=Path('/humid'), name='humid', tags=(), type=list[float], data=[50.0, 55.0]),\n Spec(path=Path('/humid/0'), name='0', tags=(), type=<class 'float'>, data=None),\n Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),\n])\n```\n\n### Simple specifications with tags\n\n```python\n@dataclass\nclass Weather:\n temp: Ann[list[float], Tag.DATA]\n humid: Ann[list[float], Tag.DATA]\n location: str\n\nspecs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], \"Tokyo\"))\nprint(specs)\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'float'>, data=None),\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n Spec(path=Path('/humid/0'), name='0', tags=(), type=<class 'float'>, data=None),\n Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),\n])\n```\n\n### Nested specifications (with tags)\n\n```python\n@dataclass\nclass Meta:\n units: Ann[str, Tag.ATTR]\n\n@dataclass\nclass Weather:\n temp: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA, Meta(\"K\")]\n humid: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA, Meta(\"%\")]\n location: str\n\nspecs = from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], \"Tokyo\"))\nprint(specs)\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),\n Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),\n])\n```\n\n### Selecting specifications\n\n```python\nspecs[Tag.DATA]\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n])\n```\n\n```python\nspecs[Tag]\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),\n])\n```\n\n```python\nspecs[str]\n```\n```\nSpecs([\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),\n Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),\n Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),\n])\n```\n\n```python\nspecs[\"/temp/[a-z]+\"]\n```\n```\nSpecs([\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),\n])\n```\n\n### Grouping specifications\n\n```python\nspecs.groupby(\"tags\")\n```\n```\n[\n Specs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n ]),\n Specs([\n Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'float'>, data=None),\n ]),\n Specs([\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'),\n Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'),\n ]),\n Specs([\n Spec(path=Path('/location'), name='location', tags=(), type=<class 'str'>, data='Tokyo'),\n ]),\n]\n```\n\n## Advanced usage\n\n### Formatting specifications\n\n```python\nfrom dataspecs import Format, format\n\n@dataclass\nclass Meta:\n units: Ann[str, Tag.ATTR]\n\n@dataclass\nclass Weather:\n temp: Ann[float, Meta(\"{0}\")]\n humid: Ann[float, Meta(\"{0}\")]\n temp_units: Ann[str, Format(\"/temp/units\")]\n humid_units: Ann[str, Format(\"/humid/units\")]\n\nformat(from_dataclass(Weather(20.0, 50.0, \"K\", \"%\")))\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(), type=<class 'float'>, data=20.0),\n Spec(path=Path('/temp/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='K'), # <- data formatted\n Spec(path=Path('/humid'), name='humid', tags=(), type=<class 'float'>, data=55.0),\n Spec(path=Path('/humid/units'), name='units', tags=(<Tag.ATTR: 1>,), type=<class 'str'>, data='%'), # <- data formatted\n Spec(path=Path('/temp_units'), name='temp_units', tags=(), type=<class 'str'>, data='K'),\n Spec(path=Path('/humid_units'), name='humid_units', tags=(), type=<class 'str'>, data='%'),\n])\n```\n\n### Naming specifications\n\n```python\nfrom dataspecs import Name, name\n\n@dataclass\nclass Weather:\n temp: Ann[float, Name(\"Ground temperature\")]\n humid: Ann[float, Name(\"Relative humidity\")]\n\nname(from_dataclass(Weather(20.0, 50.0)))\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='Ground temperature', tags=(), type=<class 'float'>, data=20.0), # <- name replaced\n Spec(path=Path('/humid'), name='Relative humidity', tags=(), type=<class 'float'>, data=50.0), # <- name replaced\n])\n```\n\n### Replacing specifications\n\n```python\nfrom dataspecs import Replace, replace\n\n@dataclass\nclass Weather:\n temp: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA]\n humid: Ann[list[Ann[float, Tag.DTYPE]], Tag.DATA]\n dtype: Ann[type, Replace(\"/[a-z]+/0\", \"type\")]\n\nreplace(from_dataclass(Weather([20.0, 25.0], [50.0, 55.0], int)))\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(<Tag.DATA: 2>,), type=list[float], data=[20.0, 25.0]),\n Spec(path=Path('/temp/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'int'>, data=None), # <- type replaced\n Spec(path=Path('/humid'), name='humid', tags=(<Tag.DATA: 2>,), type=list[float], data=[50.0, 55.0]),\n Spec(path=Path('/humid/0'), name='0', tags=(<Tag.DTYPE: 3>,), type=<class 'int'>, data=None), # <- type replaced\n Spec(path=Path('/dtype'), name='dtype', tags=(), type=<class 'type'>, data=<class 'int'>),\n])\n```\n\n## Specification rules\n\n### First union type as representative type\n\n```python\n@dataclass\nclass Weather:\n temp: list[int | float] | (int | float)\n\nfrom_dataclass(Weather(0.0))\n```\n```\nSpecs([\n Spec(path=Path('/temp'), name='temp', tags=(), type=list[int | float], data=0.0),\n Spec(path=Path('/temp/0'), name='0', tags=(), type=<class 'int'>, data=None),\n])\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023-2025 Akio Taniguchi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Data specifications by data classes",
"version": "5.0.0",
"project_urls": {
"homepage": "https://astropenguin.github.io/dataspecs/v5.0.0",
"repository": "https://github.com/astropenguin/dataspecs"
},
"split_keywords": [
"dataclasses",
" specifications",
" typing"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9d04548cda66ef5c8f2472f0914770714ea339c59c4f05a995e880d662923ebb",
"md5": "e417d4c57e7845cc6aac122a24a05ca8",
"sha256": "5dc1a834fadb944e59c7063c549fc95c7b4041ff74c4b88cb6e464a2af4b95dc"
},
"downloads": -1,
"filename": "dataspecs-5.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e417d4c57e7845cc6aac122a24a05ca8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.9",
"size": 13597,
"upload_time": "2025-01-14T14:56:13",
"upload_time_iso_8601": "2025-01-14T14:56:13.037409Z",
"url": "https://files.pythonhosted.org/packages/9d/04/548cda66ef5c8f2472f0914770714ea339c59c4f05a995e880d662923ebb/dataspecs-5.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e463abe4dc518eb37cdf2818098b676257431eee672ffe71771d86e0734ed56b",
"md5": "634a7700ad5ca4a53103549705e00508",
"sha256": "4d65500409447f0b728413fef667efe17874db8ed105b354e0196860ca36ae95"
},
"downloads": -1,
"filename": "dataspecs-5.0.0.tar.gz",
"has_sig": false,
"md5_digest": "634a7700ad5ca4a53103549705e00508",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.9",
"size": 50686,
"upload_time": "2025-01-14T14:56:15",
"upload_time_iso_8601": "2025-01-14T14:56:15.395458Z",
"url": "https://files.pythonhosted.org/packages/e4/63/abe4dc518eb37cdf2818098b676257431eee672ffe71771d86e0734ed56b/dataspecs-5.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-14 14:56:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "astropenguin",
"github_project": "dataspecs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dataspecs"
}