jasy.env package

Submodules

jasy.env.Context module

Global environment which is used by jasyscript.py files

jasy.env.State module

This module is used to pass a single session instance around to different modules

jasy.env.Task module

Tasks are basically functions with some managment code allow them to run in jasyscript.py

jasy.env.Task.task(*args, **kwargs)[source]

Specifies that this function is a task.

jasy.env.Task.executeTask(taskname, **kwargs)[source]

Executes the given task by name with any optional named arguments

jasy.env.Task.runTask(project, task, **kwargs)[source]

Executes the given task of the given projects.

This happens inside a new sandboxed session during which the current session is paused/resumed automatically.

jasy.env.Task.printTasks(indent=16)[source]

Prints out a list of all avaible tasks and their descriptions

jasy.env.Task.setCommand(cmd)[source]

Sets the jasy command which should be used to execute tasks with runTask()

jasy.env.Task.setOptions(options)[source]

Sets currently configured command line options. Mainly used for printing help screens.

jasy.env.Task.getOptions()[source]

Returns the options as passed to the jasy command. Useful for printing all command line arguments.

Module contents

Glue code used in jasyscript.py to have a convenient API on top of the full Jasy API.

Table Of Contents

Previous topic

jasy.core package

Next topic

jasy.http package

This Page