jnrbase
jnrbase.entry.
entry_point
Execute function when module is run directly.
Note
This allows fall through for importing modules that use it.
__func (Callable[[None], int]) – Function to run
Callable
None
int
Optional[Callable[[None], int]]
Optional
>>> @entry_point ... def main(): ... return 255