flywheel.util
Provides utility functions
check_filename_params(params)
Check filename parameters for invalid characters
days_to_seconds(days)
Convert days to seconds
get_verify_ssl(default=True)
Resolve the SSL verification setting.
httpx2 sets verify at client construction time (it cannot be mutated on an existing client like requests.Session().verify), so callers resolve the value up front. FW_SSL_CERT_FILE overrides the supplied default.
months_to_seconds(months)
Convert months to seconds
params_to_dict(method_name, args, kwargs)
Given args and kwargs, return a dictionary object
params_to_list(args)
Convert a list of arguments (some of which may be lists) to a flat list
seconds_to_days(seconds)
Convert seconds to days
seconds_to_months(seconds)
Convert seconds to months
seconds_to_weeks(seconds)
Convert seconds to weeks
seconds_to_years(seconds)
Convert seconds to years
set_verify_ssl(session)
Create a session that verifies against correct certs
to_ref(obj)
Convert a file or container to a reference
weeks_to_seconds(weeks)
Convert weeks to seconds
years_to_seconds(years)
Convert years to seconds