astro.files.locations.local
Module Contents
Classes
Handler Local file path operations |
- class astro.files.locations.local.LocalLocation(path, conn_id=None)
Bases:
astro.files.locations.base.BaseFileLocation
Handler Local file path operations
- Parameters
path (str) –
conn_id (str | None) –
- property paths: list[str]
Resolve local filepath
- Return type
list[str]
- property size: int
Return the size in bytes of the given file.
- Returns
File size in bytes
- Return type
int
- property openlineage_dataset_namespace: str
Returns the open lineage dataset namespace as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md
- Return type
str
- property openlineage_dataset_name: str
Returns the open lineage dataset name as per https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md
- Return type
str
- location_type