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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 445b4ab357515c1cbd46e3bd5009c77cab16224449ddb0e42d86f30e5f476a12 |
|
MD5 | 7e7fc99468f03e1e2c2ebc7dda0e514c |
|
BLAKE2b-256 | a9d8940a7666314e67b10fb081e5a6186e6c5d5aa73387993242016c36376046 |
Close
Hashes for python_launch_library-0.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c209898fdc632a29cad30838b1d17b1b6c444cfd7bc3cb9da14b6d67877f19 |
|
MD5 | 4d460469c98313f8290208e52b0b0a7e |
|
BLAKE2b-256 | 8f4254bd8f0df883bc902b3ca7e2ab6b5b06f51fc23654a89171b6792e56f160 |