Expand description
calcbits — small utilities for working with downloaded binary data.
- formatting helpers:
to_hex,to_octal,to_decimal - timing helpers:
average_time,time_exec - progress bar helper:
create_progress_bar - async downloader with progress:
download_with_progress - simple DB save/load helpers with progress:
save_to_db,load_from_db
Functions§
- average_
time - Calculate the average of a slice of
Duration. ReturnsNoneif empty. - create_
progress_ bar - Create a styled progress bar with ETA and speed display
- download_
with_ progress - Async download with real-time progress, ETA, and speed Async download with real-time progress, ETA, and speed
- load_
from_ db - Load a file from DB into
outwith progress - save_
to_ db - Save data to DB with optional quantum style and progress
- time_
exec - Time execution of a closure, returning
(result, elapsed). - to_
decimal - Convert a byte slice into a space-separated DECIMAL string.
- to_hex
- Convert a byte slice into a space-separated HEX string (uppercase).
- to_
octal - Convert a byte slice into a space-separated OCTAL string.