通用
Register
lazyllm.common.Register
Bases: object
Source code in lazyllm\common\registry.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
lazyllm.common.registry.LazyDict
Bases: dict
Source code in lazyllm\common\registry.py
remove(key)
lazyllm.common.common.ResultCollector
Bases: object
Source code in lazyllm\common\common.py
lazyllm.common.common.EnvVarContextManager
Source code in lazyllm\common\common.py
Bind
lazyllm.common.bind
Package
lazyllm.common.package
Bases: tuple
Source code in lazyllm\common\common.py
Identity
lazyllm.common.Identity
Compilation
lazyllm.common.compile_func(func_code, global_env=None)
Source code in lazyllm\common\utils.py
Queue
lazyllm.common.FileSystemQueue
Bases: ABC
Source code in lazyllm\common\queue.py
lazyllm.common.multiprocessing.SpawnProcess
lazyllm.common.queue.SQLiteQueue
Bases: FileSystemQueue
Source code in lazyllm\common\queue.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
lazyllm.common.ReadOnlyWrapper
Bases: object
Source code in lazyllm\common\common.py
lazyllm.common.queue.RedisQueue
Bases: FileSystemQueue
Source code in lazyllm\common\queue.py
Multiprocessing
lazyllm.common.ForkProcess
Bases: Process
Source code in lazyllm\common\multiprocessing.py
Options
lazyllm.common.Option
Bases: object
Source code in lazyllm\common\option.py
DynamicDescriptor
lazyllm.common.DynamicDescriptor
Source code in lazyllm\common\common.py
lazyllm.common.CaseInsensitiveDict
Bases: dict
Source code in lazyllm\common\common.py
lazyllm.common.ProcessPoolExecutor
lazyllm.common.ArgsDict
Bases: dict
Source code in lazyllm\common\common.py
Threading
lazyllm.common.Thread
Bases: Thread
Source code in lazyllm\common\threading.py
LazyLLMCMD
lazyllm.common.LazyLLMCMD
Bases: object
Source code in lazyllm\common\common.py
lazyllm.common.utils.SecurityVisitor
Bases: NodeVisitor
AST-based security analyzer to detect unsafe operations in Python code.
IMPORTANT: Method names within this class (e.g., visit_Call, visit_Import) should not
be renamed to lowercase. These method names are part of the NodeVisitor pattern from the ast
module and must remain consistant with this naming convention to function correctly.
Source code in lazyllm\common\utils.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
visit_Attribute(node)
Check os.environ and tempfile usage
Source code in lazyllm\common\utils.py
visit_Call(node)
Check function calls
Source code in lazyllm\common\utils.py
visit_FunctionDef(node)
Check function definitions that might return import
Source code in lazyllm\common\utils.py
visit_Import(node)
visit_ImportFrom(node)
visit_Lambda(node)
Check lambda functions that might return import
Source code in lazyllm\common\utils.py
visit_ListComp(node)
Check list comprehensions that might contain import
Source code in lazyllm\common\utils.py
lazyllm.common.common.Finalizer
Bases: object