Skip to content

iArmanKarimi/Open-Notify-API-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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