1
0
mirror of synced 2026-01-07 09:05:45 -05:00
Files
airbyte/airbyte-cdk/python/airbyte_cdk/sources/file_based/remote_file.py
2023-06-22 11:50:35 -04:00

19 lines
410 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from abc import ABC
from datetime import datetime
from typing import Optional
class RemoteFile(ABC):
"""
A file in a file-based stream.
"""
def __init__(self, uri: str, last_modified: datetime, file_type: Optional[str] = None):
self.uri = uri
self.last_modified = last_modified
self.file_type = file_type