Skip to main content

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

Metadata

Release files for athlib 0.9.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for athlib 0.9.9
File Interpreter ABI Platform Actions
athlib-0.9.9-py2.py3-none-any.whl Python 3, Python 2 none any Details for athlib-0.9.9-py2.py3-none-any.whl

Release files / athlib-0.9.9-py2.py3-none-any.whl

Download URL athlib-0.9.9-py2.py3-none-any.whl
Size 188.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
044ea21fb009b24bea4da03464227c849b8cb8ada41f3eee147c5ccdca12bb7f
BLAKE2b-256 checksum
How to use checksums
24516ec4b58550710b6b334113edb8f0630e6c982906d76bc6b5e221c7fcf882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for athlib 0.9.9

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.

Release history Release notifications | RSS feed

This release

0.9.9 This release

1 release file No provenance

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