Skip to main content

Golf handicap calculator and launch monitor ballistics estimator

Project description

golfcalc

Golf handicap calculator and launch monitor ballistics estimator. Built by GolfLaunchLab, an independent golf launch monitor review site.

Install

pip install golfcalc

Handicap Index

Calculate your USGA World Handicap System index from recent rounds:

from golfcalc import handicap_index

# (adjusted_gross_score, course_rating, slope_rating)
rounds = [
    (85, 72.1, 131),
    (88, 71.5, 128),
    (82, 70.8, 125),
    (90, 73.2, 135),
    (87, 72.1, 131),
]

print(handicap_index(rounds))  # 11.4

Shot Distance

Estimate carry and total distance from launch monitor data:

from golfcalc import carry_distance, total_distance

# 7-iron: 132 mph ball speed, 16.5 deg launch, 7000 rpm spin
carry = carry_distance(132, 16.5, 7000)
total = total_distance(132, 16.5, 7000)

print(f"Carry: {carry} yards")
print(f"Total: {total} yards")

# Adjust for altitude (Denver = 5280 ft)
carry_denver = carry_distance(132, 16.5, 7000, altitude_ft=5280)

Optimal Launch

Find the best launch angle and spin rate for your ball speed:

from golfcalc import optimal_launch

# Driver at 165 mph ball speed
result = optimal_launch(165)
print(f"Launch: {result['launch_angle']} deg")
print(f"Spin: {int(result['spin_rate'])} rpm")
print(f"Carry: {result['carry_yards']} yards")

CLI

# Calculate handicap interactively
golfcalc handicap

# Estimate distance from launch data
golfcalc distance 165 10.5 2500

# Find optimal launch conditions
golfcalc optimize 165

# At altitude
golfcalc distance 165 10.5 2500 --altitude 5280

About

Built and maintained by GolfLaunchLab. We test and review golf launch monitors with TrackMan-validated data. See our launch monitor reviews and buying guides.

License

MIT

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

golfcalc-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

golfcalc-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file golfcalc-0.1.0.tar.gz.

File metadata

  • Download URL: golfcalc-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for golfcalc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f73631398144150fb92db256bffe15c162b5ddb18e749f61bf74fb6c5861fd34
MD5 946a69bff3f13c15897ad8e78c152c7d
BLAKE2b-256 70e117b7979c4774cb01fc48e6962cf8139b3c8de3145d245d4c9fd2c183b7e7

See more details on using hashes here.

File details

Details for the file golfcalc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: golfcalc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for golfcalc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33d473cf1086bed0ed122ea53f2a7811b26ffc51713e390b6076b032e3928e4f
MD5 67be33907ec97ed7801d59a0164f4706
BLAKE2b-256 3ef22143808fbd88fbda26f421c435bc180c7346343338cdaa1b73bffad4fe69

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