Gaffers Guide SDK
Gaffers Guide SDK is a modular sports computer vision library for tracking, spatial mapping, and tactical analysis workflows. It is designed as a pip-installable Python SDK with lightweight base modules and optional heavy ML vision components.
Installation
Base install (Parsers & IO):
pip install gaffers-guide
Full ML install (YOLO/SAHI Vision):
pip install "gaffers-guide[vision]"
Quickstart & Usage
Spatial Mapping (No ML required):
import numpy as np
from gaffers_guide.spatial import HomographyEngine
corners_px = np.array(
[[120.0, 50.0], [1800.0, 45.0], [1900.0, 1030.0], [80.0, 1035.0]],
dtype=np.float64,
)
engine = HomographyEngine()
mapping = engine.fit(corners_px, frame_shape=(1080, 1920))
pitch_point = mapping.pixel_to_pitch((960.0, 540.0))
print(pitch_point.to_dict())
Tactical IO:
from pathlib import Path
from gaffers_guide.io import parse_tracking_json
tracking = parse_tracking_json(Path("tracking_data.json"))
print(tracking.keys())
The Full Engine:
from pathlib import Path
from gaffers_guide.pipeline import MatchAnalysisPipeline
from gaffers_guide.pipeline.config import PipelineConfig
pipeline = MatchAnalysisPipeline.from_profile("balanced")
report_path = pipeline.process_video(
PipelineConfig(
video=Path("match.mp4"),
output_dir=Path("output"),
quality_profile="balanced",
)
)
print(report_path)
Metadata
Release files for gaffers-guide 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gaffers_guide-2.0.2.tar.gz | 69.1 kB | Without provenance | Details for gaffers_guide-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gaffers_guide-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for gaffers_guide-2.0.2-py3-none-any.whl |
Total release size: 156.0 kB
Release files / gaffers_guide-2.0.2.tar.gz
| Download URL | gaffers_guide-2.0.2.tar.gz |
|---|---|
| Size | 69.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2af4ce6c6c0521f7f84c7fe2ce44a40776bd5c4ac98436c80e1028ca1fc05071
|
|
BLAKE2b-256 checksum How to use checksums |
cf1d06057e964e1b131d24c122fc68be9aed2fa6827cc814fee661e585e1ad84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / gaffers_guide-2.0.2-py3-none-any.whl
| Download URL | gaffers_guide-2.0.2-py3-none-any.whl |
|---|---|
| Size | 86.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30aef72c8b19f7a5aebe60010aa9f44f06256e90c992a42b939d55728ab232e7
|
|
BLAKE2b-256 checksum How to use checksums |
cabac54aa1163cb1be3ea3f86f61e4e4751af06196008dd26d7d6e3deeb3a159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for gaffers-guide 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.