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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

athlib-0.9.8-py2.py3-none-any.whl (188.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file athlib-0.9.8-py2.py3-none-any.whl.

File metadata

  • Download URL: athlib-0.9.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 188.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for athlib-0.9.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 06e3d8b94a3ffbc64db1243c638a83cb1a0e982f9f14758254c0547c8cc54707
MD5 96890043615471b77ab6c8255d4f5d59
BLAKE2b-256 0606bc22276807abe2e30c7aa66cf5ea83ec5eb2e1cf440de8a80872bfc449ca

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.8 This release

1 file

0.9.7

1 file

0.9.5

1 file

0.9.4

1 file

0.9.3

1 file

0.9.2

1 file

0.9.1

1 file

0.9.0

1 file

0.8.9

1 file

0.8.8

1 file

0.8.7

1 file

0.8.6

1 file

0.8.5

1 file

0.8.4

1 file

0.8.3

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

0.7.10

2 files

0.7.9

1 file

0.7.8

1 file

0.7.7

1 file

0.7.6

1 file

0.7.5

1 file

0.7.4

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.11

1 file

0.6.10

1 file

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.0

1 file

0.5.15

1 file

0.5.14

1 file

0.5.13

1 file

0.5.12

1 file

0.5.11

1 file

0.5.10

1 file

0.5.9

1 file

0.5.8

1 file

0.5.7

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.9

1 file

0.4.8

1 file

0.4.7

1 file

0.4.6

1 file

0.4.5

1 file

0.4.4

1 file

0.4.3

1 file

0.4.2

1 file

0.4.0

1 file

0.3.11

1 file

0.3.10

1 file

0.3.9

1 file

0.3.8

1 file

0.3.7

2 files

0.3.6

2 files

0.3.5

1 file

0.3.4

1 file

0.3.3

2 files

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.9

1 file

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

2 files

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.9

1 file

0.0.8

1 file

0.0.1

2 files

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