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.0rc2.tar.gz (12.4 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.0rc2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qbreader-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 12.4 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.0rc2.tar.gz
Algorithm Hash digest
SHA256 0937e3b756cfb9f7285ca562653d5df2a409d517c5854c14c8c6d5a16dde74f4
MD5 bd372bba8ac71683428eff7b51a32f33
BLAKE2b-256 79e0b7f3e52c9192521520d37888f1d2094a50f35b35b8738ec98624725fd418

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qbreader-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 4476a4f2650561d87f9cad3523bb88efbd85af6357de82ff9b345a53606a6e2a
MD5 b1ecbed14569ba30b0bfdec9c3ec702c
BLAKE2b-256 5543f5716ec75a6060b36a7e5ebb63c9ebfefc6ab05c1ead9e89bac4596a6b34

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