Source

class Source(path: Path)[source]

Bases: ABC

A configuration for a data resource.

Attributes Summary

path

The local path where the resource is stored on disk.

Methods Summary

open()

Open the source as a file object.

Attributes Documentation

Parameters:

path (Path)

path: Path = <dataclasses._MISSING_TYPE object>

The local path where the resource is stored on disk.

Methods Documentation

abstractmethod open() → Generator[IO[str]][source]

Open the source as a file object.

Return type:

Generator[IO[str]]