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, Rocket, RocketFamily
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
- [x] 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.1-py3-none-any.whl (8.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size python-launch-library-0.2.1.tar.gz (5.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for python_launch_library-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eacf97612e7c6cc512c4b395c7ec2e0796d3e353a76eef4c12cccdee8561d88b |
|
MD5 | f339b1d77e85602752ae96d074ec32cd |
|
BLAKE2-256 | d4e2f6a777340e1fff4be264be1d526dfc71918180f1126a3aa5937de199d877 |
Close
Hashes for python-launch-library-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 470e8a508f79ee601b9a9db40e93d98ddc132f8b2b285cc08a38f7a6579a290b |
|
MD5 | 79bcc43d439ee0074fb6fd5f713320e5 |
|
BLAKE2-256 | 2350542f0e4f0a8d43ce0085e74173176982f7894b62bdac04b579b71764a11e |