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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 745efc1be0765442d44e7a44b2bf56b9179ac8e767344161b85f8c2e12ac992b |
|
MD5 | 8899196a92f789954bbb080e158bd8e9 |
|
BLAKE2b-256 | bae5023db5063ba46f44eb1dfa245519186991e625bcb648cb66b2e36b1c2609 |
Close
Hashes for python_launch_library-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e087bd9ed511299ed008f9cfa47280180a4e9eaae0848d73c82820d4f73796e1 |
|
MD5 | 25086325f0ead81587b9e54672de5bd5 |
|
BLAKE2b-256 | eed9b49e53e313cd455e732d5ebe9dd3344ca0cdf9eed8bdeec2e5d361ebae13 |