Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
A collection of wrappers over football (soccer) data from various websites / APIs. You get: Pandas dataframes with sensible, matching column names and identifiers across datasets. Data is downloaded when needed and cached locally. Example Jupyter Notebooks are in the Github repo.
.. image:: https://img.shields.io/pypi/v/footballdata.svg :target: https://pypi.python.org/pypi/footballdata :alt: Latest PyPI version
.. image:: https://travis-ci.org/skagr/footballdata.png :target: https://travis-ci.org/skagr/footballdata :alt: Latest Travis CI build status
A collection of wrappers over football [*]_ data from various websites / APIs. You get: Pandas dataframes with sensible, matching column names and identifiers across datasets. Data is downloaded when needed and cached locally. Example Jupyter Notebooks are in the Github repo.
.. [*] Soccer, if you're a heathen
fivethirtyeight.com
(https://projects.fivethirtyeight.com/soccer-predictions)
Season 2016-17 predictions and results for the top European and American leagues.
football-data.co.uk
(http://www.football-data.co.uk/)
Historical results, betting odds and match statistics for English, Scottish, German, Italian, Spanish, French, Dutch, Belgian, Portuguese, Turkish and Greek leagues, including a number of lower divisions. Level of detail depends on league.
clubelo.com
(http://clubelo.com)
First team relative strengths, for all (?) European leagues. Recalculated after every round, includes history.
Roadmap:
--------
Add player stats, transfers, injuries and suspensions.
Installation
------------
.. code:: bash
$ pip install footballdata
Dependencies
Numpy <http://www.numpy.org/>
_Pandas <http://pandas.pydata.org/>
_Requests <http://docs.python-requests.org/en/master/>
_Unidecode <https://pypi.python.org/pypi/Unidecode>
_.. code:: python
import footballdata as foo
# Create class instances
five38 = foo.FiveThirtyEight()
elo = foo.ClubElo()
mhist = foo.MatchHistory('ENG-Premier League', '2016-17')
# Create dataframes
matches = five38.read_games()
forecasts = five38.forecasts()
current_elo = elo.read_by_date()
team_elo_history = elo.read_team_history('Barcelona')
epl_2016 = mhist.read_games()
See the Jupyter Notebooks here for more elaborate examples: https://github.com/skagr/footballdata/tree/master/notebooks
Tested against Python 2.7 and 3.4-3.6
MIT
FAQs
A collection of wrappers over football (soccer) data from various websites / APIs. You get: Pandas dataframes with sensible, matching column names and identifiers across datasets. Data is downloaded when needed and cached locally. Example Jupyter Notebooks are in the Github repo.
We found that footballdata demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.