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)

Note

  • "competitions", "matches", "lineups", "events", "frames", these five functions use local open-data.
  • The rest uses the original functions of statsbombpy, which requires network requests.

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.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

statsbombpy_local-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: statsbombpy_local-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for statsbombpy_local-0.1.2.tar.gz
Algorithm Hash digest
SHA256 859b75026f6df84c38f4489fbf5702c61094232804a277cdd9052e0da77cd3a0
MD5 1a48478bf62a817ef5ef6538296d4de1
BLAKE2b-256 c582bdd21537b2c729ca8469d0fee4ca32b8df0f5f75842b2049cd5e681905e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsbombpy_local-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for statsbombpy_local-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b687507053912e03b703e06ee5d9403927a868068de2bb84c074766521b3ad7c
MD5 4b9d41db0e6b6fbe6cbab7c3ded60055
BLAKE2b-256 138eb3665b4f37c87e65b77156f8c2fef4b11a176fc8c42eee7d6317796c9e45

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