Skip to main content

Getting data out of FPL API made easier

Project description

FPLDATA

Get processed and cleaner data from the FPL API!

Installation

Run the following code to install:

pip install fpldata

Usage

Get the names of team in EPL. Returns a list

from fpldata import TeamData

t1 = TeamData()
print(t1.list_team_name())

Get the EPL table. Returns a pandas DataFrame

from fpldata import TeamData
t1 = TeamData()
print(t1.get_table())

Compares two teams based on their Strengths scores. Input should be the short name of the team. Returns a pandas DataFrame

from fpldata import TeamData
t1 = TeamData()
data = t1.team_compare('ARS','LIV')
print(data)

Get player list with their id. Returns dictionary of players with ids as key and name as value

from fpldata import PlayerData
p1 = PlayerData()
print(p1.player_list())

Search player by name. Returns dictionary of player with ids as key and name as value

from fpldata import PlayerData
p1 = PlayerData()
data = p1.search_player('David')
print(data)

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

fpldata-0.0.4.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file fpldata-0.0.4.tar.gz.

File metadata

  • Download URL: fpldata-0.0.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for fpldata-0.0.4.tar.gz
Algorithm Hash digest
SHA256 980bc57eb90d4442ff6fec1e9c3683890c46f00cce95f8e2bcf25527e78280e4
MD5 88552fe8f0d3612f9e14f8f366e0a37a
BLAKE2b-256 df7f716058883692c462471d3249d3edebee444ac52fadcee1f65a8afd52b34f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page