yadg.extractors package

yadg.extractors.extract(filetype: str, path: str, timezone: str | None = None, encoding: str | None = None, locale: str | None = None, **kwargs: dict) DataTree

Extract data and metadata from a path using the supplied filetype.

A wrapper around the extract_from_path() worker function, which creates a default extractor object.

Parameters:
  • filetype – Specifies the filetype. Has to be a filetype supported by the dataschema.

  • path – A pathlib.Path object pointing to the file to be extracted.

  • timezone – A str containing the TZ identifier, e.g. “Europe/Berlin”.

  • encoding – A str containing the encoding, e.g. “utf-8”.

  • locale – A str containing the locale name, e.g. “de_CH”.

Subpackages