Pyfootballscoring
A utility package for managing a american football game, including scoring, down, distance and so on, Game Clock and game setup with team names and logos. Can be used for further implementation like livetickers or displaying scoreboards.
Getting Started
This package is developed with Python3 and was not tested with Python2, so there's no guarantee it will work under Python2.
Installation
The package can be installed by pip:
pip install footballscoring
This installs the only requirement, Apscheduler, with it.
Testing
Run unittests simply like this while in the main directory:
python -m unittest discover
Usage
For keeping track of the Score, Down etc. or the Game Clock, simply import the according class and instantiate it.
Game Clock Example
If you want to use the Game Clock, simply instantiate the GameClock object with the required quarter length in minutes. If you want to specify the interval in which the clock should be updated, you can specify this by specifying interval_ms in milliseconds.
from footballscoring.gameclock import GameClock
game_clock = GameClock(quarter_length=12, interval_ms=10)
Now you can simply start, stop, set or reset the clock by calling the according method.
game_clock.start()
game_clock.stop()
game_clock.reset_clock()
game_clock.set_clock(minutes=2, seconds=3)
While creating and running the game, the package will keep track of the current game status and its validity regarding range of the values.
Contributing
Feel free to suggest more tests or features in the Issue Section or put it as a pull request.
Metadata
Release files for footballscoring 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| footballscoring-0.2.tar.gz | 6.4 kB | Without provenance | Details for footballscoring-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| footballscoring-0.2-py3-none-any.whl | Python 3 | none | any | Details for footballscoring-0.2-py3-none-any.whl |
Total release size: 15.2 kB
Release files / footballscoring-0.2.tar.gz
| Download URL | footballscoring-0.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d93c33c9af478bc1d89208296eaec3856ca82b153574b5d9964bc9cc57dc1514
|
|
BLAKE2b-256 checksum How to use checksums |
e3f9fb3b878daaa1aef1e81dc67d3d4ec0e0c770f73e24fedd4299bc9ff635e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / footballscoring-0.2-py3-none-any.whl
| Download URL | footballscoring-0.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94d35861a28c42a47ebc638483bc6b2e9a6187033c89e0b52cae506970817533
|
|
BLAKE2b-256 checksum How to use checksums |
511515bb003af3b2c44777bfd621899844e2a5e29e4873ce194eeab3a4f67c3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for footballscoring 0.2
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.