A lightweight Python library for The Fantrax API.
Project description
Welcome to Fantrax Documentation!
Overview
Unofficial Python bindings for the Fantrax API. The goal is to make interaction with the API as easy as possible while emulating the endpoints as much as possible
Installation & Documentation
pip install fantraxapi
Documentation can be found at Read the Docs.
Using the API
Getting a FantraxAPI Instance
To connect to the Fantrax API you use the FantraxAPI object.
from fantraxapi import FantraxAPI
league_id = "96igs4677sgjk7ol"
api = FantraxAPI(league_id)
import fantraxapi
api = fantraxapi.FantraxAPI()
Usage Examples
Example: Get the Scores for the Season.
from fantraxapi import FantraxAPI
league_id = "96igs4677sgjk7ol"
api = FantraxAPI(league_id)
for _, scoring_period in api.scoring_periods().items():
print("")
print(scoring_period)
Usage & Contributions
Source is available on the Github Project Page.
Contributors to FantraxAPI own their own contributions and may distribute that code under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fantraxapi-0.2.5.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for fantraxapi-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a7386d55926f5169da1102a77126e26057b82072ed1664b6cb6313b1eed219 |
|
MD5 | fda3477dc1615ac311343f20a76a6ce4 |
|
BLAKE2b-256 | 493791e6e2bc120ed074efe7eb77fb6bf6adb5531ca250b76a68698b7fcbfab9 |