A parser and dumper for the fide approved tournament report format: trf
Project description
TRF
A parser and dumper for the fide approved tournament report format: trf The trf file format is used by the Fide to report tournament results and calculate elo ratings based on them.
- Specification: https://www.fide.com/FIDE/handbook/C04Annex2_TRF16.pdf
- Example: http://ratings.fide.com/download/example1.txt
This project is a working reimplementation of https://github.com/erral/fidetournament for python3.8 and aims to be the goto trf parser on pypi.
Simple usage exmaple
import trf
with open('example1.trf') as f:
tour = trf.load(f)
print(tour.name)
for player in tour.players:
print(player.name, '-', player.points)
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
trf-1.1.1.tar.gz
(34.9 kB
view hashes)
Built Distribution
trf-1.1.1-py3-none-any.whl
(17.2 kB
view hashes)