SourceEntry#

class scikitplot.corpus.SourceEntry(path_or_url, kind, provenance=<factory>)[source]#

A single resolved source entry yielded by CorpusSource.iter_entries.

Parameters:
path_or_urlstr

Filesystem path (absolute or relative) or full URL.

kindSourceKind

Whether this is a local file or a URL.

provenancedict

Merged provenance metadata to propagate into create calls.

Parameters:
property as_path: Path#

Return path_or_url as a pathlib.Path.

Raises:
ValueError

If this entry is a URL (not a local path).

property is_url: bool#

Return True if this entry is a URL.

kind: SourceKind[source]#
path_or_url: str[source]#
provenance: dict[str, Any][source]#