Python¶
PythonEnv
¶
Bases: StrEnum
All possible python environments.
Source code in saritasa_invocations/python.py
10 11 12 13 14 | |
get_python_env()
¶
Get python environment.
Source code in saritasa_invocations/python.py
17 18 19 20 21 22 23 24 25 26 27 28 29 | |
run(context, command, docker_params=None, watchers=(), env=None)
¶
Execute python command.
Source code in saritasa_invocations/python.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
run_docker(context, command, params=None, watchers=(), env=None, **kwargs)
¶
Run command in python container.
Source code in saritasa_invocations/python.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
run_docker_python(context, command, params=None, watchers=(), env=None, **kwargs)
¶
Run command using docker python interpreter.
Source code in saritasa_invocations/python.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
run_local_python(context, command, watchers=(), env=None, **kwargs)
¶
Run command using local python interpreter.
Source code in saritasa_invocations/python.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |