liblaf-cherries 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- liblaf/cherries/__init__.py +3 -0
- liblaf/cherries/__init__.pyi +23 -0
- liblaf/cherries/_start.py +48 -0
- liblaf/cherries/git/__init__.py +3 -0
- liblaf/cherries/git/__init__.pyi +17 -0
- liblaf/cherries/git/_commit.py +17 -0
- liblaf/cherries/git/_entrypoint.py +12 -0
- liblaf/cherries/git/_repo.py +33 -0
- liblaf/cherries/git/github/__init__.py +3 -0
- liblaf/cherries/git/github/__init__.pyi +4 -0
- liblaf/cherries/git/github/_link.py +25 -0
- liblaf/cherries/git/github/_repo.py +23 -0
- liblaf/cherries/integration/__init__.py +3 -0
- liblaf/cherries/integration/__init__.pyi +4 -0
- liblaf/cherries/integration/_abc.py +134 -0
- liblaf/cherries/integration/_neptune.py +53 -0
- liblaf/cherries/plugin/__init__.py +3 -0
- liblaf/cherries/plugin/__init__.pyi +6 -0
- liblaf/cherries/plugin/_abc.py +31 -0
- liblaf/cherries/plugin/_default.py +5 -0
- liblaf/cherries/plugin/_git.py +23 -0
- liblaf/cherries/plugin/_logging.py +20 -0
- liblaf/cherries/plugin/_restic.py +45 -0
- liblaf/cherries/utils/__init__.py +3 -0
- liblaf/cherries/utils/__init__.pyi +0 -0
- liblaf_cherries-0.0.0.dist-info/METADATA +23 -0
- liblaf_cherries-0.0.0.dist-info/RECORD +29 -0
- liblaf_cherries-0.0.0.dist-info/WHEEL +4 -0
- liblaf_cherries-0.0.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
from . import git, integration, plugin, utils
|
2
|
+
from ._start import current_run, end, set_current_run, start
|
3
|
+
from .git import entrypoint
|
4
|
+
from .integration import Run, RunNeptune
|
5
|
+
from .plugin import Plugin, PluginGit, PluginLogging, default_plugins
|
6
|
+
|
7
|
+
__all__ = [
|
8
|
+
"Plugin",
|
9
|
+
"PluginGit",
|
10
|
+
"PluginLogging",
|
11
|
+
"Run",
|
12
|
+
"RunNeptune",
|
13
|
+
"current_run",
|
14
|
+
"default_plugins",
|
15
|
+
"end",
|
16
|
+
"entrypoint",
|
17
|
+
"git",
|
18
|
+
"integration",
|
19
|
+
"plugin",
|
20
|
+
"set_current_run",
|
21
|
+
"start",
|
22
|
+
"utils",
|
23
|
+
]
|
@@ -0,0 +1,48 @@
|
|
1
|
+
from collections.abc import Sequence
|
2
|
+
|
3
|
+
from liblaf import cherries
|
4
|
+
|
5
|
+
_current_run: cherries.Run | None = None
|
6
|
+
|
7
|
+
|
8
|
+
def current_run() -> cherries.Run | None:
|
9
|
+
return _current_run
|
10
|
+
|
11
|
+
|
12
|
+
def set_current_run(run: cherries.Run) -> None:
|
13
|
+
global _current_run # noqa: PLW0603
|
14
|
+
_current_run = run
|
15
|
+
|
16
|
+
|
17
|
+
def start(
|
18
|
+
backend: type[cherries.Run],
|
19
|
+
plugins: Sequence[cherries.Plugin] = [],
|
20
|
+
*,
|
21
|
+
enabled: bool = True,
|
22
|
+
) -> cherries.Run | None:
|
23
|
+
if not enabled:
|
24
|
+
return None
|
25
|
+
plugins = sorted(plugins, key=lambda plugin: plugin.priority)
|
26
|
+
for plugin in plugins:
|
27
|
+
if plugin.enabled:
|
28
|
+
plugin.pre_start()
|
29
|
+
run: cherries.Run = backend()
|
30
|
+
run.plugins = plugins
|
31
|
+
set_current_run(run)
|
32
|
+
for plugin in plugins:
|
33
|
+
if plugin.enabled:
|
34
|
+
plugin.post_start(run)
|
35
|
+
return run
|
36
|
+
|
37
|
+
|
38
|
+
def end(run: cherries.Run | None = None) -> None:
|
39
|
+
run = run or current_run()
|
40
|
+
if run is None:
|
41
|
+
return
|
42
|
+
for plugin in reversed(run.plugins):
|
43
|
+
if plugin.enabled:
|
44
|
+
plugin.pre_end(run)
|
45
|
+
run.end()
|
46
|
+
for plugin in reversed(run.plugins):
|
47
|
+
if plugin.enabled:
|
48
|
+
plugin.post_end(run)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
from . import github
|
2
|
+
from ._commit import DEFAULT_COMMIT_MESSAGE, commit
|
3
|
+
from ._entrypoint import entrypoint
|
4
|
+
from ._repo import github_user_repo, repo, root
|
5
|
+
from .github import permalink, user_repo
|
6
|
+
|
7
|
+
__all__ = [
|
8
|
+
"DEFAULT_COMMIT_MESSAGE",
|
9
|
+
"commit",
|
10
|
+
"entrypoint",
|
11
|
+
"github",
|
12
|
+
"github_user_repo",
|
13
|
+
"permalink",
|
14
|
+
"repo",
|
15
|
+
"root",
|
16
|
+
"user_repo",
|
17
|
+
]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import subprocess as sp
|
2
|
+
|
3
|
+
import git
|
4
|
+
|
5
|
+
DEFAULT_COMMIT_MESSAGE: str = """chore(exp): auto commit"""
|
6
|
+
|
7
|
+
|
8
|
+
def commit(message: str = DEFAULT_COMMIT_MESSAGE, *, dry_run: bool = False) -> bool:
|
9
|
+
repo = git.Repo(search_parent_directories=True)
|
10
|
+
if not repo.is_dirty(untracked_files=True):
|
11
|
+
return False
|
12
|
+
repo.git.add(all=True, dry_run=dry_run)
|
13
|
+
sp.run(["git", "status"], check=False)
|
14
|
+
if dry_run:
|
15
|
+
return False
|
16
|
+
repo.git.commit(message=message)
|
17
|
+
return True
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import sys
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
from . import root as git_root
|
5
|
+
|
6
|
+
|
7
|
+
def entrypoint() -> Path:
|
8
|
+
fpath: Path = Path(sys.argv[0]).absolute()
|
9
|
+
root: Path = git_root()
|
10
|
+
if fpath.is_relative_to(root):
|
11
|
+
return fpath.relative_to(root)
|
12
|
+
return fpath
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import re
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
import git
|
5
|
+
|
6
|
+
GITHUB_URL_PATTERNS: list[str] = [
|
7
|
+
r"https://github\.com/(?P<user>[^/]+)/(?P<repo>[^/]+)(?:\.git)?"
|
8
|
+
]
|
9
|
+
|
10
|
+
|
11
|
+
def repo(*, search_parent_directories: bool = True) -> git.Repo:
|
12
|
+
return git.Repo(search_parent_directories=search_parent_directories)
|
13
|
+
|
14
|
+
|
15
|
+
def root() -> Path:
|
16
|
+
repo = git.Repo(search_parent_directories=True)
|
17
|
+
return Path(repo.working_dir)
|
18
|
+
|
19
|
+
|
20
|
+
def github_user_repo(
|
21
|
+
repo: git.Repo | None = None,
|
22
|
+
) -> tuple[str, str] | tuple[None, None]:
|
23
|
+
if repo is None:
|
24
|
+
repo = git.Repo(search_parent_directories=True)
|
25
|
+
remote: git.Remote = repo.remote()
|
26
|
+
for pattern in GITHUB_URL_PATTERNS:
|
27
|
+
match: re.Match[str] | None = re.match(pattern, remote.url)
|
28
|
+
if not match:
|
29
|
+
continue
|
30
|
+
user: str = match.group("user")
|
31
|
+
repo_name: str = match.group("repo")
|
32
|
+
return user, repo_name
|
33
|
+
return None, None
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import os
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
import git
|
5
|
+
|
6
|
+
from . import user_repo
|
7
|
+
|
8
|
+
|
9
|
+
def permalink(
|
10
|
+
repo: git.Repo | None = None, filepath: str | os.PathLike[str] | None = None
|
11
|
+
) -> str | None:
|
12
|
+
if repo is None:
|
13
|
+
repo = git.Repo(search_parent_directories=True)
|
14
|
+
user: str | None
|
15
|
+
repo_str: str | None
|
16
|
+
user, repo_str = user_repo(repo)
|
17
|
+
if not (user and repo):
|
18
|
+
return None
|
19
|
+
sha: str = repo.head.commit.hexsha
|
20
|
+
link: str = f"https://github.com/{user}/{repo_str}/tree/{sha}"
|
21
|
+
if filepath:
|
22
|
+
filepath = Path(filepath).absolute()
|
23
|
+
if not filepath.is_relative_to(repo.working_dir):
|
24
|
+
return None
|
25
|
+
link += f"/{Path(filepath).as_posix()}"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import re
|
2
|
+
|
3
|
+
import git
|
4
|
+
|
5
|
+
GITHUB_URL_PATTERNS: list[str] = [
|
6
|
+
r"https://github\.com/(?P<user>[^/]+)/(?P<repo>[^/]+)(?:\.git)?"
|
7
|
+
]
|
8
|
+
|
9
|
+
|
10
|
+
def user_repo(
|
11
|
+
repo: git.Repo | None = None,
|
12
|
+
) -> tuple[str, str] | tuple[None, None]:
|
13
|
+
if repo is None:
|
14
|
+
repo = git.Repo(search_parent_directories=True)
|
15
|
+
remote: git.Remote = repo.remote()
|
16
|
+
for pattern in GITHUB_URL_PATTERNS:
|
17
|
+
match: re.Match[str] | None = re.match(pattern, remote.url)
|
18
|
+
if not match:
|
19
|
+
continue
|
20
|
+
user: str = match.group("user")
|
21
|
+
repo_name: str = match.group("repo")
|
22
|
+
return user, repo_name
|
23
|
+
return None, None
|
@@ -0,0 +1,134 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
import datetime
|
4
|
+
import functools
|
5
|
+
import os
|
6
|
+
import sys
|
7
|
+
from collections.abc import Sequence
|
8
|
+
from pathlib import Path
|
9
|
+
from typing import Generic, TypeVar
|
10
|
+
|
11
|
+
from loguru import logger
|
12
|
+
|
13
|
+
from liblaf import cherries
|
14
|
+
|
15
|
+
_T = TypeVar("_T")
|
16
|
+
|
17
|
+
|
18
|
+
class Run(Generic[_T]):
|
19
|
+
enabled: bool = True
|
20
|
+
plugins: list[cherries.Plugin]
|
21
|
+
_backend: _T
|
22
|
+
|
23
|
+
def __init__(
|
24
|
+
self,
|
25
|
+
plugins: Sequence[cherries.Plugin] | None = None,
|
26
|
+
*,
|
27
|
+
enabled: bool = True,
|
28
|
+
) -> None:
|
29
|
+
if plugins is None:
|
30
|
+
plugins = cherries.default_plugins()
|
31
|
+
self.plugins = sorted(plugins, key=lambda plugin: plugin.priority)
|
32
|
+
self.enabled = enabled
|
33
|
+
set_current_run(self)
|
34
|
+
if self.enabled:
|
35
|
+
self.start()
|
36
|
+
|
37
|
+
@property
|
38
|
+
def backend(self) -> str:
|
39
|
+
return "dummy"
|
40
|
+
|
41
|
+
@property
|
42
|
+
def id(self) -> str:
|
43
|
+
raise NotImplementedError
|
44
|
+
|
45
|
+
@functools.cached_property
|
46
|
+
def creation_time(self) -> datetime.datetime:
|
47
|
+
return datetime.datetime.now().astimezone()
|
48
|
+
|
49
|
+
@functools.cached_property
|
50
|
+
def entrypoint(self) -> Path:
|
51
|
+
return Path(sys.argv[0]).absolute()
|
52
|
+
|
53
|
+
@property
|
54
|
+
def name(self) -> str:
|
55
|
+
raise NotImplementedError
|
56
|
+
|
57
|
+
@property
|
58
|
+
def url(self) -> str:
|
59
|
+
raise NotImplementedError
|
60
|
+
|
61
|
+
def start(self) -> None:
|
62
|
+
for plugin in self.plugins:
|
63
|
+
plugin.pre_start()
|
64
|
+
self._backend = self._start()
|
65
|
+
for plugin in self.plugins:
|
66
|
+
plugin.post_start(self)
|
67
|
+
self.log_other("cherries/creation_time", self.creation_time)
|
68
|
+
|
69
|
+
def end(self) -> None:
|
70
|
+
for plugin in reversed(self.plugins):
|
71
|
+
plugin.pre_end(self)
|
72
|
+
self._end()
|
73
|
+
for plugin in reversed(self.plugins):
|
74
|
+
plugin.post_end(self)
|
75
|
+
|
76
|
+
def log_metric(
|
77
|
+
self,
|
78
|
+
key: str,
|
79
|
+
value: float,
|
80
|
+
*,
|
81
|
+
step: float | None = None,
|
82
|
+
timestamp: float | None = None,
|
83
|
+
**kwargs,
|
84
|
+
) -> None:
|
85
|
+
logger.opt(depth=1).debug("{}: {}", key, value)
|
86
|
+
if self.enabled:
|
87
|
+
self._log_metric(key, value, step=step, timestamp=timestamp, **kwargs)
|
88
|
+
|
89
|
+
def log_other(
|
90
|
+
self,
|
91
|
+
key: str,
|
92
|
+
value: bool | float | str | datetime.datetime,
|
93
|
+
**kwargs,
|
94
|
+
) -> None:
|
95
|
+
logger.opt(depth=1).info("{}: {}", key, value)
|
96
|
+
if self.enabled:
|
97
|
+
self._log_other(key, value, **kwargs)
|
98
|
+
|
99
|
+
def upload_file(self, key: str, path: str | os.PathLike[str], **kwargs) -> None:
|
100
|
+
path = Path(path)
|
101
|
+
logger.opt(depth=1).info("Uploading file: {}", path)
|
102
|
+
if self.enabled:
|
103
|
+
self._upload_file(key, path, **kwargs)
|
104
|
+
|
105
|
+
def _start(self) -> _T: ...
|
106
|
+
def _end(self) -> None: ...
|
107
|
+
def _log_metric(
|
108
|
+
self,
|
109
|
+
key: str,
|
110
|
+
value: float,
|
111
|
+
*,
|
112
|
+
step: float | None = None,
|
113
|
+
timestamp: float | None = None,
|
114
|
+
**kwargs,
|
115
|
+
) -> None: ...
|
116
|
+
def _log_other(
|
117
|
+
self, key: str, value: bool | float | str | datetime.datetime, **kwargs
|
118
|
+
) -> None: ...
|
119
|
+
def _upload_file(self, key: str, path: Path, **kwargs) -> None: ...
|
120
|
+
|
121
|
+
|
122
|
+
_current_run: Run | None = None
|
123
|
+
|
124
|
+
|
125
|
+
def current_run() -> Run:
|
126
|
+
global _current_run # noqa: PLW0603
|
127
|
+
if _current_run is None:
|
128
|
+
_current_run = Run()
|
129
|
+
return _current_run
|
130
|
+
|
131
|
+
|
132
|
+
def set_current_run(run: Run) -> None:
|
133
|
+
global _current_run # noqa: PLW0603
|
134
|
+
_current_run = run
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import datetime
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
import neptune
|
5
|
+
import neptune.common.exceptions
|
6
|
+
|
7
|
+
from liblaf import cherries
|
8
|
+
|
9
|
+
|
10
|
+
class RunNeptune(cherries.Run[neptune.Run]):
|
11
|
+
@property
|
12
|
+
def backend(self) -> str:
|
13
|
+
return "neptune"
|
14
|
+
|
15
|
+
@property
|
16
|
+
def id(self) -> str:
|
17
|
+
return self._backend["sys/id"].fetch()
|
18
|
+
|
19
|
+
@property
|
20
|
+
def name(self) -> str:
|
21
|
+
return self._backend["sys/name"].fetch()
|
22
|
+
|
23
|
+
@property
|
24
|
+
def url(self) -> str:
|
25
|
+
return self._backend.get_url()
|
26
|
+
|
27
|
+
def _start(self) -> neptune.Run:
|
28
|
+
return neptune.init_run()
|
29
|
+
|
30
|
+
def _end(self) -> None:
|
31
|
+
return self._backend.stop()
|
32
|
+
|
33
|
+
def _log_metric(
|
34
|
+
self,
|
35
|
+
key: str,
|
36
|
+
value: float,
|
37
|
+
*,
|
38
|
+
step: float | None = None,
|
39
|
+
timestamp: float | None = None,
|
40
|
+
**kwargs, # noqa: ARG002
|
41
|
+
) -> None:
|
42
|
+
self._backend[key].append(value, step=step, timestamp=timestamp)
|
43
|
+
|
44
|
+
def _log_other(
|
45
|
+
self,
|
46
|
+
key: str,
|
47
|
+
value: bool | float | str | datetime.datetime,
|
48
|
+
**kwargs, # noqa: ARG002
|
49
|
+
) -> None:
|
50
|
+
self._backend[key] = value
|
51
|
+
|
52
|
+
def _upload_file(self, key: str, path: Path, **kwargs) -> None:
|
53
|
+
return self._backend[key].upload(path, **kwargs)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
import pydantic_settings as ps
|
4
|
+
|
5
|
+
from liblaf import cherries
|
6
|
+
|
7
|
+
|
8
|
+
class Plugin(ps.BaseSettings):
|
9
|
+
enabled: bool = True
|
10
|
+
priority: float = 0.0
|
11
|
+
|
12
|
+
def pre_start(self) -> None:
|
13
|
+
if self.enabled:
|
14
|
+
self._pre_start()
|
15
|
+
|
16
|
+
def post_start(self, run: cherries.Run) -> None:
|
17
|
+
if self.enabled:
|
18
|
+
self._post_start(run)
|
19
|
+
|
20
|
+
def pre_end(self, run: cherries.Run) -> None:
|
21
|
+
if self.enabled:
|
22
|
+
self._pre_end(run)
|
23
|
+
|
24
|
+
def post_end(self, run: cherries.Run) -> None:
|
25
|
+
if self.enabled:
|
26
|
+
self._post_end(run)
|
27
|
+
|
28
|
+
def _pre_start(self) -> None: ...
|
29
|
+
def _post_start(self, run: cherries.Run) -> None: ...
|
30
|
+
def _pre_end(self, run: cherries.Run) -> None: ...
|
31
|
+
def _post_end(self, run: cherries.Run) -> None: ...
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import git
|
2
|
+
import pydantic_settings as ps
|
3
|
+
|
4
|
+
from liblaf import cherries
|
5
|
+
|
6
|
+
|
7
|
+
class PluginGit(cherries.Plugin):
|
8
|
+
model_config = ps.SettingsConfigDict(env_prefix="LIBLAF_CHERRIES_GIT_")
|
9
|
+
auto_commit: bool = True
|
10
|
+
auto_commit_message: str = cherries.git.DEFAULT_COMMIT_MESSAGE
|
11
|
+
|
12
|
+
def _pre_start(self) -> None:
|
13
|
+
if self.auto_commit:
|
14
|
+
cherries.git.commit(self.auto_commit_message)
|
15
|
+
|
16
|
+
def _post_start(self, run: cherries.Run) -> None:
|
17
|
+
r = git.Repo(search_parent_directories=True)
|
18
|
+
sha: str = r.head.commit.hexsha
|
19
|
+
run.log_other("cherries/git/sha", sha)
|
20
|
+
if browse := cherries.git.permalink(repo=r):
|
21
|
+
run.log_other("cherries/git/browse", browse)
|
22
|
+
if entrypoint := cherries.git.permalink(repo=r, filepath=run.entrypoint):
|
23
|
+
run.log_other("cherries/git/entrypoint", entrypoint)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import pydantic_settings as ps
|
2
|
+
from loguru import logger
|
3
|
+
|
4
|
+
# make pyright happy
|
5
|
+
import liblaf.grapes as grapes # noqa: PLR0402
|
6
|
+
from liblaf import cherries
|
7
|
+
|
8
|
+
|
9
|
+
class PluginLogging(cherries.Plugin):
|
10
|
+
model_config = ps.SettingsConfigDict(env_prefix="LIBLAF_CHERRIES_LOGGING_")
|
11
|
+
|
12
|
+
def _pre_start(self) -> None:
|
13
|
+
grapes.init_logging()
|
14
|
+
logger.add("run.log", enqueue=True, mode="w")
|
15
|
+
logger.add("run.log.jsonl", serialize=True, enqueue=True, mode="w")
|
16
|
+
|
17
|
+
def _pre_end(self, run: cherries.Run) -> None:
|
18
|
+
logger.complete()
|
19
|
+
run.upload_file("cherries/logging/run.log", "run.log")
|
20
|
+
run.upload_file("cherries/logging/run.log.jsonl", "run.log.jsonl")
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import os
|
2
|
+
import subprocess as sp
|
3
|
+
from pathlib import Path
|
4
|
+
|
5
|
+
import pydantic
|
6
|
+
import pydantic_settings as ps
|
7
|
+
from loguru import logger
|
8
|
+
|
9
|
+
from liblaf import cherries
|
10
|
+
|
11
|
+
|
12
|
+
def default_config() -> Path:
|
13
|
+
git_root: Path = cherries.git.root()
|
14
|
+
for path in [
|
15
|
+
git_root / ".config" / "resticprofile.toml",
|
16
|
+
git_root / "resticprofile.toml",
|
17
|
+
]:
|
18
|
+
if path.exists():
|
19
|
+
return path
|
20
|
+
return git_root / ".config" / "resticprofile.toml"
|
21
|
+
|
22
|
+
|
23
|
+
class PluginRestic(cherries.Plugin):
|
24
|
+
model_config = ps.SettingsConfigDict(env_prefix="LIBLAF_CHERRIES_RESTIC_")
|
25
|
+
config: Path = pydantic.Field(default_factory=default_config)
|
26
|
+
name: str | None = None
|
27
|
+
dry_run: bool = False
|
28
|
+
|
29
|
+
def _pre_end(self, run: cherries.Run) -> None:
|
30
|
+
if not self.config.exists():
|
31
|
+
logger.warning("configuration file '{}' was not found", self.config)
|
32
|
+
return
|
33
|
+
args: list[str | os.PathLike[str]] = [
|
34
|
+
"resticprofile",
|
35
|
+
"--config",
|
36
|
+
self.config,
|
37
|
+
"backup",
|
38
|
+
]
|
39
|
+
if self.name:
|
40
|
+
args += ["--name", self.name]
|
41
|
+
if self.dry_run:
|
42
|
+
args.append("--dry-run")
|
43
|
+
args += ["--time", run.creation_time.strftime("%Y-%m-%d %H:%M:%S")]
|
44
|
+
proc: sp.CompletedProcess[bytes] = sp.run(args, check=False)
|
45
|
+
run.log_other("cherries/restic/returncode", proc.returncode)
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: liblaf-cherries
|
3
|
+
Version: 0.0.0
|
4
|
+
Summary: Add your description here
|
5
|
+
Project-URL: Changelog, https://github.com/liblaf/cherries/blob/main/CHANGELOG.md
|
6
|
+
Project-URL: Homepage, https://github.com/liblaf/cherries
|
7
|
+
Project-URL: Issue Tracker, https://github.com/liblaf/cherries/issues
|
8
|
+
Project-URL: Release Notes, https://github.com/liblaf/cherries/releases
|
9
|
+
Project-URL: Source Code, https://github.com/liblaf/cherries
|
10
|
+
Author-email: liblaf <30631553+liblaf@users.noreply.github.com>
|
11
|
+
License-Expression: MIT
|
12
|
+
License-File: LICENSE
|
13
|
+
Requires-Python: >=3.12
|
14
|
+
Requires-Dist: gitpython<4,>=3.1.44
|
15
|
+
Requires-Dist: lazy-loader<0.5,>=0.4
|
16
|
+
Requires-Dist: liblaf-grapes<0.0.1,>=0.0.0
|
17
|
+
Requires-Dist: loguru<0.8,>=0.7.3
|
18
|
+
Requires-Dist: neptune<2,>=1.13.0
|
19
|
+
Requires-Dist: pydantic-settings<3,>=2.7.1
|
20
|
+
Requires-Dist: pydantic<3,>=2.10.5
|
21
|
+
Description-Content-Type: text/markdown
|
22
|
+
|
23
|
+
# 🍒 Cherries
|
@@ -0,0 +1,29 @@
|
|
1
|
+
liblaf/cherries/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
2
|
+
liblaf/cherries/__init__.pyi,sha256=Qt8P1Fgtt2bC-5KnSjF0ruTKAtT9p4dGmnEfCbsdeR0,506
|
3
|
+
liblaf/cherries/_start.py,sha256=VF2TyYcX6jWPxLA4wtLoNLIjMRhwXt3XQlR7xwnTdGI,1153
|
4
|
+
liblaf/cherries/git/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
5
|
+
liblaf/cherries/git/__init__.pyi,sha256=p52L1d1kuiwyc9tBz648Bm76C9DJLbgleE8EKRJM4Lg,371
|
6
|
+
liblaf/cherries/git/_commit.py,sha256=jnAtCKljNnzhXK90cj3adAYkPvcnLnOrHWA8YWhtZF4,482
|
7
|
+
liblaf/cherries/git/_entrypoint.py,sha256=My_TmLqpGX4NJV4qjQvmHtnwhxX_B2ilfuYvpj2ftaM,262
|
8
|
+
liblaf/cherries/git/_repo.py,sha256=bE8apxawGie8KuEjQCDAVRSGTP7Qt6jDDtoXMhfWy4w,907
|
9
|
+
liblaf/cherries/git/github/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
10
|
+
liblaf/cherries/git/github/__init__.pyi,sha256=jspOamBde7EtGOqsIzWg75jFToVHRhG4hfiEw1MDz80,96
|
11
|
+
liblaf/cherries/git/github/_link.py,sha256=f_AcdKMhukUZ2fgBtC0usBrwnpAHaLYo9EhkZYesZuQ,693
|
12
|
+
liblaf/cherries/git/github/_repo.py,sha256=I3vjgonI_SPrytf68qzLAej880Zn7cPryaK4PPoVZpU,627
|
13
|
+
liblaf/cherries/integration/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
14
|
+
liblaf/cherries/integration/__init__.pyi,sha256=jSy9QJwmUTygGUNeOdkP5sk_thCJfXwYH9TMKJHfvhI,152
|
15
|
+
liblaf/cherries/integration/_abc.py,sha256=se7Jf89HHs4Ssf1W7F_RTJDcPLIYkOJftmmVFRpytZA,3418
|
16
|
+
liblaf/cherries/integration/_neptune.py,sha256=zpV5MN7_0Cqb-_t0vX2rXlHs-j5hDgH7FdwUczDo0Qc,1232
|
17
|
+
liblaf/cherries/plugin/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
18
|
+
liblaf/cherries/plugin/__init__.pyi,sha256=oDd9fUqu2YRb2EP-15j6YgHT40MH22O_jJbt9goPb3s,198
|
19
|
+
liblaf/cherries/plugin/_abc.py,sha256=2ILWpFNLz7dCo-YL_UNzg3BaWoYyTuFOv98xBZZvyZE,806
|
20
|
+
liblaf/cherries/plugin/_default.py,sha256=VrFEW2AQqsBNALPNzLBlStRk_2XcyMu1XwzhjRGNr8Q,152
|
21
|
+
liblaf/cherries/plugin/_git.py,sha256=_t9lEAQOzEHV2qwzHwirdYg1t1br11Lp3hO4ArjVrXI,853
|
22
|
+
liblaf/cherries/plugin/_logging.py,sha256=AGE9HZsRm-Z8hQn0HBSuu77PulF-_EN_Y29QvSMC4Bk,686
|
23
|
+
liblaf/cherries/plugin/_restic.py,sha256=qW48Q043xZTB3xces9EJn-sFF4whnSlgVAjq2FnUoC4,1383
|
24
|
+
liblaf/cherries/utils/__init__.py,sha256=OHb6Xou2v6u42swTgjRfzej4CIlRg4OmgOIQXUiRjKA,97
|
25
|
+
liblaf/cherries/utils/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
+
liblaf_cherries-0.0.0.dist-info/METADATA,sha256=DVW58aVJrIPxiuHFMWXUD73Ncyq0_6cJjy_TMR1Pwo8,890
|
27
|
+
liblaf_cherries-0.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
liblaf_cherries-0.0.0.dist-info/licenses/LICENSE,sha256=Ph4NzyU3lGVDeYv-mf8aRmImH8v9rVL9F362FV4G6Ow,1063
|
29
|
+
liblaf_cherries-0.0.0.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 liblaf
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|