Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Time And Date Python API

pypi

Use our API Services to tap into timeanddate.com's databases and integrate our data into your applications

Service Reference

Requirements

  • Python 3.6

Installation

pip3 install libtad

Usage

fromlibtadimportAstronomyServicefromlibtad.datatypes.placesimportCoordinates, LocationIdfromlibtad.datatypes.timeimportTADDateTimefromlibtad.datatypes.astroimportAstronomyEventClass, AstronomyObjectType# Specify the location, and the dates you are querying forcoordinates=Coordinates(59.743, 10.204)
place=LocationId(coordinates)
date=TADDateTime(2020, 11, 26)
# To perform the query, you will need your access key and secret keyservice=AstronomyService("accessKey", "secretKey")
# Select which astronomical events you are interested inservice.types=AstronomyEventClass.Meridian|AstronomyEventClass.Phase# Retrieve astronomical information for specified astronomy object at a given time and placeastro_info=service.get_astronomical_info(AstronomyObjectType.Moon, place, date)

Credits

TadApi is owned and maintained by the Time and Date AS. You can visit our API Reference at timeanddate.com for project updates and releases.

Author

Time and Date

About

Python library for accessing Time and Date APIs https://pypi.org/project/libtad/

Resources

Stars

11 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages