Skip to main content

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)

Source distribution for sportmonks-py 0.0.8
File Size Uploaded
sportmonks_py-0.0.8.tar.gz 94.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sportmonks-py 0.0.8
File Interpreter ABI Platform
sportmonks_py-0.0.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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