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
Built Distribution
File details
Details for the file statsbombpy_local-0.1.1.tar.gz
.
File metadata
- Download URL: statsbombpy_local-0.1.1.tar.gz
- Upload date:
- Size: 3.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c5d0d31d0b93e54de9cc0d0a3bb5aa89f63f8798e78f1c8fe7d9fce0de8bf6 |
|
MD5 | af88bd36ab7cb997849bdc6278d1ff52 |
|
BLAKE2b-256 | 4fa60f350f9de7c6462c9beeacb47b68649c304bbbb40cc9871a75f18556c2d9 |
File details
Details for the file statsbombpy_local-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: statsbombpy_local-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d628cd08d111e3ed2feda0cfbd95dee2763615fed89cd12774442f99ccca34e8 |
|
MD5 | 6a2249dd042ddf6e123cd167a639fab5 |
|
BLAKE2b-256 | 503763af424d3d6f8c0c05265f90865d3d5303f5e42762d6591b4cdfcfaf6517 |