sportmonks-py
Python Package for SportsMonks API
Full details on the SportMonks API can be found here
Football
V3 of the SportMonks API is split into defined Entities, as listed below
- Fixture
- League, Season, Schedule, Stage and Round
- Team, Player, Squad, Coach and Referee
- Statistic
- Expected
- Standing and Topscorer
- Odd and Prediction
- Other
SportMonks imposes rate limits per entity (3000 per hour), hence this package separates endpoints by entity. More information on entity rate limits can be viewed in the SportMonks documentation here.
For brevity and ease of use, entities have been mapped to a shortened keyword as below
| Entity Name | API Endpoint |
|---|---|
| Fixture | fixture |
| League, Season, Schedule, Stage and Round | leagues |
| Team, Player, Squad, Coach and Referee | teams |
| Statistic | statistics |
| Expected | expected |
| Standing and Topscorer | standings |
| Odd and Prediction | odds |
| Other | misc |
Documentation
Full documentation can be found at ReadTheDocs
Installation
pip install sportmonks-py
Examples
See the examples directory for more examples on how to use the package.
Returns
Given the size of the potential responses all calls return a generator object. This allows for the handling of large responses without the need to load the entire response into memory. The generator object can be iterated over to get the full response. The generators are defined depending on whether the call was asynchronous or not:
StdResponse = Iterable[Iterator[dict[str, Any]]]
A standard (non-async) response is an iterable of iterators of dictionaries. The dictionaries contain the response data. The response data is paginated, so the iterators are used to iterate over the pages of data.
AsyncResponse = AsyncIterator[Iterator[dict[str, Any]]]
An async response is an async iterable of dictionaries. The dictionaries contain the response data. The response data is paginated, so the async iterable is used to iterate over the pages of data.
See the examples below for more information on how to use the response objects.
Metadata
Release files for sportmonks-py 0.0.8
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 |
|---|---|---|---|---|
| sportmonks_py-0.0.8.tar.gz | 94.9 kB | Without provenance | Details for sportmonks_py-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sportmonks_py-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for sportmonks_py-0.0.8-py3-none-any.whl |
Total release size: 115.4 kB
Release files / sportmonks_py-0.0.8.tar.gz
| Download URL | sportmonks_py-0.0.8.tar.gz |
|---|---|
| Size | 94.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1daf1e037337fa10931a75d7adf950e4aaa277f16fff7a83ec4d4d11e0c80d70
|
|
BLAKE2b-256 checksum How to use checksums |
2e8a40ebfc71e62dc976cb53dcc56fa5ff35c8a0bb8fc1118bc672f6af49347f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / sportmonks_py-0.0.8-py3-none-any.whl
| Download URL | sportmonks_py-0.0.8-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e34238f1dade0b729314065c022f6cf935636d70254ca388a7fb27af8d114c24
|
|
BLAKE2b-256 checksum How to use checksums |
7760bea5d55d0f7536cb177983dc4652093783f054876717808e595b4c246221
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for sportmonks-py 0.0.8
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.