iArmanKarimi / Open-Notify-API-python

Open Notify API client for python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Notify API (python)

Open Nofity API client for python

Open Notify is an open source project to provide a simple programming interface for some of NASA’s awesome data.

For other languages, see Open Notify API clients

Installation

Examples

Create an instance of OpenNotify:

open_notify = OpenNotify()

Number of People in Space:

iss_location = open_notify.get_ISS_location()
print("ISS location:")
print("latitude:", iss_location.location.latitude)
print("longitude:", iss_location.location.longitude)

Current Location of the International Space Station:

people_in_space = open_notify.get_people_in_space()
for people in people_in_space.people:
    print(f"craft: {people.craft}, name: {people.name}")

References

Open Notify Website

Official API documentation

License

MIT