CLI¶
atopile.cli
¶
build
¶
CLI command definition for ato build
.
build
¶
build(
entry=None,
build=[],
target=[],
option=[],
frozen=None,
keep_picked_parts=None,
keep_net_names=None,
standalone=False,
)
Build the specified --target(s) or the targets specified by the build config.
Optionally specify a different entrypoint with the argument ENTRY.
eg. ato build --target my_target path/to/source.ato:module.path
Source code in src/atopile/cli/build.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 |
|
cli
¶
app
module-attribute
¶
python_interpreter_path
¶
Print the current python interpreter path.
atopile_src_path
¶
Print the current python interpreter path.
version_callback
¶
cli
¶
cli(
ctx,
non_interactive=False,
debug=False,
verbose=0,
python_path=False,
atopile_path=False,
version=None,
)
Source code in src/atopile/cli/cli.py
common
¶
Common CLI writing utilities.
get_entry_arg_file_path
¶
Source code in src/atopile/cli/common.py
get_project_config
¶
Source code in src/atopile/cli/common.py
check_entry_arg_file_path
¶
Source code in src/atopile/cli/common.py
check_compiler_versions
¶
Check that the compiler version is compatible with the version used to build the project.
Source code in src/atopile/cli/common.py
configure_project_context
¶
Source code in src/atopile/cli/common.py
create_build_contexts
¶
Source code in src/atopile/cli/common.py
configure
¶
Configure the user's system for atopile development.
Config
¶
get_configured_for_version
¶
Return the version of atopile that the user's system is configured for.
configure
¶
do_configure_if_needed
¶
Configure the user's system for atopile development if it's not already configured.
Source code in src/atopile/cli/configure.py
do_configure
¶
Perform system configuration required for atopile.
Source code in src/atopile/cli/configure.py
install_kicad_plugin
¶
Install the kicad plugin.
Source code in src/atopile/cli/configure.py
create
¶
PROJECT_TEMPLATE
module-attribute
¶
ComponentType
¶
check_name
¶
help
¶
project
¶
Create a new ato project.
Source code in src/atopile/cli/create.py
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 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 |
|
build
¶
Create a new build configuration. - adds entry to ato.yaml - creates a new directory in layout
Source code in src/atopile/cli/create.py
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 311 312 313 314 315 316 |
|
configure
¶
do_configure
¶
Configure the project.
Source code in src/atopile/cli/create.py
component
¶
Create a new component.
Source code in src/atopile/cli/create.py
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
|
main
¶
Source code in src/atopile/cli/create.py
excepthook
¶
handle_exception
¶
Source code in src/atopile/cli/excepthook.py
inspect
¶
ato inspect
DisplayEntry
¶
This class represents the nets that are below the inspected module, the equivalent net that is below the context module and the individual connections that are made to the inspect net and the context net.
Source code in src/atopile/cli/inspect.py
inspect
¶
Utility to inspect what is connected to a component.
The context sets the boundary where something is considered connected.
For example: --inspect rp2040_micro --context rp2040_micro_ki
Source code in src/atopile/cli/inspect.py
install
¶
This CLI command provides the ato install
command to:
- install dependencies
- download JLCPCB footprints
install
¶
Install atopile packages or components from jlcpcb.com/parts
Source code in src/atopile/cli/install.py
do_install
¶
Actually do the installation of the dependencies.
This is split in two so that it can be called from install
and create
Source code in src/atopile/cli/install.py
get_package_repo_from_registry
¶
Get the git repo for a package from the ato registry.
Source code in src/atopile/cli/install.py
install_single_dependency
¶
Source code in src/atopile/cli/install.py
install_project_dependencies
¶
Source code in src/atopile/cli/install.py
install_dependency
¶
Install a dependency of the name "module_name"
Source code in src/atopile/cli/install.py
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 |
|
install_jlcpcb
¶
Install a component from JLCPCB
Source code in src/atopile/cli/install.py
logging
¶
handler
module-attribute
¶
handler = LogHandler(
console=console,
rich_tracebacks=True,
show_path=False,
tracebacks_suppress=["typer"],
tracebacks_suppress_map={
UserPythonModuleError: [atopile, faebryk]
},
tracebacks_unwrap=[UserPythonModuleError],
hide_traceback_types=(_BaseBaseUserException),
always_show_traceback_types=(UserPythonModuleError),
traceback_level=ERROR,
)
LogHandler
¶
LogHandler(
*args,
tracebacks_suppress_map=None,
tracebacks_unwrap=None,
hide_traceback_types=(),
always_show_traceback_types=(),
traceback_level=ERROR,
**kwargs
)
Bases: RichHandler
A logging handler that renders output with Rich.
Suppresses frames from tracebacks conditionally depending on the exception type.
Source code in src/atopile/cli/logging.py
tracebacks_suppress_map
instance-attribute
¶
tracebacks_suppress_map = tracebacks_suppress_map or {}
always_show_traceback_types
instance-attribute
¶
always_show_traceback_types = always_show_traceback_types
render_message
¶
Source code in src/atopile/cli/logging.py
emit
¶
Invoked by logging.
Source code in src/atopile/cli/logging.py
view
¶
ato view
view
¶
View a block diagram or schematic of your project.