Skip to main content

Quizbowl library and Python wrapper for the qbreader API

Project description

qbreader/python-module

pypi downloads python build docs


Introduction

qbreader is a Python wrapper to the qbreader API as well as a general quizbowl library. It provides both asynchronous and synchronous interfaces to the API along with functionality for representing questions.

>>> from qbreader import Sync as qbr # synchronous interface
>>> tossup = qbr.random_tossup()[0]
>>> tossup.question
'Tim Peters wrote 19 “guiding principles” of this programming language, which include the maxim “Complex is better than complicated.” The “pandas” library was written for this language. Unicode string values had to be defined with a “u” in version 2 of this language. Libraries in this language include Tkinter, Tensorflow, (*) NumPy (“numb pie”) and SciPy (“sigh pie”). The framework Django was written in this language. This language uses “duck typing.” Variables in this language are often named “spam” and “eggs.” Guido van Rossum invented, for 10 points, what programming language named for a British comedy troupe?'
>>> tossup.answer
'Python'
>>> tossup.category
<Category.SCIENCE: 'Science'>
>>> tossup.subcategory
<Subcategory.OTHER_SCIENCE: 'Other Science'>
>>> tossup.difficulty
<Difficulty.HS_HARD: '4'>
>>> tossup.set
'2022 Prison Bowl'
>>> (tossup.packet_number, tossup.question_number)
(4, 20)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbreader-1.0.0rc1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbreader-1.0.0rc1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file qbreader-1.0.0rc1.tar.gz.

File metadata

  • Download URL: qbreader-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/6.12.8-arch1-1

File hashes

Hashes for qbreader-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 e00415475046d5cd9b8131fdc6a7c07f4c59ed192ba64fcd637d6444785b2b9b
MD5 df0401a0b8fcb2d81e1efa924c302a43
BLAKE2b-256 e5f995b202eadc562075dd95b9f80ffe3692bc1f29d6019025edf31f7253249b

See more details on using hashes here.

File details

Details for the file qbreader-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: qbreader-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/6.12.8-arch1-1

File hashes

Hashes for qbreader-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 781467424cceb424c5eb2a9a0a8034b17e0771118df640dcf40821c853748f09
MD5 deb5f68c32505c5b38e870faae7e7452
BLAKE2b-256 3a00dc10de1dbb52afdea89c0a51c1240f1b76b863b70aa3dbeb5b3067b86401

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page