ibllib.io.globus

TODO: This entire module may be removed in favour of one.remote.globus

Functions

as_globus_path

Convert a path into one suitable for the Globus TransferClient.

get_local_endpoint

login

login_auto

setup

as_globus_path(path)[source]

Convert a path into one suitable for the Globus TransferClient. NB: If using tilda in path, the home folder of your Globus Connect instance must be the same as the OS home dir.

Parameters:

path – A path str or Path instance

Returns:

A formatted path string

Examples

# A Windows path >>> as_globus_path(‘E:FlatIronintegration’) >>> ‘/E/FlatIron/integration’

# A relative POSIX path >>> as_globus_path(‘../data/integration’) >>> ‘/mnt/data/integration’

# A globus path >>> as_globus_path(‘/E/FlatIron/integration’) >>> ‘/E/FlatIron/integration’

TODO Remove in favour of one.remote.globus.as_globus_path

login(globus_client_id)[source]
setup(globus_client_id, str_app='globus/default')[source]
login_auto(globus_client_id, str_app='globus/default')[source]
get_local_endpoint()[source]