Skip to main content

Goalytics is a modern Python library designed for advanced football analytics, focused on calculating and predicting key performance metrics like xG (Expected Goals), xA (Expected Assists), and xT (Expected Threat).

Project description

goalytics

Goalytics is a modern Python library designed for advanced football analytics, focused on calculating and predicting key performance metrics like xG (Expected Goals), xA (Expected Assists), and xT (Expected Threat).

  • football
    • xG
    • xA
    • xT
  • futsal
    • xG
    • xA
    • xT

Example

pip install goalytics
from goalytics.football.xG import ExpectedGoals

shots = [
    [90, 34],
    [80, 30],
    [60, 40],
]

xg_model = ExpectedGoals()

match_xg = xg_model.calculate_match_xg(shots)
print(f"Total xG for the match: {match_xg:.2f}")

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

goalytics-0.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goalytics-0.0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file goalytics-0.0.2.tar.gz.

File metadata

  • Download URL: goalytics-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for goalytics-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c81d9de51ca8ef093fe87c3d99444a622fa37ffadd25fc3d1e15979ef540841b
MD5 e501ecfd748fcc68cf292b40de1a7434
BLAKE2b-256 257c161712afd21ce9fa0ae687386e458416e070f0acc413a02d03245043ea82

See more details on using hashes here.

File details

Details for the file goalytics-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: goalytics-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for goalytics-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e14d637bcde6b09de52f876600851ae511e268dff72937c72fca3cad60db7ef
MD5 04af35a3bcaf44f63457f6be15f5d843
BLAKE2b-256 21889a4b7fbd5fd7e3f1dca60b74533208aa228e7bbbe4c29bb39c4e682a4e60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page