This demo returns the current sun position at Devil's Tower, Wyoming. You can check for accuracy by comparing to a live webcam here https://www.nps.gov/media/webcam/view.htm?id=34A2E299-D1A6-73B6-83317D912825FDF8 A simple tool for getting the current sun position (note, this doesn't account for refraction). Azimuth returns the horizontal angle, and elevation returns the vertical angle of the sun.
Based off of this https://levelup.gitconnected.com/python-sun-position-for-solar-energy-and-research-7a4ead801777