valida


Namevalida JSON
Version 0.7.1 PyPI version JSON
download
home_page
SummaryComprehensive validation library for nested data structures.
upload_time2023-07-03 13:56:28
maintainer
docs_urlNone
authorAdam J. Plowman
requires_python>=3.8,<4.0.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <img src="valida.png" width="200" alt="Valida logo"/>

**Validation for nested data structures**

[![PyPI version](https://img.shields.io/pypi/v/valida "PyPI version")](https://pypi.org/project/valida)
![Testing workflow](https://github.com/hpcflow/valida/actions/workflows/test.yml/badge.svg)
[![Supported python versions](https://img.shields.io/pypi/pyversions/valida "Supported python versions")](https://pypi.org/project/valida)
[![License](https://img.shields.io/github/license/hpcflow/valida "License")](https://github.com/hpcflow/valida/blob/main/LICENSE)
[![DOI](https://zenodo.org/badge/446597552.svg)](https://zenodo.org/badge/latestdoi/446597552)

## Installing

`pip install valida`

## A simple example

```python
from valida import Data, Value, Rule

# Define some data that we want to validate:
my_data = Data({'A': 1, 'B': [1, 2, 3], 'C': {'c1': 8.2, 'c2': 'hello'}})

# Define a rule as a path within the data and a condition at that path:
rule = Rule(
  path=('C', 'c2'),
  condition=Value.dtype.equal_to(str),
)

# Test the rule
rule.test(my_data).is_valid # `True` => The rule tested successfully

```

## Acknowledgements

Valida was developed using funding from the [LightForm](https://lightform.org.uk/) EPSRC programme grant ([EP/R001715/1](https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/R001715/1))

<img src="https://lightform-group.github.io/wiki/assets/images/site/lightform-logo.png" width="150"/>


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "valida",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Adam J. Plowman",
    "author_email": "adam.plowman@manchester.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/37/a4/e583db86342ec946c6cb120286c990a6751f4da34b6a4126c46dcc24585f/valida-0.7.1.tar.gz",
    "platform": null,
    "description": "<img src=\"valida.png\" width=\"200\" alt=\"Valida logo\"/>\n\n**Validation for nested data structures**\n\n[![PyPI version](https://img.shields.io/pypi/v/valida \"PyPI version\")](https://pypi.org/project/valida)\n![Testing workflow](https://github.com/hpcflow/valida/actions/workflows/test.yml/badge.svg)\n[![Supported python versions](https://img.shields.io/pypi/pyversions/valida \"Supported python versions\")](https://pypi.org/project/valida)\n[![License](https://img.shields.io/github/license/hpcflow/valida \"License\")](https://github.com/hpcflow/valida/blob/main/LICENSE)\n[![DOI](https://zenodo.org/badge/446597552.svg)](https://zenodo.org/badge/latestdoi/446597552)\n\n## Installing\n\n`pip install valida`\n\n## A simple example\n\n```python\nfrom valida import Data, Value, Rule\n\n# Define some data that we want to validate:\nmy_data = Data({'A': 1, 'B': [1, 2, 3], 'C': {'c1': 8.2, 'c2': 'hello'}})\n\n# Define a rule as a path within the data and a condition at that path:\nrule = Rule(\n  path=('C', 'c2'),\n  condition=Value.dtype.equal_to(str),\n)\n\n# Test the rule\nrule.test(my_data).is_valid # `True` => The rule tested successfully\n\n```\n\n## Acknowledgements\n\nValida was developed using funding from the [LightForm](https://lightform.org.uk/) EPSRC programme grant ([EP/R001715/1](https://gow.epsrc.ukri.org/NGBOViewGrant.aspx?GrantRef=EP/R001715/1))\n\n<img src=\"https://lightform-group.github.io/wiki/assets/images/site/lightform-logo.png\" width=\"150\"/>\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Comprehensive validation library for nested data structures.",
    "version": "0.7.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fbccf364ae36cf7f052de44a274168bcefe4412db53f23f6eede289d963b54c",
                "md5": "641275b06c661a48b51540fc38a925e6",
                "sha256": "28f0859c06e2532c1280911f688550b7f885084d3675792330cb6550a49cba43"
            },
            "downloads": -1,
            "filename": "valida-0.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "641275b06c661a48b51540fc38a925e6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0.0",
            "size": 26829,
            "upload_time": "2023-07-03T13:56:26",
            "upload_time_iso_8601": "2023-07-03T13:56:26.859403Z",
            "url": "https://files.pythonhosted.org/packages/8f/bc/cf364ae36cf7f052de44a274168bcefe4412db53f23f6eede289d963b54c/valida-0.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37a4e583db86342ec946c6cb120286c990a6751f4da34b6a4126c46dcc24585f",
                "md5": "bc0c0bc8d0c859fba246baebac974af5",
                "sha256": "342e4929ec27c1b6bf64e43f2a5024d078b98e3ab30c1b4a3e9637fc323d4d15"
            },
            "downloads": -1,
            "filename": "valida-0.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bc0c0bc8d0c859fba246baebac974af5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0.0",
            "size": 23568,
            "upload_time": "2023-07-03T13:56:28",
            "upload_time_iso_8601": "2023-07-03T13:56:28.266287Z",
            "url": "https://files.pythonhosted.org/packages/37/a4/e583db86342ec946c6cb120286c990a6751f4da34b6a4126c46dcc24585f/valida-0.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-03 13:56:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "valida"
}
        
Elapsed time: 0.17367s