Skip to main content

Library used to query data from copy of Wait Wait Stats Database.

Project description

NOTE: This version of the Wait Wait Stats Library contained in this repository is currently in its early stages of development and should not be considered stable or ready for use. There will be breaking changes made and significant amount of refactoring left to do as code is ported into this new library.

For the current version of the library, check out the libwwdtm repository.

Overview

This project provides a Python library that provides an interface to retrieve data from a copy of the Wait Wait Stats database.

Requirements

This version of the library is developed to use features that are included in Python 3.8; and, thus, is the minimum version of Python supported.

In addition to the Python version requirement, the library depends on a copy of the Wait Wait Stats Database that runs on MariaDB or MySQL.

Running Tests

Included in this repository are tests that are written for use with pytest. To run the tests, simply run: pytest from the root of the repository.

A performance testing script is also included in the repository named, perf_test.py that tests the core class methods. This script can be used to create a performance baseline and also used to track changes in performance between code changes or configuration changes.

Documentation

This project uses reStructuredText located in docstrings and individual files for its documentation and makes use of Sphinx to build an HTML (and other formats supported by Sphinx) version of documents. To build the documentation for this project, use venv, virtualenv or a similar tool of your choice to create a virtual environment under docs/ and install the required packages in docs/requirements.txt, including Sphinx and the Flask theme.

Once the required packages are installed, an HTML version of the documentation can be generated by running:

make html

An online version of the documentation is also available at docs.wwdt.me

Code of Conduct

This projects follows version 2.1 of the Contributor Convenant’s Code of Conduct. A copy of the Code of Conduct document is included in this repository.

License

This library is licensed under the terms of the Apache License 2.0.

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

wwdtm-2.0.0rc1.tar.gz (42.9 kB view hashes)

Uploaded Source

Built Distribution

wwdtm-2.0.0rc1-py3-none-any.whl (47.6 kB view hashes)

Uploaded Python 3

Supported by

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