THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class OptimizeClearCommand(BaseCommand): (source)
Remove generated optimization artifacts from the application.
| Method | __clear |
Remove top-level build output and package metadata directories. |
| Method | __clear |
Remove bytecode directories and standalone bytecode files. |
| Method | __clear |
Remove framework-owned compiled state cache files. |
| Method | __remove |
Remove one file, directory, or symbolic link and record failures. |
| Method | __report |
Write a cleanup summary and any filesystem errors to the console. |
| Method | handle |
Clear generated bytecode, build artifacts, and compiled caches. |
| Class Variable | description |
Undocumented |
| Class Variable | signature |
Undocumented |
| Class Variable | timestamps |
Undocumented |
Remove framework-owned compiled state cache files.
| Parameters | |
app:IApplication | Application providing the configured compiled cache path. |
| Returns | |
tuple[int, list[str]] | Number of removed cache files and filesystem errors encountered. |
def __reportCleanup(self, console:
Console, label: str, removed_count: int, errors: list[ str]):
(source)
¶
Write a cleanup summary and any filesystem errors to the console.
| Parameters | |
console:Console | Console used to display the summary and errors. |
label:str | Name of the cleanup group. |
removedint | Number of paths successfully removed. |
errors:list[str] | Filesystem errors encountered by the cleanup group. |
| Returns | |
None | Write the cleanup details to the console. |
Clear generated bytecode, build artifacts, and compiled caches.
| Parameters | |
app:IApplication | Application providing the project and cache paths. |
console:Console | Console used to report cleanup results and failures. |
| Returns | |
int | Zero when every cleanup succeeds; one when a path cannot be removed. |