{"id":37063212,"url":"https://github.com/reedhaffner/heliacal","last_synced_at":"2026-01-14T07:03:39.241Z","repository":{"id":57437072,"uuid":"163554962","full_name":"reedhaffner/heliacal","owner":"reedhaffner","description":"Python module to get sunrise, sunset, daytime, and twilight data for a location.","archived":false,"fork":false,"pushed_at":"2019-03-12T00:52:08.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T16:41:37.304Z","etag":null,"topics":["api-wrapper","python","sunrise","sunset","twilight-data"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reedhaffner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-30T02:12:17.000Z","updated_at":"2022-05-14T18:15:00.000Z","dependencies_parsed_at":"2022-09-11T02:50:18.599Z","dependency_job_id":null,"html_url":"https://github.com/reedhaffner/heliacal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reedhaffner/heliacal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedhaffner%2Fheliacal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedhaffner%2Fheliacal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedhaffner%2Fheliacal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedhaffner%2Fheliacal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reedhaffner","download_url":"https://codeload.github.com/reedhaffner/heliacal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedhaffner%2Fheliacal/sbom","scorecard":{"id":768332,"data":{"date":"2025-08-11","repo":{"name":"github.com/reedhaffner/heliacal","commit":"b9ac860e5b082b5c90b8d77b4037a0b4045373e4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T01:30:39.114Z","repository_id":57437072,"created_at":"2025-08-23T01:30:39.114Z","updated_at":"2025-08-23T01:30:39.114Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","python","sunrise","sunset","twilight-data"],"created_at":"2026-01-14T07:03:38.541Z","updated_at":"2026-01-14T07:03:39.234Z","avatar_url":"https://github.com/reedhaffner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heliacal [![PyPI](https://img.shields.io/pypi/v/Heliacal.svg)](https://pypi.org/project/Heliacal/)\n\nPython module to get sunrise, sunset, daytime, and twilight data for a location.\n\nThis is an API wrapper for [sunrise-sunset.org](https://sunrise-sunset.org/).\n\n## To get started, install heliacal\n\n    pip install heliacal\n\n## Next, add heliacal and datetime to your project\n\n    from heliacal import Heliacal\n    import datetime\n\nHeliacal requires datetime to run.\n\n## Create a heliacal object\n\nHeliacal uses latitude and longitude to determine solar data for a location. You can use modules such as [geopy](https://geopy.readthedocs.io/en/stable/) to get the co-ordinates of a named location.\n\n    los_angeles = Heliacal(34.052235, -118.243683)\n\nBy default, Heliacal will set the date to today, to change that, use set_date().\n\n    los_angeles.set_date(datetime.datetime(2018, 12, 31)) # Get solar data for 2018-12-31\n\nYou now have a working Heliacal instance! You can get the following information:\n\n    los_angeles.sunrise # 2018-12-31 14:58:24\n    los_angeles.sunset # 2019-01-01 00:54:16\n    los_angeles.solar_noon # 2018-12-31 19:56:20\n    los_angeles.day_length # 35752 (seconds)\n    los_angeles.civil_twilight_begin # 2018-12-31 14:30:50\n    los_angeles.civil_twilight_end # 2019-01-01 01:21:49\n    los_angeles.nautical_twilight_begin # 2018-12-31 13:59:38\n    los_angeles.nautical_twilight_end # 2019-01-01 01:53:01\n    los_angeles.astronomical_twilight_begin # 2018-12-31 13:29:11\n    los_angeles.astronomical_twilight_end # 2019-01-01 02:23:28\n\n    # For debugging or other things, there are:\n    los_angeles.requesturl # https://api.sunrise-suns...\n    los_angeles.json # {'sunrise': '2018-12-31T14:58:...\n\nNote: Heliacal returns UTC datetimes, it is the developer's job to turn them to the respective timezone.\n\n## Troubleshooting\n\nIf you receive an `SSL: CERTIFICATE_VERIFY_FAILED` error and you are using MacOS. Follow these steps in terminal:\n\n```sh\ncd /Applications/Python\\ 3.7\n./Install Certificates.command\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedhaffner%2Fheliacal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freedhaffner%2Fheliacal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedhaffner%2Fheliacal/lists"}