OpenFactory Utils Module - Open URIS#

Open files from different URIs using fsspec.

openfactory.utils.open_uris.open_github(path)[source]#

Open a file from GitHub.

Return type:

OpenFile

Parameters:

path (str) – Path to the file in the format ‘repo:owner@/path/to/file’

Returns:

file object – Opened file object

Raises:

OFAException – If the file cannot be found or permission is denied.

openfactory.utils.open_uris.open_ofa(uri)[source]#

Open file based on URI using fsspec.

Return type:

OpenFile

Parameters:

uri (str) – URI of the file to open.

Returns:

file object – Opened file object.