Name | qav JSON |
Version |
1.1.9
JSON |
| download |
home_page | https://github.com/UMIACS/qav |
Summary | Question Answer Validation |
upload_time | 2024-06-18 17:53:17 |
maintainer | UMIACS Staff |
docs_url | https://pythonhosted.org/qav/ |
author | Derek Yarnell |
requires_python | None |
license | LGPL v2.1 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Question Answer Validation (qav)
[![pypi version](https://img.shields.io/pypi/v/qav.svg)](https://pypi.python.org/pypi/qav)
[![license](https://img.shields.io/pypi/l/qav.svg)](https://pypi.python.org/pypi/qav)
[![pyversions](https://img.shields.io/pypi/pyversions/qav.svg)](https://pypi.python.org/pypi/qav)
[![pipeline status](https://gitlab.umiacs.umd.edu/staff/qav/badges/master/pipeline.svg)](https://gitlab.umiacs.umd.edu/staff/qav/commits/master)
[![coverage report](https://gitlab.umiacs.umd.edu/staff/qav/badges/master/coverage.svg)](https://gitlab.umiacs.umd.edu/staff/qav/commits/master)
qav is a Python library for console-based question and answering, with the
ability to validate input.
It provides question sets to group related questions. Questions can also
have subordinate Questions underneath them. Answers to those questions can be
validated based on a simple, static piece of information provided by you.
Answers may also be validated dynamically based on the information provided in
previous questions.
## Example Usage
```
>>> from qav.questions import Question
>>> from qav.validators import ListValidator
>>> q = Question('How old am I? ', 'age', ListValidator(['20', '35', '40']))
>>> q.ask()
Please select from the following choices:
[0] - 20
[1] - 35
[2] - 40
How old am I? : 0
>>> q.answer()
# returns => {'age': '20'}
```
## Requirements
[`netaddr`](https://pypi.org/project/netaddr/)
## Installation
```
$ pip install qav
```
## Compatibility
This library has been tested to support:
* Python 3.6
It most likely will still run on Python 2.7, but official support has been dropped.
## License
qav - question answer validation in Python
Copyright (C) 2015 UMIACS
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Email:
github@umiacs.umd.edu
Raw data
{
"_id": null,
"home_page": "https://github.com/UMIACS/qav",
"name": "qav",
"maintainer": "UMIACS Staff",
"docs_url": "https://pythonhosted.org/qav/",
"requires_python": null,
"maintainer_email": "github@umiacs.umd.edu",
"keywords": null,
"author": "Derek Yarnell",
"author_email": "derek@umiacs.umd.edu",
"download_url": "https://files.pythonhosted.org/packages/e5/20/357f0c7f3c2f5de9b216cae7ef03214d86c30d487f6724a7230d8c052f5d/qav-1.1.9.tar.gz",
"platform": null,
"description": "# Question Answer Validation (qav)\n\n[![pypi version](https://img.shields.io/pypi/v/qav.svg)](https://pypi.python.org/pypi/qav)\n[![license](https://img.shields.io/pypi/l/qav.svg)](https://pypi.python.org/pypi/qav)\n[![pyversions](https://img.shields.io/pypi/pyversions/qav.svg)](https://pypi.python.org/pypi/qav)\n[![pipeline status](https://gitlab.umiacs.umd.edu/staff/qav/badges/master/pipeline.svg)](https://gitlab.umiacs.umd.edu/staff/qav/commits/master)\n[![coverage report](https://gitlab.umiacs.umd.edu/staff/qav/badges/master/coverage.svg)](https://gitlab.umiacs.umd.edu/staff/qav/commits/master)\n\nqav is a Python library for console-based question and answering, with the\nability to validate input.\n\nIt provides question sets to group related questions. Questions can also\nhave subordinate Questions underneath them. Answers to those questions can be\nvalidated based on a simple, static piece of information provided by you.\nAnswers may also be validated dynamically based on the information provided in\nprevious questions.\n\n## Example Usage\n```\n>>> from qav.questions import Question\n>>> from qav.validators import ListValidator\n>>> q = Question('How old am I? ', 'age', ListValidator(['20', '35', '40']))\n>>> q.ask()\nPlease select from the following choices:\n [0] - 20\n [1] - 35\n [2] - 40\nHow old am I? : 0\n>>> q.answer()\n# returns => {'age': '20'}\n```\n\n## Requirements\n[`netaddr`](https://pypi.org/project/netaddr/)\n\n## Installation\n```\n$ pip install qav\n```\n\n## Compatibility\nThis library has been tested to support:\n* Python 3.6\n\nIt most likely will still run on Python 2.7, but official support has been dropped.\n\n## License\n\n qav - question answer validation in Python\n Copyright (C) 2015 UMIACS\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\n Email:\n github@umiacs.umd.edu\n\n\n",
"bugtrack_url": null,
"license": "LGPL v2.1",
"summary": "Question Answer Validation",
"version": "1.1.9",
"project_urls": {
"Homepage": "https://github.com/UMIACS/qav"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e0b3ae2167746ef921f44c8037ea01d422a761b2f4c75871c6ed6fcc22ae283e",
"md5": "7b1f064f0ce79f3880d75e28a2256dcd",
"sha256": "d7cc7f946feecddf031bc5a95acbf4e96ab0b61aae23b4a0767094b48ab1d74c"
},
"downloads": -1,
"filename": "qav-1.1.9-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "7b1f064f0ce79f3880d75e28a2256dcd",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 19134,
"upload_time": "2024-06-18T17:53:15",
"upload_time_iso_8601": "2024-06-18T17:53:15.727794Z",
"url": "https://files.pythonhosted.org/packages/e0/b3/ae2167746ef921f44c8037ea01d422a761b2f4c75871c6ed6fcc22ae283e/qav-1.1.9-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e520357f0c7f3c2f5de9b216cae7ef03214d86c30d487f6724a7230d8c052f5d",
"md5": "a73b261202468324ec8338efea426486",
"sha256": "3b86b91d7f776c3d2de9999ef5c74aef31fb3e26d029dac5bb8b1772072e76ef"
},
"downloads": -1,
"filename": "qav-1.1.9.tar.gz",
"has_sig": false,
"md5_digest": "a73b261202468324ec8338efea426486",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18087,
"upload_time": "2024-06-18T17:53:17",
"upload_time_iso_8601": "2024-06-18T17:53:17.500038Z",
"url": "https://files.pythonhosted.org/packages/e5/20/357f0c7f3c2f5de9b216cae7ef03214d86c30d487f6724a7230d8c052f5d/qav-1.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-18 17:53:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "UMIACS",
"github_project": "qav",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "qav"
}