harp_apps.rules.models.scripts

Inheritance diagram of harp_apps.rules.models.scripts

class ExecutableObject[source]

Bases: Callable

__init__(target)[source]
Parameters:

target (Callable)

class Script[source]

Bases: Callable

A script object represents a small python script that can be executed in a controlled environment. For example, it will hold your scripts defined in rules.

__init__(source=None, /, *, filename=None)[source]
Parameters:

source (AST | str)

classmethod from_file(filename)[source]

Constructor from a file content, by filename.

Parameters:

filename (str)

property filename
property source