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.
Available models: Agency, AgencyType, Launch, Launch Status, Pad, Location
The usage of the API is simple.
Usage
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
- [x] Handle nested models (i.e. a Pad model inside a Location model inside a Launch model)
- [x] Handle times with the datetime class
- [x] 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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size python_launch_library-0.2-py3-none-any.whl (8.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size python-launch-library-0.2.tar.gz (5.7 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for python_launch_library-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ee7572cdc4a42fa8d64537d5963080def6ea9823597f61c40bd8920bd78e8a |
|
MD5 | 4e462cb0fa8e7fd5363f2ea2fb0f01b9 |
|
BLAKE2-256 | eec6f0e6894b31d7c0b1e656ee52be0a364e5fdc9bf9b2463e6ef86620607096 |
Close
Hashes for python-launch-library-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 556b20fd391d8d0f7508225675a1f20e659266c086dfe119f919dd1fafb23d30 |
|
MD5 | 267ff7f23a2d25990dcb8b6bb0c8ed11 |
|
BLAKE2-256 | 7ac9e04c37b8c86d529a76b67127cd73905213d5a884a76fdd9e3c59bc174f11 |