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 details)
Built Distribution
trf-1.1.1-py3-none-any.whl
(17.2 kB
view details)
File details
Details for the file trf-1.1.1.tar.gz
.
File metadata
- Download URL: trf-1.1.1.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8819692f4ce9c243b1f82a787a0eb8c94ac36b8fff87d1144b3dce30f0fb90c8 |
|
MD5 | 9b4bb896197941da1ff229d6fd566862 |
|
BLAKE2b-256 | a473f0d60cc945a4b0afe51ab83e241ae77f269714a22a3126aa0c3dcfc9cf29 |
File details
Details for the file trf-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: trf-1.1.1-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 191c48f8227ea2ae3c4d96a32dbf9b6bc97c3d9c3cd659e955d0d881589d777a |
|
MD5 | a4324246fc2c6c4a6fab8eab140600d2 |
|
BLAKE2b-256 | 2aa405d7d8776f09e9755f2aea24960de84c469c49f0e8db7ad59be5ec433e16 |