Skip to main content

Standardizing soccer tracking- and event data

Project description

kloppy: standardizing soccer tracking and event data

klop·pen (klopte, heeft geklopt) - juist zijn; overeenkomen, uitkomen met: dat klopt, dat kan kloppen is juist; dat klopt als een zwerende vinger dat is helemaal juist

PyPI Latest Release Downloads Powered by PySport

What is it?

Each vendor of soccer data uses its own unique format to describe the course of a game. Hence, software written to analyze this data has to be tailored to a specific vendor and cannot be used without modifications to analyze data from other vendors. Kloppy is a Python package that addresses the challenges posed by the variety of data formats and aims to be the fundamental building block for processing soccer tracking and event data. It provides (de)serializers, standardized data models, filters, and transformers which make working with tracking and event data from different vendors a breeze.

Main features

Here are just a few of the things that kloppy does well:

Loading data

  • Load public datasets to get started right away
  • Understandable standardized data models for tracking and event data
  • Out-of-the-box (de)serializing tracking and event data from different vendors into standardized models and vice versa

Processing data

  • Flexibly transform a dataset's pitch dimensions from one format to another (e.g., from OPTA's 100x100 to TRACAB meters)
  • Transform the orientation of a dataset (e.g., from TRACAB fixed orientation to "Home Team" orientation)

Pattern matching

  • Search for complex patterns in event data
  • Use kloppy-query to export fragments to XML file

Where to get it

The source code is currently hosted on GitHub at: https://github.com/PySport/kloppy.

Installers for the latest released version are available at the Python package index.

pip install kloppy

Documentation

The official documentation is hosted on pysport.org: https://kloppy.pysport.org.

Contributing to kloppy

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.

An overview on how to contribute can be found in the contributing guide.

If you are simply looking to start working with the kloppy codebase, navigate to the GitHub "issues" tab and start looking through interesting issues.

Current contributors

Made with contrib.rocks.

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

kloppy-3.7.0.tar.gz (97.5 kB view details)

Uploaded Source

Built Distribution

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

kloppy-3.7.0-py3-none-any.whl (144.1 kB view details)

Uploaded Python 3

File details

Details for the file kloppy-3.7.0.tar.gz.

File metadata

  • Download URL: kloppy-3.7.0.tar.gz
  • Upload date:
  • Size: 97.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for kloppy-3.7.0.tar.gz
Algorithm Hash digest
SHA256 ae00fcf77d871e51b9fdf197276c54a974bfdf8646ac4a47b97a8badf32f6db3
MD5 4363e2ed7a335d9f9939dde98fe99fa1
BLAKE2b-256 836e0fba68bce19454941be55d1fbfc0ca97ba843132e9547c8640b29a930a85

See more details on using hashes here.

File details

Details for the file kloppy-3.7.0-py3-none-any.whl.

File metadata

  • Download URL: kloppy-3.7.0-py3-none-any.whl
  • Upload date:
  • Size: 144.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for kloppy-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ec4a3bb3a2e5322bf7c7b06391f45a37844e6e49deef42a02a810756e811d83
MD5 07a7141ec7750255d5ce5b88ee50376e
BLAKE2b-256 91f7ca8673b1f9b87edbb4808d96537c41c8c14d2d78003b4e0fe4895a2b57bb

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