forked from goodboy/tractor
Moving it from where i (oddly) first wrote it up in `._entry` to a more proper place with its pals in `.devx.pformat` ;p Iface summary, what caller provides: - `input_op`: a "sclang" chars-symbol to represent the conc "operation", - `text`: the "entity" being *operated on*, - `nest_prefix/indent`: what the ^ will be prefixed with. - `prefix_op: bool` so that, when unset, the `input_op` is instead used as a suffix to the first line of `text`. - `next_indent: int|None = None` such that when set (and not null) we use that exact ws-indent instead of calculating it from the `len(nest_prefix)` allowing for specifying a `0`-indent easily. - includes logic where we either get a non-zero value and apply it strictly to both the `nest_prefix` and `text`, OR we auto-calc it from any `nest_prefix`, NOT a conflation of both.. - `op_suffix: str = '\n'` for instead of assuming `f'{input_op}\n'`. - `rm_from_first_ln: str` which allows removing chars from the first line of `text` after a `str.strip()` (handy for removing the '<Channel' first chevron from type-reprs). There's also a huge comment-doc for "sclang" into the fn body which is the terrible "primer" on this whole idea for the moment XD |
||
---|---|---|
.. | ||
_testing | ||
devx | ||
experimental | ||
ipc | ||
msg | ||
trionics | ||
__init__.py | ||
_addr.py | ||
_child.py | ||
_clustering.py | ||
_context.py | ||
_discovery.py | ||
_entry.py | ||
_exceptions.py | ||
_forkserver_override.py | ||
_mp_fixup_main.py | ||
_multiaddr.py | ||
_portal.py | ||
_root.py | ||
_rpc.py | ||
_runtime.py | ||
_spawn.py | ||
_state.py | ||
_streaming.py | ||
_supervise.py | ||
log.py | ||
to_asyncio.py |