Skip to main content

qwazzock

An app for hosting quizes remotely.

Installing

pip install qwazzock

Usage

Start an instance of the app using:

qwazzock

Create a route to localhost:5000 using a hostname included in the SSL certificate.

Instruct players to navigate to the site's root address (e.g. http://127.0.0.1:5000). They can then enter their name, team name and buzz when they know the answer. Note that players to be on the same team, their team names must match exactly (including case).

As a host, you can then navigate to the /host path (e.g. http://127.0.0.1:5000/host) in order to see who has buzzed first and to mark their answer. You can respond with the following:

  • pass can be used when no one wants to buzz in who still can, as they don't know the answer. It clears the hotseat if occupied (e.g if someone buzzed accidentally), and any locked out teams become unlocked.
  • right clears the hotseat, any locked out teams and awards the team a point.
  • wrong places the team who answered onto a "locked out" list, preventing them from buzzing in until the current question completed.

You can also use reset to wipe all data for the in progress game and start a new one.

Clicking on the team's button will lock out that team until the end of the round. This can be useful for managing elimitator rounds and the like.

Question Types

There are two "question types" you can select, standard or picture.

Standard

This is the default question type. It allows you to ask any question and decide if the answer is right or wrong.

Picture

When this quesiton type is selected, all players are presnted with a randomly selected image from the questions folder in the content directory (see below) as their buzzer image. You will be presented with the name of the image they are seeing.

The ordering of the images is random. Once you select pass, right or wrong, the next image in the list will be presented. This will continue until you change question type, or you run out of question images. If the latter occurs, the question type will automatically revery back to standard.

Should you not provide a content directory, the content directory does not contain a questions folder, or the questions folder is empty, then the question type will automatically revert back to standard.

Environment variables

Behaviour of the application can be tweaked by setting the following environment variables:

Name Options Default Description
QWAZZOCK_CONTENT_PATH A valid absolute path. Not set If set, additional content is loaded into qwazzock from this directory.
QWAZZOCK_LOG_LEVEL DEBUG, INFO, WARNING, ERROR INFO Log application events at this level and above.
QWAZZOCK_SOCKETIO_DEBUG_MODE Any Not set If set, access logs from socketio will be output.

Content Directory

For a more interactive experience, you can load custom content into a "content directory" and provide this to qwazzock using the QWAZZOCK_CONTENT_PATH environment variable.

Currently, the only supported custom content is images for use with the picture question type. These must be loaded into a questions folder within the content directory. The file name should be the answer as you wish it to appear to the host.

Development

Initialise development environment

make init

Standup a local dev server

make dev

The server will be accessible at https://127.0.0.1:5000.

Run all tests

make test

This includes:

  • unit tests (make unit_test).
  • static code analysis (make bandit).
  • dependency vulnerability analysis (make safety).

Build artefacts

make build

This includes:

  • pip wheel (make build_wheel).
  • docker image (make build_image).

Standup a local container

make run

Stop local containers

make stop

Release version

Tag the repository with the project version and publish the distributables to PyPI.

Local repo must be clean.

poetry config pypi-token.pypi ${your-pypi-token}
make release

Metadata

Release files for qwazzock 0.12.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 qwazzock 0.12.0
File Size Uploaded Provenance Actions
qwazzock-0.12.0.tar.gz 41.3 kB Without provenance Details for qwazzock-0.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 87.4 kB

Release files / qwazzock-0.12.0.tar.gz

Download URL qwazzock-0.12.0.tar.gz
Size 41.3 kB
Tags Source
SHA-256 checksum
How to use checksums
70266a10ba5b85558b41f9850728ea233af6923149c1df26e22708dfcd088e1d
BLAKE2b-256 checksum
How to use checksums
9df6fb7b41481f30da151749285de72e2b64530d308a2486d7c0f5b7857843fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-50-generic

Release files / qwazzock-0.12.0-py3-none-any.whl

Download URL qwazzock-0.12.0-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a817d40b55fc58afe4e04d2e32e4ce003e66864d356136ed86255311a2a49fa9
BLAKE2b-256 checksum
How to use checksums
1cd34a5219333dc409cc2472acdfbb847fff4f6ab8af15af21aec9148240932a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-50-generic

Security for qwazzock 0.12.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