timevault 0.1.0__tar.gz
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.
- timevault-0.1.0/.flake8 +4 -0
- timevault-0.1.0/.github/workflows/ci.yml +60 -0
- timevault-0.1.0/.github/workflows/publish.yml +43 -0
- timevault-0.1.0/.gitignore +169 -0
- timevault-0.1.0/.prompt_tracking/2025-01-02T14-53-45-repository-completeness-analysis.md +10 -0
- timevault-0.1.0/.prompt_tracking/2025-09-03T10-50-43-missing-timeless-repo-keychain.md +12 -0
- timevault-0.1.0/.prompt_tracking/2025-09-03T10-52-24-keychain-service-name-change.md +12 -0
- timevault-0.1.0/.prompt_tracking/2025-09-03T10-54-19-keychain-structure-correction.md +12 -0
- timevault-0.1.0/.windsurf/config.toml +2 -0
- timevault-0.1.0/.windsurf/rules/prompt-tracking.md +30 -0
- timevault-0.1.0/.windsurfrules.md +2 -0
- timevault-0.1.0/LICENSE +191 -0
- timevault-0.1.0/PKG-INFO +124 -0
- timevault-0.1.0/README.md +87 -0
- timevault-0.1.0/agents.md +92 -0
- timevault-0.1.0/pyproject.toml +93 -0
- timevault-0.1.0/scripts/run_ci_locally.sh +34 -0
- timevault-0.1.0/specification.md +155 -0
- timevault-0.1.0/tests/unit/test_cli.py +437 -0
- timevault-0.1.0/tests/unit/test_manifest.py +133 -0
- timevault-0.1.0/tests/unit/test_platform.py +65 -0
- timevault-0.1.0/tests/unit/test_restic_engine.py +291 -0
- timevault-0.1.0/tests/unit/test_retention.py +178 -0
- timevault-0.1.0/timeless_py/__init__.py +7 -0
- timevault-0.1.0/timeless_py/cli.py +1000 -0
- timevault-0.1.0/timeless_py/engine/__init__.py +136 -0
- timevault-0.1.0/timeless_py/engine/restic.py +436 -0
- timevault-0.1.0/timeless_py/manifest/__init__.py +9 -0
- timevault-0.1.0/timeless_py/manifest/apps.py +113 -0
- timevault-0.1.0/timeless_py/manifest/brew.py +58 -0
- timevault-0.1.0/timeless_py/manifest/mas.py +50 -0
- timevault-0.1.0/timeless_py/manifest/replay.py +118 -0
- timevault-0.1.0/timeless_py/platform.py +33 -0
- timevault-0.1.0/timeless_py/retention.py +342 -0
timevault-0.1.0/.flake8
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: macos-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ['3.11', '3.12']
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v4
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
cache: 'pip'
|
|
24
|
+
|
|
25
|
+
- name: Install uv
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install uv
|
|
28
|
+
|
|
29
|
+
- name: Create virtual environment and install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
uv venv
|
|
32
|
+
. .venv/bin/activate
|
|
33
|
+
uv pip install -e ".[dev]"
|
|
34
|
+
|
|
35
|
+
- name: Lint with ruff
|
|
36
|
+
run: |
|
|
37
|
+
.venv/bin/ruff check --fix .
|
|
38
|
+
|
|
39
|
+
- name: Check formatting with black
|
|
40
|
+
run: |
|
|
41
|
+
.venv/bin/black --check .
|
|
42
|
+
|
|
43
|
+
- name: Check imports with isort
|
|
44
|
+
run: |
|
|
45
|
+
.venv/bin/isort --check .
|
|
46
|
+
|
|
47
|
+
- name: Type check with mypy
|
|
48
|
+
run: |
|
|
49
|
+
.venv/bin/mypy --strict .
|
|
50
|
+
|
|
51
|
+
- name: Test with pytest
|
|
52
|
+
run: |
|
|
53
|
+
.venv/bin/pytest --cov=timeless_py
|
|
54
|
+
|
|
55
|
+
# - name: Check coverage threshold
|
|
56
|
+
# run: |
|
|
57
|
+
# .venv/bin/python -c "import sys, xml.etree.ElementTree as ET; \
|
|
58
|
+
# coverage = float(ET.parse('coverage.xml').getroot().attrib['line-rate']) * 100; \
|
|
59
|
+
# sys.exit(0 if coverage >= 90 else 1)" || \
|
|
60
|
+
# (echo "::error::Coverage below threshold: ${coverage}%"; exit 1)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
id-token: write # Required for trusted publishing (OIDC)
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build distribution
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v4
|
|
20
|
+
|
|
21
|
+
- name: Build package
|
|
22
|
+
run: uv build
|
|
23
|
+
|
|
24
|
+
- name: Upload build artifacts
|
|
25
|
+
uses: actions/upload-artifact@v4
|
|
26
|
+
with:
|
|
27
|
+
name: dist
|
|
28
|
+
path: dist/
|
|
29
|
+
|
|
30
|
+
publish:
|
|
31
|
+
name: Publish to PyPI
|
|
32
|
+
needs: build
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
environment: pypi
|
|
35
|
+
steps:
|
|
36
|
+
- name: Download build artifacts
|
|
37
|
+
uses: actions/download-artifact@v4
|
|
38
|
+
with:
|
|
39
|
+
name: dist
|
|
40
|
+
path: dist/
|
|
41
|
+
|
|
42
|
+
- name: Publish to PyPI
|
|
43
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
./MANIFEST
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
cover/
|
|
52
|
+
|
|
53
|
+
# Translations
|
|
54
|
+
*.mo
|
|
55
|
+
*.pot
|
|
56
|
+
|
|
57
|
+
# Django stuff:
|
|
58
|
+
*.log
|
|
59
|
+
local_settings.py
|
|
60
|
+
db.sqlite3
|
|
61
|
+
db.sqlite3-journal
|
|
62
|
+
|
|
63
|
+
# Flask stuff:
|
|
64
|
+
instance/
|
|
65
|
+
.webassets-cache
|
|
66
|
+
|
|
67
|
+
# Scrapy stuff:
|
|
68
|
+
.scrapy
|
|
69
|
+
|
|
70
|
+
# Sphinx documentation
|
|
71
|
+
docs/_build/
|
|
72
|
+
|
|
73
|
+
# PyBuilder
|
|
74
|
+
.pybuilder/
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
86
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
87
|
+
.python-version
|
|
88
|
+
|
|
89
|
+
# pipenv
|
|
90
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
91
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
92
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
93
|
+
# install all needed dependencies.
|
|
94
|
+
Pipfile.lock
|
|
95
|
+
|
|
96
|
+
# poetry
|
|
97
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
98
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
99
|
+
# commonly ignored for libraries.
|
|
100
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
101
|
+
poetry.lock
|
|
102
|
+
|
|
103
|
+
# uv
|
|
104
|
+
uv.lock
|
|
105
|
+
|
|
106
|
+
# pdm
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
108
|
+
pdm.lock
|
|
109
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
110
|
+
# in version control.
|
|
111
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
112
|
+
.pdm.toml
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# macOS specific
|
|
158
|
+
.DS_Store
|
|
159
|
+
.AppleDouble
|
|
160
|
+
.LSOverride
|
|
161
|
+
|
|
162
|
+
# PyCharm
|
|
163
|
+
.idea/
|
|
164
|
+
|
|
165
|
+
# VS Code
|
|
166
|
+
.vscode/
|
|
167
|
+
*.code-workspace
|
|
168
|
+
|
|
169
|
+
.ruff_cache
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Prompt Tracking - Repository Completeness Analysis
|
|
2
|
+
|
|
3
|
+
**Timestamp**: 2025-01-02T14:53:45
|
|
4
|
+
|
|
5
|
+
**Prompt**: How complete is this repository compared to it's specification?
|
|
6
|
+
|
|
7
|
+
**Context**:
|
|
8
|
+
- Analyzing the timeless-py backup orchestration tool against its detailed specification document
|
|
9
|
+
- Primary files include specification.md, CLI implementation, engine modules, and manifest generators
|
|
10
|
+
- Key evaluation points are milestone completion status, functional requirements coverage, and architectural alignment with the documented design
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Prompt Tracking - 2025-09-03T10:50:43
|
|
2
|
+
|
|
3
|
+
## Timestamp
|
|
4
|
+
2025-09-03T10:50:43-06:00
|
|
5
|
+
|
|
6
|
+
## Prompt
|
|
7
|
+
I have the following entry in my keychain, but when I run timeless, I see the following results: timeless backup -v [shows error about repository path not specified]
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
- User has TIMELESS_PASSWORD keychain entry but missing TIMELESS_REPO entry
|
|
11
|
+
- The timeless-py system requires both keychain entries: TIMELESS_REPO (repository path) and TIMELESS_PASSWORD (repository password)
|
|
12
|
+
- Error occurs because get_repo_credentials() function cannot find the repository path in keychain, environment variables, or command line arguments
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Prompt Tracking - 2025-09-03T10:52:24
|
|
2
|
+
|
|
3
|
+
## Timestamp
|
|
4
|
+
2025-09-03T10:52:24-06:00
|
|
5
|
+
|
|
6
|
+
## Prompt
|
|
7
|
+
Let's change to code to conform to what is currently in they keychain, e.g. name = 'TIMELESS_REPO" and 'TIMELESS_PASSWORD' rather than 'timeless-py'
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
- Modified keychain integration to use account names as service names instead of shared service name
|
|
11
|
+
- Updated get_repo_credentials() function to use keyring.get_password("TIMELESS_REPO", "TIMELESS_REPO") and keyring.get_password("TIMELESS_PASSWORD", "TIMELESS_PASSWORD")
|
|
12
|
+
- Updated init command to save credentials using the same pattern for consistency with existing keychain entries
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Prompt Tracking - 2025-09-03T10-54-19
|
|
2
|
+
|
|
3
|
+
## Timestamp
|
|
4
|
+
2025-09-03T10:54:19-06:00
|
|
5
|
+
|
|
6
|
+
## Prompt
|
|
7
|
+
ok in KeyChain I see name of either "TIMELESS_REPO" or "TIMELESS_PASSWROD", and the account is "timeless-py". Is the code correct now?
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
- Corrected keychain integration to match actual keychain structure where Name is the service and Account is "timeless-py"
|
|
11
|
+
- Updated code to use keyring.get_password("TIMELESS_REPO", "timeless-py") and keyring.get_password("TIMELESS_PASSWORD", "timeless-py")
|
|
12
|
+
- Fixed both credential retrieval and saving functions to use the correct service/account pattern
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: always_on
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Prompt Tracking Requirements
|
|
6
|
+
|
|
7
|
+
After every prompt from the human user, create a timestamped tracking file in the appropriate `.prompt_tracking` directory with the following structure:
|
|
8
|
+
|
|
9
|
+
### Required File Content
|
|
10
|
+
Each tracking file must include:
|
|
11
|
+
|
|
12
|
+
1. **Timestamp**: ISO format timestamp (YYYY-MM-DDTHH-mm-ss)
|
|
13
|
+
2. **Prompt**: The exact user request/question
|
|
14
|
+
3. **Context**: Exactly 3 bullet points summarizing:
|
|
15
|
+
- What specific task, document, or system component is being worked on
|
|
16
|
+
- Primary files, directories, or architectural elements relevant to the request
|
|
17
|
+
- Important limitations, requirements, or decision points that affect the work
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### File Location Rules
|
|
21
|
+
- **Project-scoped prompts**: Place in project root `.prompt_tracking/` directory
|
|
22
|
+
- **Specific component prompts**: Place directly in the relevant component's `.prompt_tracking/` directory
|
|
23
|
+
- **Example**: If prompt concerns `shared-memory/` designs, use `shared-memory/.prompt_tracking/`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### File Naming Convention
|
|
28
|
+
Use format: `YYYY-MM-DDTHH-mm-ss-brief-description.md`
|
|
29
|
+
|
|
30
|
+
This ensures comprehensive tracking of all user interactions with proper context for future reference.
|
timevault-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2024 Dan Rapp
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
timevault-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: timevault
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Time Machine-style personal backup orchestrated by Python & uv
|
|
5
|
+
Project-URL: Homepage, https://github.com/rappdw/timeless
|
|
6
|
+
Project-URL: Repository, https://github.com/rappdw/timeless
|
|
7
|
+
Author-email: Dan Rapp <rappdw@gmail.com>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: System :: Archiving :: Backup
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Requires-Dist: keyring
|
|
19
|
+
Requires-Dist: keyrings-alt
|
|
20
|
+
Requires-Dist: pycron
|
|
21
|
+
Requires-Dist: pyyaml
|
|
22
|
+
Requires-Dist: rich
|
|
23
|
+
Requires-Dist: typer
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: black<26,>=24; extra == 'dev'
|
|
26
|
+
Requires-Dist: hypothesis; extra == 'dev'
|
|
27
|
+
Requires-Dist: isort; extra == 'dev'
|
|
28
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
31
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
32
|
+
Requires-Dist: shiv; extra == 'dev'
|
|
33
|
+
Provides-Extra: macos
|
|
34
|
+
Requires-Dist: launchd; extra == 'macos'
|
|
35
|
+
Requires-Dist: pync; extra == 'macos'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
# Timeless-Py ⏳
|
|
39
|
+
|
|
40
|
+
> Snapshot what matters, remember how to rebuild the rest.
|
|
41
|
+
|
|
42
|
+
Time Machine-style personal backup orchestrated by Python & uv.
|
|
43
|
+
|
|
44
|
+
## Overview
|
|
45
|
+
|
|
46
|
+
Timeless-Py is a modern backup solution designed for macOS, providing:
|
|
47
|
+
|
|
48
|
+
- Hourly, daily, weekly deduplicated snapshots of user data
|
|
49
|
+
- Re-install manifest generation for applications and system packages
|
|
50
|
+
- Engine-agnostic approach with Restic, Borg, and Kopia support
|
|
51
|
+
- Client-side encryption (AES-256) with keys stored in Keychain
|
|
52
|
+
- Simple 10-minute setup: `brew install timeless-py` → `timeless init --wizard`
|
|
53
|
+
|
|
54
|
+
## Features
|
|
55
|
+
|
|
56
|
+
- **Snapshot Management**: Create, browse, and restore backups with ease
|
|
57
|
+
- **Retention Policies**: Define flexible retention policies (hourly/daily/weekly/monthly/yearly)
|
|
58
|
+
- **Manifest Generation**: Auto-generate reinstall manifests for your Mac software
|
|
59
|
+
- **Built-in Security**: Fully encrypted snapshots with secure key management
|
|
60
|
+
- **FUSE Integration**: Mount snapshots as regular volumes for easy browsing
|
|
61
|
+
- **Exclude Patterns**: Specify patterns for files and directories to exclude from backups
|
|
62
|
+
|
|
63
|
+
### M1 Milestone Features
|
|
64
|
+
|
|
65
|
+
- **Restic Engine Integration**: Full integration with Restic for backup, restore, snapshot management, and repository operations
|
|
66
|
+
- **Retention Policy DSL**: Define custom retention policies in YAML to automatically manage snapshot retention
|
|
67
|
+
- **Exclude Patterns Support**: Exclude specific files or directories from backups using glob patterns
|
|
68
|
+
- **Comprehensive CLI Interface**: User-friendly command-line interface for all operations
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Coming soon - once published
|
|
74
|
+
brew install timeless-py
|
|
75
|
+
|
|
76
|
+
# Initialize with wizard
|
|
77
|
+
timeless init --wizard
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Usage
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Create a backup
|
|
84
|
+
timeless backup
|
|
85
|
+
|
|
86
|
+
# Mount latest snapshot
|
|
87
|
+
timeless mount
|
|
88
|
+
|
|
89
|
+
# Restore a file or directory
|
|
90
|
+
timeless restore <snapshot> <path>
|
|
91
|
+
|
|
92
|
+
# List available snapshots
|
|
93
|
+
timeless snapshots
|
|
94
|
+
|
|
95
|
+
# Verify repository integrity
|
|
96
|
+
timeless check
|
|
97
|
+
|
|
98
|
+
# Reinstall software from manifests
|
|
99
|
+
timeless brew-replay
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Development
|
|
103
|
+
|
|
104
|
+
This project requires Python 3.11 or higher.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Setup development environment
|
|
108
|
+
git clone https://github.com/rappdw/timeless.git
|
|
109
|
+
cd timeless
|
|
110
|
+
uv pip install -e ".[dev]"
|
|
111
|
+
|
|
112
|
+
# Run tests
|
|
113
|
+
pytest
|
|
114
|
+
|
|
115
|
+
# Run linting and type checks
|
|
116
|
+
ruff check .
|
|
117
|
+
black --check .
|
|
118
|
+
isort --check .
|
|
119
|
+
mypy --strict .
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
This project is licensed under Apache-2.0. See LICENSE file for more details.
|