API Reference
This page provides an overview of the internal Python API for the Argos Blender Addon.
Core Addon Logic
src
Builder and Binary Management
src.builder
Functions
get_info_algos(operator=None)
Run ./argos info_algos and return the JSON output.
Source code in src/builder.py
install(operator=None)
Orchestrates the installation of the Argos toolkit.
Depending on the configuration, this will either download a pre-compiled release from GitHub or build the toolkit from source (if ARGOS_DEBUG is true).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
operator
|
Operator
|
The Blender operator instance for reporting status. |
None
|
Source code in src/builder.py
Configuration
src.config
Configuration management for the Argos Blender Addon.
This module handles versioning, paths, and environment-based settings (like debug mode).
Functions
get_argos_version()
get_bin_name()
get_dev_repo_url()
get_github_host()
get_project_dir()
Returns the absolute path to the Argos installation directory.
Depends on whether we are in debug mode or not.
Source code in src/config.py
get_release_url()
Returns the direct download URL for the pre-compiled Argos release.
get_system_ext()
get_system_name()
is_debug()
Checks if the addon is running in debug/development mode.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if ARGOS_DEBUG environment variable is 'true'. |
UI and Operator Logic
src.gui
Classes
ARGOS_OT_execute
Bases: Operator
Source code in src/gui.py
113 114 115 116 117 118 119 120 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 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | |
Functions
build_command_property_groups(cmd_list)
Create a PropertyGroup subclass for each command's arguments.
Returns a list of (command_name, cls) tuples.
Source code in src/gui.py
build_enum_items(cmd_list)
Commands and Algorithm Discovery
src.commands
Classes
Argument
dataclass
Command
dataclass
Functions
get_command(name)
Look up a single command definition by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The machine name of the command (e.g., 'subdivide'). |
required |
Returns:
| Type | Description |
|---|---|
Command | None
|
The command definition, or None if not found. |
Source code in src/commands.py
load_commands(json_string=None, operator=None)
Parses a JSON string from the Argos binary to load available commands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json_string
|
The raw JSON output from |
None
|
|
operator
|
Optional Blender operator for UI reporting. |
None
|
Returns:
| Type | Description |
|---|---|
list
|
A list of loaded Command objects. |
Source code in src/commands.py
Geometry Marshalling
src.marshaller
Functions
marshal_selected_objects()
Marshals the selected objects.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The OBJ formatted string represetation of the selected objects. |
Source code in src/marshaller.py
unmarshal_and_import(object_str)
Unmarshals the objects represented by object_str and import them into the viewport. Args: object_str (str): The OBJ formatted representation of the objects to import.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
The list of newly imported objects. |