Extract the function/symbol name from the entry point specification. The entry point format is '{file_path}::{function_name}', and this method returns the function name component. This is the symbol that builders will look up in the compiled module or imported Python module.
(self)
| 296 | return Path(self.spec.entry_point.split("::")[0]) |
| 297 | |
| 298 | def get_entry_symbol(self) -> str: |
| 299 | """Extract the function/symbol name from the entry point specification. |
| 300 | |
| 301 | The entry point format is '{file_path}::{function_name}', and this method |
| 302 | returns the function name component. This is the symbol that builders will |
| 303 | look up in the compiled module or imported Python module. |
| 304 | |
| 305 | Returns |
| 306 | ------- |
| 307 | str |
| 308 | The function or symbol name to be loaded (e.g., 'run', 'forward', 'kernel'). |
| 309 | """ |
| 310 | return self.spec.entry_point.split("::")[-1] |
| 311 | |
| 312 | def get_entry_source(self) -> Optional[SourceFile]: |
| 313 | """Get the entry source file specified in the build spec. |
nothing calls this directly
no outgoing calls
no test coverage detected