swh.storage.proxies.blocking.cli module#
- class swh.storage.proxies.blocking.cli.RequestType[source]#
- Bases: - ParamType- convert(value, param, ctx) BlockingRequest[source]#
- Convert the value to the correct type. This is not called if the value is - None(the missing value).- This must accept string values from the command line, as well as values that are already the correct type. It may also convert other compatible types. - The - paramand- ctxarguments may be- Nonein certain situations, such as when converting prompt input.- If the value cannot be converted, call - fail()with a descriptive message.- Parameters:
- value – The value to convert. 
- param – The parameter that is using this type to convert its value. May be - None.
- ctx – The current context that arrived at this value. May be - None.
 
 
 
- swh.storage.proxies.blocking.cli.parse_blocked_state(str: str) BlockingState[source]#
- swh.storage.proxies.blocking.cli.format_blocked_state(state: BlockingState) str[source]#