Utilities for track and field athletics
Project description
athlib
Athlib is a library of functions, data and schema for Athletics (i.e. Track and Field)
We're building lots of sites for the sport of athletics. When we find something common and testable, we aim to place it here. This library should contain
- static reference data, provided it's not huge nor available elsewhere
- Python code implementing functions of general interest
- Javascript code implementing functions of general interest
It is NOT intended to contain
- web applications, view code or database code.
- competition management software
Things we hope to put in here:
- standard event codes and their English names
- UKA and other age group calculators
- WMA age grade calculations
- utilities for parsing and formatting performances as commonly input in athletics
- standardised scoring functions
- sample JSON files in line with our schemas
- schemas to validate
What follows below is intended to help people working on athlib.
Python documentation
We require a modern python>=3.8.0 some functions already have typing information and it will be applied later to others.
Installation
pip install athlib
Python development
For Python developers, please install the extra development requirements with
pip install -r dev_requirements.txt
Run tests with...
python setup.py test
Check style with
pycodestyle --exclude=bin,lib,include,sampledata
You can also copy the file pre-commit.sample
to .git/hooks/pre-commit
, and the two above checks will be run before any commit, and block it if they return issues.
Javascript documentation & development
see the documentation in folder js
Documentation itself
The docs are written using reStructured Text, the Python standard. There is an environment
in docs
.
cd docs
make html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file athlib-0.7.10.tar.gz
.
File metadata
- Download URL: athlib-0.7.10.tar.gz
- Upload date:
- Size: 159.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d95b09b9f822a0e9c5385dde99d4e474ff2d03971c99b7804f3fe155d0e74215 |
|
MD5 | 5891e9eb1286f6027426419327fef8d3 |
|
BLAKE2b-256 | f261a2b786b9e145a3e0704066d8d83cc83da82caf374a1722c58906c076b688 |
File details
Details for the file athlib-0.7.10-py2.py3-none-any.whl
.
File metadata
- Download URL: athlib-0.7.10-py2.py3-none-any.whl
- Upload date:
- Size: 136.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b78949adb6c5823af68a0ad12f474db73e15b318a09979e0356907371c40c5a |
|
MD5 | e86c6d9ef8831368022f11769b99486f |
|
BLAKE2b-256 | 4755dd5f0aa9af51c6d6150a67f2baa0dd7b4726e98ab9c2f801ac89dfd47114 |