Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.06 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.06 KB

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