def __init__(self, key: str, bucket: str):
        self.key = key
        self.bucket = bucket
        self.cli = get_s3_client()

        if key.endswith(".related.csv"):
            self.data_type = DatasetType.RELATED_TIME_SERIES
        elif key.endswith(".metadata.csv"):
            self.data_type = DatasetType.ITEM_METADATA
        else:
            self.data_type = DatasetType.TARGET_TIME_SERIES

        _, self.filename = split(key)
 def __init__(self):
     self.s3 = get_s3_client()
     self.sfn = get_sfn_client()
Exemplo n.º 3
0
def test_s3_getter():
    cli = get_s3_client()
    assert "https://s3" in cli.meta.endpoint_url