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.

Source Distribution

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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file vr.launch-2.0.0.tar.gz.

File metadata

  • Download URL: vr.launch-2.0.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for vr.launch-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c1670dae157fb18b4f74e93edf58e4a168564d28ffe3e49cd80fcc05ceb5e7db
MD5 fa8dc506769d1dcf5716c45e9dcef2dd
BLAKE2b-256 04001441485e10552a9ba72a54f53e8038a2bf5325953021ae1a2eb283ca737c

See more details on using hashes here.

File details

Details for the file vr.launch-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: vr.launch-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for vr.launch-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 106c6187caa035164f0eb756dc6638c36855be751afb7cb47025e78cc29c753f
MD5 9104c08a78c8fdfbe6bb60be36c27f19
BLAKE2b-256 ebaa385f0eb01b853626793134ac04bbdf3c2efd8d364e9a72be8ab0c07d913d

See more details on using hashes here.

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