Skip to main content

Daystar

Daystar is a python library that provides a convenient class for Solar calculations based off of my other library Solarflare. Check out Solarflare at https://pypi.org/project/Solarflare/

In order to use this library, just create an instance of the daystar class:

from Daystar import *
sun = Daystar(latitude, longitude)

The functions provided are (they all default to datetime.datetime.now()):

  • risetime(date): returns the sunrise
  • settime(date): returns the sunset
  • solarnoon(date): returns the solar noon time
  • hrangle(date): returns the hour angle for the time and date
  • coordinates(date): returns a dictionary with declination and right ascension ("dec" and "ra")
  • mean(date): returns the mean anomaly
  • true(date): returns the true anomaly
  • ceq(date): returns the equation of center
  • solar_julian(date): returns "rise" and "set" dictionary with sunrise and sunset julian dates
  • alt(date): returns solar altitude
  • azi(date): returns the solar azimuth
  • nadir(date): returns the time of nadir

Metadata

Release files for Daystar 1.0.1

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 Daystar 1.0.1
File Interpreter ABI Platform Actions
Daystar-1.0.1-py3-none-any.whl Python 3 none any Details for Daystar-1.0.1-py3-none-any.whl

Release files / Daystar-1.0.1-py3-none-any.whl

Download URL Daystar-1.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
397897c0db11ddf65eb540ef8b3717015b135bbe48d6b34cc4303d8e158f031f
BLAKE2b-256 checksum
How to use checksums
13b668bd0bfa363e24ec5419f1c9eb2a0ec5e55fd8c289596f653349673a4225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for Daystar 1.0.1

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