Skip to main content

Introdction

This package provides a utility for analyzing a golf swing. The input data is represented as a json file generated by GolfTracker.

The json file structure is represented by a data class "GolfData". A factory method is used to create it from the json filename.

The structure of the GolfData class is shown below.

GolfData

Installation

Install the package in your virtual env.

pip install golftrainer

Demo

For this purpose we will use data/demo.json as an example. This file is same as "00001.json" from the below google drive.

Setup Jupyter Notebook

To make the notebook run under my virtual env (say 'venv'), follow the following steps.


pip install jupyter

Or for existing install create a new kernel.

ipython kernel install --user --name=venv

cd notebooks/demo

jupyter notebook demo1.ipynb 

Once we have the notebook the following commands we can use the GolfData object to access the parameters.

Generated Data

Various sample golf swing videos shot down the line on a right handed golf player with the corresponding json file are stored in this GoogleDrive. Each video file (either a mp4 or mov) has 2 output files. The ".pkl" is the pickle database and ".json" is the file that we will use for this package to measure the various metrics associated with the swing.

Metadata

Release files for golftrainer 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for golftrainer 1.0.2
File Interpreter ABI Platform Actions
golftrainer-1.0.2-py3-none-any.whl Python 3 none any Details for golftrainer-1.0.2-py3-none-any.whl

Release files / golftrainer-1.0.2-py3-none-any.whl

Download URL golftrainer-1.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c126592e6689defeac41cb0a2b5d9c2c924a260ed61c1b763d9da9d8abf76969
BLAKE2b-256 checksum
How to use checksums
71912e03bd74b5dd5b4947fae9091862aea878a9e7f043b449e74adcd3e664c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for golftrainer 1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page