Skip to main content

Question Answer Validation (qav)

pypi version license pyversions pipeline status coverage report

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

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

Metadata

Release files for qav 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qav 1.2.0
File Size Uploaded Provenance
qav-1.2.0.tar.gz 22.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qav 1.2.0
File Interpreter ABI Platform
qav-1.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 41.7 kB

Release files / qav-1.2.0.tar.gz

Download URL qav-1.2.0.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1246d2b812741145382c3dc638381b6abb299621fab49e539c0687115a0e631b
BLAKE2b-256 checksum
How to use checksums
6bd922f9a81c5a42dbe3da829fdff8022910ce30ced2e7389467bfc205d45c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.17

Release files / qav-1.2.0-py2.py3-none-any.whl

Download URL qav-1.2.0-py2.py3-none-any.whl
Size 19.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
608aa0991fe6e3f514774f203a5c50b77792271cfd78604cf39c9196be978772
BLAKE2b-256 checksum
How to use checksums
79f71a955b664f7356882ed01d2c7bc05dfca07381399af6c13e8e81e1e6ad6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.17

Security for qav 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page