Skip to main content

Module splice

Module splice 

Source
Expand description

xil splice β€” insert or delete parsed entries with automatic seq renumbering. Port of XILU006_splice_parsed.py.

StructsΒ§

Args πŸ”’

FunctionsΒ§

command
The clap definition behind --help, for man pages.
delete_entries
Remove [start, end] inclusive and renumber the remainder.
execute πŸ”’
extract_seq_range
Entries within [start, end] inclusive.
head πŸ”’
First n characters, as Python’s text[:n] slices.
parse_range πŸ”’
'N-M' β†’ (N, M).
py_get_str πŸ”’
e.get(key, "") inside an f-string. The default only applies when the key is absent: a key present with a null value renders as None, which is what the report lines actually print for a direction entry.
run
run_splice πŸ”’
seq_of πŸ”’
splice_entries
Insert new_entries after insert_after_seq, then renumber the body.
str_of πŸ”’
update_stats
Recompute stats from the body entries (seq > 0).

Type AliasesΒ§

Entry πŸ”’