URI
Utility functions for working with URIs.
- vibe_core.uri.is_local(url)
Check if uri refers to a local file.
- Parameters:
url (str) – The URL to check.
- Returns:
True if the URL refers to a local file, False otherwise.
- vibe_core.uri.local_uri_to_path(uri)
Map ‘file://’ urls to paths. If the input is already a path, leave it as is.
- Parameters:
uri (str) – The URI to convert.
- Returns:
The path corresponding to the URI.
- Raises:
ValueError – If the URI is not local.
- Return type:
str
- vibe_core.uri.uri_to_filename(uri)
Parse the filename from an URI.
- Parameters:
uri (str) – The URI to convert.
- Returns:
The filename associated with the URI.
- Return type:
str