gigl.common.types.Uri#
- class gigl.common.types.uri.uri.Uri(uri: str | Path | Uri)#
Bases:
object
A URI; currently supports GCS (‘gs://foo/bar’), HTTP (‘http://abc.com/xyz’) or local (‘/foo/bar’).
Methods
The base name is the final component of the path, effectively extracting the file or directory name from a full path string.
Check if the given URI is valid.
Join multiple tokens to create a new Uri instance.
- __eq__(other: Any) bool #
Return self==value.
- __hash__() int #
Return hash(self).
- __repr__() str #
Return repr(self).
- __weakref__#
list of weak references to the object (if defined)
- get_basename() str #
The base name is the final component of the path, effectively extracting the file or directory name from a full path string. i.e. get_basename(“/foo/bar.txt”) -> bar.txt get_basename(“gs://bucket/foo”) -> foo