Expand description
Utility functions for the Memvid CLI
Functions§
- apply_
lock_ cli - Apply lock CLI settings to a memory instance
- autodetect_
memory_ file - Auto-detect a memory file in the current directory
- ensure_
cli_ mutation_ allowed - Ensure that CLI mutations are allowed for the given memory
- format_
bytes - Format bytes in a human-readable format (B, KB, MB, GB, TB)
- format_
percent - Format a percentage value for display
- format_
timestamp - Format a Unix timestamp to ISO 8601 string
- format_
timestamp_ ms - Format milliseconds as HH:MM:SS.mmm
- frame_
status_ str - Convert frame status to string representation
- looks_
like_ memory - Check if a string looks like a memory file path
- looks_
like_ memory_ path - Check if a path looks like a memory file
- open_
read_ only_ mem - Open a memory file in read-only mode
- owner_
hint_ to_ json - Convert lock owner hint to JSON format
- parse_
date_ boundary - Parse a date boundary string (YYYY-MM-DD)
- parse_
size - Parse a size string (e.g., “6MB”, “1.5 GB”) into bytes
- parse_
timecode - Parse a timecode string (HH:MM:SS or MM:SS or SS) into milliseconds
- parse_
vector - Parse a comma-separated vector string into f32 values
- read_
embedding - Read an embedding vector from a file (whitespace-separated float values)
- read_
payload - Read payload bytes from a file or stdin
- round_
percent - Round a percentage value to one decimal place
- select_
frame - Select a frame by ID or URI
- yes_no
- Convert boolean to “yes” or “no” string