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.

Filename, size & hash SHA256 hash help File type Python version Upload date
vr.launch-1.1.0-py2.py3-none-any.whl (5.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
vr.launch-1.1.0.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page