staswalle / sci-api-req

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sci-api-req

GitHub watchers GitHub stars GitHub release (latest SemVer) PyPI GitHub issues GitHub repo size GitHub

Sci-api-req is library facilitating use of the most popular scientific apis. With this tool you could make requests to NASA apis e.g. "Astronomy picture of the day"

from sci_api_req import config
from sci_api_req.providers.NASA.neows_provider import NeoWsProvider

#Set your NASA API key
config.set_api_keys(('NASA', 'Your NASA API KEY'))
provider = NeoWsProvider()

#Retrieve a list of Asteroids based on 
#their closest approach date to Earth.
print(provider.feed())
#Retrieve Sentry (Impact Risk ) Near Earth Objects
print(provider.sentry())

If you want try install it via PyPi:

pip install sci-api-req

List of all APIs you can now use with the library:

  • NeoWs (Near Earth Object Web Service)
  • Astronomy Picture of the Day
  • Space Weather Database Of Notifications, Knowledge, Information (DONKI)

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%