Benutzer-Werkzeuge

Webseiten-Werkzeuge


jupyter:notebooks:biathlonresults

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
jupyter:notebooks:biathlonresults [2023/01/30 14:58] rsijupyter:notebooks:biathlonresults [2023/01/30 15:02] (aktuell) rsi
Zeile 1: Zeile 1:
 ====== IBU Biathlon Results API Wrapper ====== ====== IBU Biathlon Results API Wrapper ======
- 
- 
- 
 ==== Original API Wrapper ==== ==== Original API Wrapper ====
 +https://github.com/prtkv/biathlonresults
  
 +==== Wrapper Extensions ====
  
 +api.py
 +<code>
 +...
 +def startlist(race_id):
 +    """
 +    Start list
 +    :param race_id: race identifier, get it by calling competitions(event_id)
 +    :return: list of races
 +    :rtype: dict
 +    """
 +    return _request("StartList", {"RaceId": race_id})
 +...    
 +</code>
  
-==== Wrapper Extensions ==== 
  
 +<nowiki>__init__.py</nowiki>
 +<code>
 +...
 +from .api import (
 +    cups,
 +    cup_results,
 +    athletes,
 +    cisbios,
 +    all_results,
 +    events,
 +    competitions,
 +    results,
 +    startlist,
 +    stats,
 +)
  
 +__all__ = [
 +    "cups",
 +    "cup_results",
 +    "athletes",
 +    "cisbios",
 +    "all_results",
 +    "events",
 +    "competitions",
 +    "results",
 +    "startlist",
 +    "stats",
 +]
 +...
 +</code>
  
 ==== Notebook ==== ==== Notebook ====
- 
 <code> <code>
 { {
jupyter/notebooks/biathlonresults.1675087117.txt.gz · Zuletzt geändert: von rsi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki