A wrapper for the launchlibrary.net API
Project description
python-launch-library
A simple python wrapper for the Launch Library web API.
Available models: Agency, AgencyType, Launch, Launch Status, Pad, Location, Rocket, RocketFamily
The usage of the API is simple.
Usage
Proper documentation is available in Read The Docs.
To install, simply use pip: pip install python-launch-library
# Import the launchlibrary lib
import launchlibrary as ll
# Create an instance of the API
api = ll.Api() # You can also specify api url, api version...
# And request the next 5 launches, for example.
launches = ll.Launch.fetch(api, next=5) # Any argument after "api" is not constrained (w/ kwargs).
# ^ Returns a list of launch objects.
# You can fetch the pythonic property names by using launch.param_names
properties = launches[0].param_names
Todo
- Tidy up the repository
- Add exceptions to handle server timeout
- Handle nested models (i.e. a Pad model inside a Location model inside a Launch model)
- Handle times with the datetime class
- Package properly and upload to PyPI
- Asynchronous operation
- Add more abstraction methods for the api calls
- Your suggestion here
Feel free to open issues and pull requests! I usually check Github daily.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-launch-library-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6aac3e6642c3e8fe9d8a94373b81450d595187529229283b967311e7925227e |
|
MD5 | 9be199229af5cf748b232910e084ae3f |
|
BLAKE2b-256 | 0db60052630e0de84363db556ab318157d85d9570d4aea238104bd6f399614df |
Close
Hashes for python_launch_library-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5c8df7ad3b1ab3d4a6ffe3014f8af3380ed068cadb8b1b047d68c5d03faced |
|
MD5 | d310bf6243c667e5e8ed41c1f19934a0 |
|
BLAKE2b-256 | 1e0d74209e1b598243ec156fbba88af37c7cf8da2cdcfe1325d935e4c7fbdf03 |