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-hypernode.com/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.

Source Distribution

vr.launch-2.0.0.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

vr.launch-2.0.0-py2.py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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