Skip to main content

pyquizAPI

QuizAPI.io wrapper for Python 3.8+

Installation

You can install from the PyPI repository: Package on PyPI

pip install pyquizAPI

How to Use

To get an API key go to here and create an account

from pyquizAPI import QuizClient

# creates client object
client = QuizClient(api_key)

# get questions
questions = client.get_questions()

# returns list of question objects
# sample output
{'id': 197, 
'question': 'What is the prefix of WordPress tables by default?', 
'description': None, 
'answers': {
    'answer_a': 'wp_ default', 
    'answer_b': 'wp_', 
    'answer_c': 'wp_ in', 
    'answer_d': '_wp_', 
    'answer_e': None, 
    'answer_f': None
    }, 
'multiple_correct_answers': 'false', 
'correct_answers': {
    'answer_a_correct': 'false', 
    'answer_b_correct': 'true', 
    'answer_c_correct': 'false', 
    'answer_d_correct': 'false', 
    'answer_e_correct': 'false', 
    'answer_f_correct': 'false'
    }, 
'correct_answer': None, 
'explanation': None, 
'tip': None, 'tags': [{
    'name': 'WordPress'
    }], 
'category': 'CMS', 
'difficulty': 'Easy'}

Arguments

Argument Type Description
category string Get the questions for a specific category only
difficulty string Get the questions for a specific difficulty only
tags [string] Specify a list of tags that you want the questions to belong to
limit int Limit the number of questions returned

Parameter Reference

Creating and using custom configuration

client = QuizClient(api_key)

client.make_config(
    category='',
    difficulty='',
    tags=[''],
    limit=''
)

questions = client.get_questions(use_config=True)

Metadata

Release files for pyquizAPI 0.0.14

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

Source distribution (sdist)

Source distribution for pyquizAPI 0.0.14
File Size Uploaded Provenance
pyquizAPI-0.0.14.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyquizAPI 0.0.14
File Interpreter ABI Platform
pyquizAPI-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / pyquizAPI-0.0.14.tar.gz

Download URL pyquizAPI-0.0.14.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d552a56d8d8cc1dd57257e4c75361d2f6ac2aa928f5f47f327cd4c6597bececb
BLAKE2b-256 checksum
How to use checksums
745441bce846dde78ca1e881a30cda4e3ebf61215ed3bcfd5370858914bf0dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / pyquizAPI-0.0.14-py3-none-any.whl

Download URL pyquizAPI-0.0.14-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d6530dd6df57dfd8f1d2b44f46989b34b39e5cbd210910d70ed2e697458e08d
BLAKE2b-256 checksum
How to use checksums
4556999fcfcb848372b7357d2f99424b11a25ff625c0d246de8be8029226bb51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for pyquizAPI 0.0.14

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.

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