get_handle_from_resource

function of dascore.utils.io source

get_handle_from_resource(
    uri ,
    required_type ,
)

Get a handle for a file of preferred type.

return uri if required type is not specified or supported in either handle function or has a get_handle method.