Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.files.sources.basespace

try:
    from fs_basespace import BASESPACEFS
except ImportError:
    BASESPACEFS = None

from typing import (
    Optional,
    Union,
)

from . import (
    FilesSourceOptions,
    FilesSourceProperties,
)
from ._pyfilesystem2 import PyFilesystem2FilesSource


[docs]class BaseSpaceFilesSource(PyFilesystem2FilesSource): plugin_type = "basespace" required_module = BASESPACEFS required_package = "fs-basespace" def _open_fs(self, user_context=None, opts: Optional[FilesSourceOptions] = None): props = self._serialization_props(user_context) extra_props: Union[FilesSourceProperties, dict] = opts.extra_props or {} if opts else {} handle = BASESPACEFS(**{**props, **extra_props}) return handle
__all__ = ("BaseSpaceFilesSource",)