A python library to interact with UTR API
Project description
UTR
Universal Tennis Rating python library
Description
Installation
To install the latest version:
pip install utr
To install the library from GitHub:
pip install git+https://github.com/userlerueda/utr.git
Usage Guide
Using via CLI
Getting Player Information
$ utr player 909618
{
"eventViewModel": null,
"id": "909618",
"firstName": "German Andres",
"lastName": "Castillo Contreras",
"gender": "M",
"city": "Bogot\u00e1",
"state": "Bogota",
"hasYobOnly": false,
"singlesUtr": 0.0,
"singlesUtrDisplay": "0.xx",
"ratingStatusSingles": "Unrated",
"ratingProgressSingles": "0",
"ratingStatusImgageSingles": null,
"doublesUtr": 0.0,
"doublesUtrDisplay": "0.xx",
"ratingStatusDoubles": "Unrated",
"ratingProgressDoubles": "0",
"ratingStatusImgageDoubles": null,
"importSource": null,
"nationality": "COL",
"myUtrSingles": 0.0,
"myUtrSinglesDisplay": "0.xx",
"myUtrStatusSingles": "Unrated",
"myUtrDoubles": 0.0,
"myUtrDoublesDisplay": "0.xx",
"myUtrStatusDoubles": "Unrated",
"finalPbr": null,
"pbrRatingDisplay": null,
"memberId": 91765,
"utrRange": {
"minUtr": 5.25,
"maxUtr": 7.25,
"lastReliableRating": null,
"lastReliableRatingDate": null,
"minUtrDisplay": "5.xx",
"maxUtrDisplay": "7.xx",
"lastReliableRatingDisplay": "0.xx",
"pbrRange": null
},
"historicRatings": {
"historicSinglesRating": null,
"historicSinglesRatingReliability": null,
"historicSinglesRatingDate": null,
"historicDoublesRating": null,
"historicDoublesRatingReliability": null,
"historicDoublesRatingDate": null,
"historicSinglesRatingDisplay": "0.xx",
"historicDoublesRatingDisplay": "0.xx"
}
}
Getting Results for a Club
$ utr results 12610
+--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------+
| event | event_id | result_id | date | winner | winner_id | loser | loser_id | sourceType | excludeFromRating | score |
|--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------|
| Club Matches | | 34601132 | 2022-09-24T21:00:00 | Pablo LEMUS | 2581102 | Jorge González | 3525582 | myutr | False | 6-2 6-2 |
...
...
...
| Club Matches | | 34590366 | 2022-02-19T19:00:00 | Ana María Peláez | 3541392 | Pablo Rico | 3178932 | myutr | False | 2-6 6-2 10-7 |
+--------------+------------+-------------+---------------------+----------------------------------+-------------+--------------------------------+------------+--------------+---------------------+------------------+
Using as a Library
Credits
Credits to https://blakestevenson.github.io/utr-api-docs/ for trying to document the API.
License
This project is covered under the terms described in LICENSE.
Contributing
See the Contributing if you want to contribute.
Changes
See the Changelog for a full list of changes.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utr-1.1.1.tar.gz.
File metadata
- Download URL: utr-1.1.1.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42cc76c554fb4f70fe7d41326a04ba43bec50b716279fb7d370029e3c4608808
|
|
| MD5 |
dba6d97aa1da9fd6706d9d95a9b4ac8d
|
|
| BLAKE2b-256 |
05d63735e7038698f8ae9527aab4025839e618c3c1d1d84818bbd90708f01428
|
File details
Details for the file utr-1.1.1-py3-none-any.whl.
File metadata
- Download URL: utr-1.1.1-py3-none-any.whl
- Upload date:
- Size: 37.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f19dbd4fecf0fe200f6d89daf9278c8a6b20052ace62b7f3ea2f5d4a6ee2215
|
|
| MD5 |
90bd2eda1907b1b098e08ab9d4cb5b6f
|
|
| BLAKE2b-256 |
e5cae34598d7cb10b937b70f66afd1a2a9b76d1ada932dd56cbf751ecfcdaef0
|