astro.files.types.base
Module Contents
Classes
Abstract File type class, meant to be the interface to all client code for all supported file types |
- class astro.files.types.base.FileType(path, normalize_config=None)
Bases:
abc.ABC
Abstract File type class, meant to be the interface to all client code for all supported file types
- Parameters
path (str) –
normalize_config (dict | None) –
- abstract property name
get file type
- abstract export_to_dataframe(stream, **kwargs)
read file from one of the supported locations and return dataframe
- Parameters
stream – file stream object
- Return type
pandas.DataFrame
- abstract create_from_dataframe(df, stream)
Write file to one of the supported locations
- Parameters
df (pandas.DataFrame) – pandas dataframe
stream (io.TextIOWrapper) – file stream object
- Return type
None