Expand description
xil sfx-lib — inventory of the local SFX library from ID3 and MPEG
headers, or of the account’s ElevenLabs sound-generation history with
--api. Port of XILU005_discover_SFX.py.
Structs§
- Args 🔒
Constants§
Functions§
- category 🔒
- Filename → cheatsheet bucket, by prefix.
- command
- The clap definition behind
--help, for man pages. - copy2 🔒
shutil.copy2: contents plus the modification time.- execute 🔒
- export_
kit 🔒 export_kit:(json_path, hints_path, md_path);md_pathis empty when no reference doc was found.- fetch_
api_ 🔒records fetch_api_records(api_key, max_items).Nonemeans the key lacks the permission: the warnings are logged and the command exits 1.- fetch_
local_ records - One record per
.mp3undersfx_dir, any depth, sorted by path. - fmt_
duration 🔒 f"{seconds:.1f}s", or empty forNone.- fmt_
size 🔒 f"{bytes_ / 1024:.0f} KB".- get_str 🔒
- normpath 🔒
os.path.normpathfor the handful of shapes this command builds.- package_
reference_ 🔒path - Where Python looks first:
<package>/../../docs/<doc>, which for the editable install is the Python checkout’sdocs/directory. The doc actually lives indocs/guides/there, so this lookup fails on both sides and the CWD fallback decides; the path is still printed. - print_
compact_ 🔒api - print_
compact_ 🔒local - print_
verbose_ 🔒api - print_
verbose_ 🔒local - read_
local_ record _read_local_record: ID3 text frames plus MPEG duration/bit rate.- run
- same_
file 🔒 - write_
pipe_ 🔒hints_ md _write_pipe_hints_md: returns the written path.