Euro 2020 API ⚽️
About the API | How to use | Reference | Documentation | Github
About the API
Working with data from Euro 2020. Get insightful charts and informations from player and team performance during the competition using statsbomb and fbref data.
How to use
Libraries needed
pip install pandas
pip install time
pip install matplolib.pyplot
pip install seaborn
pip install numpy
pip install sklearn
pip install math
pip install mplsoccer
pip install soccerpllots
Installing the API
pip install Euro2020_API
Importing the API
from Euro2020_API import Stats
Methods
| Method: | What the method does: |
|---|---|
SimilarOffense(player_name) |
Returns a dataset with similar players(Forwards and Midfileders) related to the one you choose by a KMeans model. |
SimlarDefense(player_name) |
Returns a dataset with similar players(Defenders and Midfileders) related to the one you choose by a KMeans model. |
RadarChartOff(player1, player2) |
Returns a Radar chart comparing two offensive players performance and a scatterplot that shows their grade and salary. |
RadarChartDef(player1, player2) |
Returns a Radar chart comparing two defensive players performance and a scatterplot that shows their grade and salary. |
RadarChartGK(player1, player2) |
Returns a Radar chart comparing two Goalkeepers performance and a scatterplot that shows their grade and salary. |
Scorers() |
Returns a dataframe with the players who had high number of goals. |
Passers() |
Returns a dataframe with the players who had high number of assists and passing percentage. |
get_player(player_name) |
Returns a dataframe with every Fbref info abouth them during the Euro. |
Parameters:
Github Repository
Repository with the documentation and examples of how to use the package.
- https://github.com/AnabeatrizMacedo241/Euro2020_API
Reference
- https://fbref.com
- https://github.com/statsbomb
Metadata
Release files for Euro2020-API 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Euro2020_API-0.0.5.tar.gz | 5.3 kB | Without provenance | Details for Euro2020_API-0.0.5.tar.gz |
Release files / Euro2020_API-0.0.5.tar.gz
| Download URL | Euro2020_API-0.0.5.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca3d9a52276aef04a8f12b412b84a282284506be7ec7c34c422de1cd4203b882
|
|
BLAKE2b-256 checksum How to use checksums |
ee07393b354c593646caf433f26fdaf9dd053a1d25b96d4201e668b265ae84fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for Euro2020-API 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.