A wrapper for the launchlibrary.net API
Project description
python-launch-library
A simple python wrapper for the Launch Library web API.
Warning: The wrapper is not yet intended for general use.
For now, usage is constricted to the "Launch" and "Agency" endpoints. Other models and richer support for existing ones will be added soon.
The usage of the API is simple.
Usage
# Import the launchlibrary lib
import launchlibrary
# Create an instance of the API
api = launchlibrary.Api() # You can also specify api url, api version...
# And request the next 5 launches, for example.
launches = launchlibrary.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
- 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.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4d94c05d5442680788559a035a1c37d77f31b322a4be5417386e1b19c4cf8a |
|
MD5 | 8456e4e088d2160be193cd1258f3c106 |
|
BLAKE2b-256 | 56a534bf2ba7a2bd4326768743fdeb04ea29978e9824094301eb8ffedff747a9 |
Close
Hashes for python_launch_library-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4456661295751ddf81952d147d595c397638a965cca90b58aa3396ab0ffc8ca |
|
MD5 | 5bc9e88985b1d82848db56bc6a6afbfc |
|
BLAKE2b-256 | b5a43c91ce048ca238f3cf9b983d959b3477cc60093e3a810ddea88298d7aa77 |