Skip to main content

myfpl - A command line interface for Fantasy Premier League

PythonShellLicense

A command line interface that allows users to retrieve information about their fpl teams, leagues and fixtures in single commands.

Currently the core commands are:

Live leagues

live

  • See other people's teams and your league standings before fpl updates. All standings and teams are based on real time scores, which are adjusted for bonus and substitutions. Output also lets you view every players captaincy choice and transfer hits. It can be used on leagues of any size, inclduing the overall league.

Fixture

fix

  • Get real time scores from PL fixtures, including goals, assits, cards and bonus.

Gameweek

gw

  • See how your gameweek is going by viewing your real time score, adjusted for bonus and substitutions.

Team

team

  • Team command is intended for users who want to plan for future gameweeks. It will correctly display the team you have selected for next gameweek, transfers made and chips available.
  • You will be prompted for your team id, fpl email and password, the first time you use this command, as your current team line up is private. Your email and team id will be cached locally, but never your password. The next time around you will only be promtped for your password. You can always clear the cache by running myfpl -c.

Note

Information about all commands can always be found by running:

$ myfpl --help

Prerequesits

You have python3 installed.

  • If you don't have python3, you can use this guide this guide.
  • If your not sure if you do, you can run the following on the command line:
$ python3 --version
Python 3.8.1

How to install

Using pip simply run:

$ pip3 install myfpl
$ myfpl <your args go here>

Note:

  • Do not use sudo pip3 install myfpl, as this will leads to issues with file permissions for config.json. And requires you to run sudo myfpl for every command.

If you want to clone the project do the following.

$ cd ~
$ git clone https://github.com/trozler/myfpl.git
$ cd myfpl
$ pip3 install -r requirements.txt
$ python -m myfpl <args>

Usage

Users are required to know their unique fpl entry id. The id can be retreived on the fpl site by clicking "points"and looking at url.

Example: https://fantasy.premierleague.com/entry/{team-id}/history

Configuration options

  • -g, --gameweek
    • See how your gameweek is going before fpl updates, by viewing your real time score, adjusted for bonus and substitutions.
  • -t, --team
    • Plan for future gameweeks by viewing transfers made, chips avialable, currently selected team and more. Since your team line-up is private, your Fpl password and email are required. Your email and team id will be cached locally for future use, but never your password. You can clear the cache with -c command.
  • -l, --live
    • Check out your league standings before fpl updates. All standings are based on real time scores, which are adjusted for bonus and substitutions.
  • -f, --fixture
    • Get real time scores from PL fixtures.
  • -c, --clear
    • Remove your email and team id stored in config.json.
  • -h, --help
    • Show help for all commands.

Contribution

If you spot bugs or have features that you'd really like to see in myfpl, please check out the contributing page.

Metadata

Release files for myfpl 2.4.2

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

Source distribution (sdist)

Source distribution for myfpl 2.4.2
File Size Uploaded
myfpl-2.4.2.tar.gz 16.0 kB Details

Release files / myfpl-2.4.2.tar.gz

Download URL myfpl-2.4.2.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab836a449ab50928447cfd7f5ce6eea7fa66391562034fdc723a697e8b1d1646
BLAKE2b-256 checksum
How to use checksums
c03788341367a3fa2457ea65e67f27a07c01330ae8ec6528b08cea3696c1523e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

2.4.2 This release

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3

1 release file

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