viat.providers.tracker
¶
A convenience module that lists all ViatFileTracker providers.
GitFileTracker
¶
Bases: TrackerBaseMixin, ViatFileTracker
The git file tracker.
Parameters:
-
config(GitFileTrackerConfig) –All configuration required for the tracker.
-
resolver(ViatPathResolver | None, default:None) –A path resolver used to process incoming paths.
-
static_config(ViatVaultStaticConfig | None, default:None) –Static configuration for the vault.
Source code in src/viat/providers/tracker/_git/real.py
GitFileTrackerConfig
dataclass
¶
Configuration for the git file tracker.
Source code in src/viat/providers/tracker/_git/config.py
GlobFileTracker
¶
Bases: TrackerBaseMixin, ViatFileTracker
The default glob file tracker.
Due to inconsistencies between glob and fnmatch from the standard library, we use the more flexible wcmatch library.
Parameters:
-
config(GlobFileTrackerConfig) –All configuration required for the tracker.
-
resolver(ViatPathResolver | None, default:None) –A path resolver used to process incoming paths.
-
static_config(ViatVaultStaticConfig | None, default:None) –Static configuration for the vault.
Source code in src/viat/providers/tracker/glob.py
GlobFileTrackerConfig
dataclass
¶
Configuration for the glob file tracker.
Raises:
-
ViatConfigError–If some flag is unrecognized.
Source code in src/viat/providers/tracker/glob.py
flags = field(default_factory=(lambda: DEFAULT_GLOB_FLAGS))
class-attribute
instance-attribute
¶
A sequence of strings corresponding to glob options.
patterns
instance-attribute
¶
A sequence of wcmatch-flavored glob patterns.
root
instance-attribute
¶
The root patch for matching relative patterns.
Relative paths are resolved with respect to the vault root.
validate_wcmatch_flags(flags)
¶
Check the validity of wcmatch glob options.
Parameters:
Raises:
-
ViatConfigError–If some flag is unrecognized.