Skip to main content

Build Status Python Versions Downloads

fpl-cli

fpl-cli is a command line tool for Fantasy Premier League, written in Python. The tool gets its data from the official Fantasy Premier League API, and currently supports the following actions:

fpl                     Returns help menu
fpl configure           Set up team_id (required)
fpl points              Returns live points for a team
fpl leagues             Returns all leagues for a team entry
fpl league <id>         Returns confirmed scores for a league by id
fpl liveleague <id>     Returns live scores for a league by id
fpl entry               Returns information about a team entry
fpl players             Returns all players in the game, sorted by total score

Installing

fpl-cli has been tested with Python versions 2.7, 3.4, 3.5, 3.6 and 3.7 on Mac and Linux, and with 3.6 and 3.7 on Windows.

In a terminal window, verify that Python and pip is available:

python --version
pip --version

If no Python/pip version is found, download Python and pip before proceeding

pip install fplcli

Using fpl-cli

Configure fpl-cli

Start using fpl-cli by telling it your team_id. You can find your team_id by going to the Points tab at https://fantasy.premierleague.com and find the number in between team/ and event/ in the url.

fpl configure

Get help

Get an overview of the allowed actions by typing fpl or fpl --help

fpl help

Get current points total for team

The points total and player score is updated during games based on live score data, including provisional bonus points.

fpl points

Get all leagues the team is member of

Returns all leagues you participate in (Head 2 Head leagues not included yet)

fpl leagues

Get live league standings

Returns live league standings for a single league, where all teams score are updated in real time based on live score data. Shows live league rank, captain, gameweek score, chips played and transfer info

fpl liveleague

Get league standings

Returns confirmed league standings for a single league. You find the league_id in the leftmost Id column in the fpl leagues result

fpl league

Planned features

  • Include H2H leagues in leagues view
  • Actions that require authentication with the FPL API (Making transfers, prepare team for next Gameweek)
  • Player sorting/filtering and enriched player staticstics
  • Cache API calls to improve response times

Ideas for features or enhancements that you would like to see from fpl-cli are welcome. Please post an issue in the GitHub repository, or even better, check out the Contributing guidelines and submit a Pull Request with the suggested change.

Release files for fplcli 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fplcli 0.1.9
File Size Uploaded
fplcli-0.1.9.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fplcli 0.1.9
File Interpreter ABI Platform
fplcli-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / fplcli-0.1.9.tar.gz

Download URL fplcli-0.1.9.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8ee928a4dea66c6443d52d34516feedbc9c51cae11fe17e4247a158d95ef3786
BLAKE2b-256 checksum
How to use checksums
3bd06d282cddd23db1d16803878670853d7dd4d9782e13ff17b607345b912a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release files / fplcli-0.1.9-py3-none-any.whl

Download URL fplcli-0.1.9-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23db945ebdad689f8597f66d0feb703dee1a4e612154cd4b8b6c05947df3b57d
BLAKE2b-256 checksum
How to use checksums
8f3ca0d15ef5d3e6f5b1de926e064d70e31ddd61b561961244e9621848bbee3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page