Skip to main content

Facilities for launching apps under Velociraptor

Project description

https://img.shields.io/pypi/v/vr.launch.svg https://img.shields.io/pypi/pyversions/vr.launch.svg https://img.shields.io/travis/yougov/vr.launch/master.svg

Deploying against Velociraptor? Need to load the config? It’s easy:

parser = argparse.ArgumentParser()
yg.launch.cmdline.add_config_arg(parser)
# add your own custom args too
args = parser.parse_args()
startup_app(args.config)

This module loads the config from YAML into a nice ItemsAsAttributes dictionary, so you can get the config values as items or as attributes:

args.config.foo == args.config['foo']

Config is loaded using yamlenv <https://pypi.org/project/yamlenv/>, so any YAML can reference environment variables and other YAML files to be interpolated.

Enjoy!

Project details


Download files

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

Files for vr.launch, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size vr.launch-2.0.0-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size vr.launch-2.0.0.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page