oss-torch-connector/osstorchconnector/oss_iterable_dataset.py [61:86]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @classmethod
    def from_objects(
        cls,
        object_uris: Union[str, Iterable[str]],
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssIterableDataset using the OSS URI(s) provided.

        Args:
          object_uris(str | Iterable[str]): OSS URI of the object(s) desired.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssIterableDataset: An IterableStyle dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_objects")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



oss-torch-connector/osstorchconnector/oss_map_dataset.py [77:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @classmethod
    def from_objects(
        cls,
        object_uris: Union[str, Iterable[str]],
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssMapDataset using the OSS URI(s) provided.

        Args:
          object_uris(str | Iterable[str]): OSS URI of the object(s) desired.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssMapDataset: A Map-Style dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_objects")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



