Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

tvarnish/launchlibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The original Launch Library API will be closing down on December 31, 2020. Starting November 1, it's successor, Launch Library 2, will take over. This wrapper has not been updated for Launch Library 2, and as such will not work. Unfortunately, I don't have the time to work on this wrapper right now so I've archived the project.

launchlibrary

A Python wrapper for the wonderful Launch Library API (see https://launchlibrary.net/ for further details)

What can I do with the Launch Library API?

The Launch Library API, is a "repository of rocket launch information". You can fetch information about upcoming launches, rockets, missions, and launch locations/pads.

Usage

Installation

I've uploaded this package to PyPI, so installation is as easy as:

pip install launchlibrary

Basic Usage

Once you've installed the package, the Launch Library API can be accessed like so:

import launchlibrary

LaunchAPI = launchlibrary.LaunchLibrary()

nextLaunch = LaunchAPI.NextLaunch()
launchEvents = LaunchAPI.UpcomingLaunches(launchCount=5, including="Falcon")

print(nextLaunch.name)  # Name of the next launch
print(nextLaunch.window.start)  # Launch window start time
print(nextLaunch.window.net)  # NET - No Earlier Than time (i.e. Scheduled launch time)

for launch in launchEvents:
  print(launch.name)
  print(launch.window.net)

I'll make sure to write some more comprehensive documentation soon!

Acknowledgements

The Launch Library API that this wrapper is based on was designed by Pete Riesett and Benjamin Higginbotham, and run with the support of the Launch Librarians (see https://launchlibrary.net/about.html for a list of all of the project's volunteers.)

This Python wrapper was designed and implemented by Thomas Varnish (https://github.com/tvarnish).

About

An unofficial Python wrapper for the Launch Library API (https://launchlibrary.net) 🚀

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages