A wrapper for the launchlibrary.net API
Project description
python-launch-library
A simple python wrapper for the Launch Library web API. Can also be used asynchronously too.
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
- Add more abstraction methods for the api calls (open to suggestions)
- Add magic method comparisons (open to suggestions)
- Asynchronous operation
- Add tests
- 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.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771917d570a6f5d882d8da02d4de44e0abe46dff4dc44f378047a92a8c5866ef |
|
MD5 | 06ca5699d14078b8612ed75a92b37a05 |
|
BLAKE2b-256 | c27a9c805ec3c3cc2733577daf064f94ed02c61b154badd1066dc245abe053a7 |
Close
Hashes for python_launch_library-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8816a7b64f879352f7ebb68554b30d2105b21df42a7990278ba2e61aba8161d5 |
|
MD5 | e1c346bf319b143c76b736be60b2132d |
|
BLAKE2b-256 | faf9140d30b1d4bcca60a51a8c0f6f2ad26c5c7abbda80d856b5116580a2577a |