nitpick.style.fetchers.file module

Basic local file fetcher.

class nitpick.style.fetchers.file.FileFetcher(cache_manager: cachy.cache_manager.CacheManager, cache_option: str, protocols: Tuple[str, ...] = ('file', ''), domains: Tuple[str, ...] = ())[source]

Bases: nitpick.style.fetchers.base.StyleFetcher

Fetch a style from a local file.

cache_manager: CacheManager
cache_option: str
domains: Tuple[str, ...] = ()
fetch(url) Tuple[Optional[pathlib.Path], str]

Fetch a style form cache or from a specific fetcher.

protocols: Tuple[str, ...] = ('file', '')
requires_connection = False