Skip to main content

statsbombpy uses local open-data

Project description

statsbombpy-local

statsbombpy uses local open-data.

If you have open-data downloaded locally, you can use it.

Installation

pip install statsbombpy-local

Configuration

Write open-data path to .env or add environment variable: OPEN_DATA_REPO_PATH=your open-data repo path

Usage

from statsbombpy_local import sb

Same as statsbombpy

sb.competitions()
sb.matches(competition_id=2, season_id=44)
sb.lineups(match_id=3749068)["Arsenal"]
sb.events(match_id=3749068)
sb.frames(match_id=3788741)
sb.competition_events(country="Europe", division="UEFA Euro", season="2020")
sb.competition_frames(country="Europe", division="UEFA Euro", season="2020")

Note

  • "player_match_stats", "player_season_stats", "team_season_stats", have not been changed because they require credentials.

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

statsbombpy_local-0.2.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

statsbombpy_local-0.2.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file statsbombpy_local-0.2.1.tar.gz.

File metadata

  • Download URL: statsbombpy_local-0.2.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for statsbombpy_local-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1a136007d9862da94dd5844b9c2b9587d5bb270c6a85cba0232e699fd53724dc
MD5 3dbfb18306cc5d30b964f43e1a8cae2c
BLAKE2b-256 55a5fff297684c635fe361cc7a46424dd9292554492a6453b9897d9234db2f00

See more details on using hashes here.

File details

Details for the file statsbombpy_local-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: statsbombpy_local-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for statsbombpy_local-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75b7e263ced2408d5bcf4e4a45d2ccd701b6fae6b5e83dd218f6ef926804fef9
MD5 5bd687982122aa33aa6fdde14cc13a59
BLAKE2b-256 5efde72254b1ceabad47783cb2fe8ceadb9dc27fb384def58ca1697ddf539715

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