horsetalk

For horse racing enthusiasts, a series of classes and functions to help you parse and structure horse racing data. Most of the classes are parsers which automatically take a string and create an object out of it.

For example, with the current year being 2024…

>>> from horsetalk import Horse
>>> h = Horse("Dobbin (GB) 3")
>>> h.name
'Dobbin'
>>> h.country
'GB'
>>> h.age
<HorseAge: 3 (unknown dob)>
>>> str(h.age)
3

For more information, see API

Indices and tables