Python¶
PythonEnv
¶
Bases: StrEnum
All possible python environments.
Source code in saritasa_invocations/python.py
14 15 16 17 18 | |
StrEnum
¶
Bases: str, Enum
Support python 3.10.
Source code in saritasa_invocations/python.py
10 11 | |
get_python_env()
¶
Get python environment.
Source code in saritasa_invocations/python.py
21 22 23 24 25 26 27 28 29 30 31 32 33 | |
run(context, command, docker_params=None, watchers=(), env=None, **kwargs)
¶
Execute python command.
Source code in saritasa_invocations/python.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
run_docker(context, command, params=None, watchers=(), env=None, **kwargs)
¶
Run command in python container.
Source code in saritasa_invocations/python.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
run_docker_python(context, command, params=None, watchers=(), env=None, **kwargs)
¶
Run command using docker python interpreter.
Source code in saritasa_invocations/python.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
run_local_python(context, command, watchers=(), env=None, **kwargs)
¶
Run command using local python interpreter.
Source code in saritasa_invocations/python.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |