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
- [x] Tidy up the repository
- [x] 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
- [x] Add more abstraction methods for the api calls (open to suggestions)
- [x] Add magic method comparisons (open to suggestions)
- [x] 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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size python_launch_library-0.5.4-py3-none-any.whl (15.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size python-launch-library-0.5.4.tar.gz (8.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for python_launch_library-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27b8763effde05e86bdfa5fb9c1b13a1da5f8d04c34270eb11d9ad5fc8af604 |
|
MD5 | 460903b5fba983258b6498dab0f546ff |
|
BLAKE2-256 | ee1ee470714379ac64806c1b7d6ddd6f4e4da006615254a0c0eda7bbfb484b64 |
Close
Hashes for python-launch-library-0.5.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3684ac9ec8b4d8dd6a348af0f7f5f523abdd22fb9443761551051b4bb482fb5b |
|
MD5 | 6abf55bbfb89ae3bcc5c09e3e86c45be |
|
BLAKE2-256 | 0f4616ff63130103b19aa857c64efcab0a8062b764865f29d29a8ff246d3bd16 |