{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Calculates sunrise and sunset times for any geographic location and date, handling edge cases like polar regions where the sun may not rise or set.","skillfed_tags":["astronomy","solar-calculations","geolocation"],"use_cases":["Determine daylight hours for a given location and date in a weather or outdoor activity app","Schedule tasks or alerts to trigger at sunrise or sunset in a user's local timezone","Calculate solar noon or twilight times for photography, astronomy, or solar energy applications","Validate whether a location experiences midnight sun or polar night on a specific date","Build a calendar or scheduling UI that highlights daylight and darkness periods"],"what_it_does":"SunTime is a lightweight Python library that computes sunrise and sunset times for any geographic location and date. It takes latitude and longitude as input and returns datetime objects representing when the sun rises and sets, either in UTC or in a specified local timezone. The library handles the mathematical complexity of solar position calculations internally, so you don't need to implement the astronomy yourself.\n\nThe main use case is applications that need to know daylight hours\u2014weather apps, scheduling systems, outdoor activity planners, or any tool that must adapt behavior based on solar events. It includes error handling for edge cases like polar regions where the sun may not rise or set on certain dates, raising SunTimeException when these conditions occur. The library depends only on python-dateutil for timezone handling.","worth_installing":"Yes, if you need straightforward sunrise/sunset calculations. The library is simple, has low install friction, no known vulnerabilities, and a stable API. However, maintenance is dormant\u2014no updates since March 2024\u2014so if you need active support or frequent bug fixes, consider whether this is acceptable for your use case. The LGPLv3 license is permissive for most projects but requires attention if you're building proprietary software."},"id":"suntime","links":{"html":"https://skillfed.io/packages/suntime","md":"https://skillfed.io/packages/suntime.md","pypi":"https://pypi.org/project/suntime/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-03-10","license_spdx":null,"license_treatment":"copyleft","name":"suntime","python_support":"unspecified","summary":"Simple sunset and sunrise time calculation python library"},"popularity":{"monthly_downloads":212778,"position":9451,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.2"}
