Skip to main content

A wrapper for the launchlibrary.net API

Project description

python-launch-library

A simple python wrapper for the Launch Library web API.

PyPI Version Documentation Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-launch-library-0.4.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_launch_library-0.4.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file python-launch-library-0.4.1.tar.gz.

File metadata

  • Download URL: python-launch-library-0.4.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for python-launch-library-0.4.1.tar.gz
Algorithm Hash digest
SHA256 031c922253a7dbf80bdbd65d689a676cd4af8f29a5c4bf74f49468f3e3309b4b
MD5 573a8502c9b241d8bb12cbae6c3b58db
BLAKE2b-256 88a1d55eaca17362f20cbc24f412f8af9e3f7a72ae1d9a56118cea6afc2e9fd2

See more details on using hashes here.

File details

Details for the file python_launch_library-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: python_launch_library-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for python_launch_library-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87bc71f31cec24cb8d1004e47d265292ff3e0710d6af4a3f400763aed7d99bbb
MD5 cd6ed41b36a350583566b55fcc09f5d5
BLAKE2b-256 1ab8aebd21356e431925965c8536779e35e4ac947d8c4b25fd45e6a0d2fa6c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page