crossbar.node.template

Classes

Templates

Crossbar.io application templates.

Module Contents

class Templates[source]

Crossbar.io application templates.

SKIP_FILES = ('.pyc', '.pyo', '.exe')[source]

File extensions of files to skip when instantiating an application template.

TEMPLATES[source]

Application template definitions.

static help()[source]

Print CLI help.

static init(appdir, template='default', params=None, dryrun=False, skip_existing=True)[source]

Initialize an application directory from a template by template name.

Parameters:
  • appdir (str) – The path of the directory to instantiate the application template in.

  • template (str) – The name of the application template to instantiate.

  • dryrun (bool) – If True, only perform a dry run (don’t actually do anything, only prepare).