valley


Namevalley JSON
Version 1.7 PyPI version JSON
download
home_pagehttps://github.com/capless/valley
SummaryPython extensible schema validations and declarative syntax helpers.
upload_time2024-01-07 14:19:13
maintainer
docs_urlNone
authorBrian Jinwright
requires_python>=3.7,<4.0
licenseApache-2.0
keywords validations schema declarative
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ![alt text](https://s3.amazonaws.com/capless/images/valley-small.png "Valley - Extensible Schema Validations and Declarative Syntax Helpers")

# Valley

Python extensible schema validations and declarative syntax helpers.

[![Unittests](https://github.com/capless/valley/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/capless/valley/actions/workflows/main.yml)

## Installation

```shell
pip install valley
```

## Getting Started

```python
import valley as v


class Animal(v.Schema):
    name = v.StringProperty(required=True)
    species = v.StringProperty(required=True)
    color = v.StringProperty(required=True)
    meal_type = v.StringProperty()
    age = v.IntegerProperty(required=True)
    
frog = Animal(name='Kermit',species='frog',color='green',meal='carnivore',age=1)
frog.validate()
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/capless/valley",
    "name": "valley",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "validations,schema,declarative",
    "author": "Brian Jinwright",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/0a/e3/6e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93/valley-1.7.tar.gz",
    "platform": null,
    "description": "![alt text](https://s3.amazonaws.com/capless/images/valley-small.png \"Valley - Extensible Schema Validations and Declarative Syntax Helpers\")\n\n# Valley\n\nPython extensible schema validations and declarative syntax helpers.\n\n[![Unittests](https://github.com/capless/valley/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/capless/valley/actions/workflows/main.yml)\n\n## Installation\n\n```shell\npip install valley\n```\n\n## Getting Started\n\n```python\nimport valley as v\n\n\nclass Animal(v.Schema):\n    name = v.StringProperty(required=True)\n    species = v.StringProperty(required=True)\n    color = v.StringProperty(required=True)\n    meal_type = v.StringProperty()\n    age = v.IntegerProperty(required=True)\n    \nfrog = Animal(name='Kermit',species='frog',color='green',meal='carnivore',age=1)\nfrog.validate()\n```\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Python extensible schema validations and declarative syntax helpers.",
    "version": "1.7",
    "project_urls": {
        "Homepage": "https://github.com/capless/valley",
        "Repository": "https://github.com/capless/valley"
    },
    "split_keywords": [
        "validations",
        "schema",
        "declarative"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3622625d524d520b72f79c43e2c9f4ccf922363be1fe87df9734ed0282db61fe",
                "md5": "f0685254748e903e2067da3ff87cd9d0",
                "sha256": "6580b1b9ed3252b4031c186ff3def4042703c9ee783fad4d2f9fcefbdf36593b"
            },
            "downloads": -1,
            "filename": "valley-1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f0685254748e903e2067da3ff87cd9d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 26717,
            "upload_time": "2024-01-07T14:19:12",
            "upload_time_iso_8601": "2024-01-07T14:19:12.129935Z",
            "url": "https://files.pythonhosted.org/packages/36/22/625d524d520b72f79c43e2c9f4ccf922363be1fe87df9734ed0282db61fe/valley-1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ae36e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93",
                "md5": "657548e856c4e20326251c0b5ba2a62c",
                "sha256": "31c251ce47ccfc20a4712fb8c96fe982cd6ee703d5f09feb9065f3db79a3599a"
            },
            "downloads": -1,
            "filename": "valley-1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "657548e856c4e20326251c0b5ba2a62c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 22976,
            "upload_time": "2024-01-07T14:19:13",
            "upload_time_iso_8601": "2024-01-07T14:19:13.666381Z",
            "url": "https://files.pythonhosted.org/packages/0a/e3/6e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93/valley-1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-07 14:19:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "capless",
    "github_project": "valley",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "valley"
}
        
Elapsed time: 0.15836s