umpyre.storage.git_branch#
Git branch-based storage operations.
Classes
|
Store metrics in a separate git branch. |
Exceptions
Raised when git branch storage operations fail. |
- class umpyre.storage.git_branch.GitBranchStorage(repo_path, remote='origin', *, token=None)[source]#
Bases:
objectStore metrics in a separate git branch.
This provides versioned, branch-based storage without polluting the main branch or requiring external artifacts.
Example
>>> storage = GitBranchStorage(repo_path="/path/to/repo") >>> metrics = {"lines": 100, "functions": 10} >>> storage.store_metrics(metrics, "abc123", branch="code-metrics")