Name | d42 JSON |
Version |
2.0.3
JSON |
| download |
home_page | https://github.com/d42-schemas/d42 |
Summary | Toolkit for defining, generating, validating, and substituting data models with a data description language |
upload_time | 2024-10-29 20:38:20 |
maintainer | None |
docs_url | None |
author | Nikita Tsvetkov |
requires_python | >=3.8 |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# d42
[![Codecov](https://img.shields.io/codecov/c/github/d42-schemas/d42/master.svg?style=flat-square)](https://codecov.io/gh/d42-schemas/d42)
[![PyPI](https://img.shields.io/pypi/v/d42.svg?style=flat-square)](https://pypi.python.org/pypi/d42/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/d42?style=flat-square)](https://pypi.python.org/pypi/d42/)
[![Python Version](https://img.shields.io/pypi/pyversions/d42.svg?style=flat-square)](https://pypi.python.org/pypi/d42/)
The `d42` package is a comprehensive toolkit for data modeling, which includes functionalities for definition, generation, validation, and substitution of data models using a robust data description language.
## Installation
```shell
$ pip3 install d42
```
## Usage Example
```python
from d42 import schema, fake, validate_or_fail
# Define a schema for a string containing "banana"
sch = schema.str("banana")
# Generate a fake value based on the schema and validate it
assert validate_or_fail(sch, fake(sch))
```
## Documentation
For detailed documentation, visit the [official d42 documentation](https://d42.sh).
Raw data
{
"_id": null,
"home_page": "https://github.com/d42-schemas/d42",
"name": "d42",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Nikita Tsvetkov",
"author_email": "tsv1@fastmail.com",
"download_url": "https://files.pythonhosted.org/packages/dd/d1/3ff42b7a04f1e61076b801f615728fb761fc7637d8330a373ce22ad3e502/d42-2.0.3.tar.gz",
"platform": null,
"description": "# d42\n\n[![Codecov](https://img.shields.io/codecov/c/github/d42-schemas/d42/master.svg?style=flat-square)](https://codecov.io/gh/d42-schemas/d42)\n[![PyPI](https://img.shields.io/pypi/v/d42.svg?style=flat-square)](https://pypi.python.org/pypi/d42/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/d42?style=flat-square)](https://pypi.python.org/pypi/d42/)\n[![Python Version](https://img.shields.io/pypi/pyversions/d42.svg?style=flat-square)](https://pypi.python.org/pypi/d42/)\n\nThe `d42` package is a comprehensive toolkit for data modeling, which includes functionalities for definition, generation, validation, and substitution of data models using a robust data description language.\n\n## Installation\n\n```shell\n$ pip3 install d42\n```\n\n## Usage Example\n\n```python\nfrom d42 import schema, fake, validate_or_fail\n\n# Define a schema for a string containing \"banana\"\nsch = schema.str(\"banana\")\n\n# Generate a fake value based on the schema and validate it\nassert validate_or_fail(sch, fake(sch))\n```\n\n## Documentation\n\nFor detailed documentation, visit the [official d42 documentation](https://d42.sh).\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Toolkit for defining, generating, validating, and substituting data models with a data description language",
"version": "2.0.3",
"project_urls": {
"Docs": "https://d42.sh",
"GitHub": "https://github.com/d42-schemas/d42",
"Homepage": "https://github.com/d42-schemas/d42"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ad148fa526831dce73c0a2330db0213006cc12d9128c12457690c6311dc56dc2",
"md5": "88017b6cc5b52cce3f201c62ac676d04",
"sha256": "7842384e1c11824910ce1113eed55b7bc15bbb6eba5c26d2ad731d77b01c978e"
},
"downloads": -1,
"filename": "d42-2.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "88017b6cc5b52cce3f201c62ac676d04",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 48409,
"upload_time": "2024-10-29T20:38:19",
"upload_time_iso_8601": "2024-10-29T20:38:19.424092Z",
"url": "https://files.pythonhosted.org/packages/ad/14/8fa526831dce73c0a2330db0213006cc12d9128c12457690c6311dc56dc2/d42-2.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ddd13ff42b7a04f1e61076b801f615728fb761fc7637d8330a373ce22ad3e502",
"md5": "06304ac8cdb4bc935079d939f5dbf18a",
"sha256": "0781d6c894242f4a22446694592523df1af5f3e94804c6412dd640b436a23a9f"
},
"downloads": -1,
"filename": "d42-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "06304ac8cdb4bc935079d939f5dbf18a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 31321,
"upload_time": "2024-10-29T20:38:20",
"upload_time_iso_8601": "2024-10-29T20:38:20.921118Z",
"url": "https://files.pythonhosted.org/packages/dd/d1/3ff42b7a04f1e61076b801f615728fb761fc7637d8330a373ce22ad3e502/d42-2.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-29 20:38:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "d42-schemas",
"github_project": "d42",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "d42"
}