shiftmydata 0.1.0__tar.gz → 0.2.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.
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/.gitignore +7 -3
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/PKG-INFO +1 -1
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/pyproject.toml +1 -1
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/__init__.py +1 -1
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/store.py +8 -5
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/README.md +0 -0
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/__main__.py +0 -0
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/api.py +0 -0
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/cli.py +0 -0
- {shiftmydata-0.1.0 → shiftmydata-0.2.0}/src/shiftmydata/dpop.py +0 -0
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
!.env.example
|
|
4
4
|
ops/secrets/*
|
|
5
5
|
!ops/secrets/.gitkeep
|
|
6
|
+
# Database dumps taken by hand: the whole database, vault key and sealed tokens included.
|
|
7
|
+
backups/
|
|
8
|
+
# ops/security-check.sh reports: a map of what is unpatched where, so not for the repo.
|
|
9
|
+
reports/
|
|
6
10
|
*.pem
|
|
7
11
|
*.key
|
|
8
12
|
|
|
@@ -26,6 +30,6 @@ dist/
|
|
|
26
30
|
|
|
27
31
|
# Agents' git worktrees: their work reaches main as merged branches, never as files here.
|
|
28
32
|
.claude/worktrees/
|
|
29
|
-
|
|
30
|
-
# wrangler run from the repo root caches the account here
|
|
31
|
-
.wrangler/
|
|
33
|
+
|
|
34
|
+
# wrangler run from the repo root caches the account here
|
|
35
|
+
.wrangler/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: shiftmydata
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: ShiftMyData from the command line: list, copy and sync between your clouds.
|
|
5
5
|
Project-URL: Homepage, https://shiftmydata.com
|
|
6
6
|
Project-URL: Documentation, https://shiftmydata.com/developers/
|
|
@@ -9,7 +9,6 @@ from __future__ import annotations
|
|
|
9
9
|
import contextlib
|
|
10
10
|
import json
|
|
11
11
|
import os
|
|
12
|
-
import stat
|
|
13
12
|
import sys
|
|
14
13
|
from pathlib import Path
|
|
15
14
|
from typing import Any
|
|
@@ -63,10 +62,14 @@ def save(name: str, profile: str, value: dict[str, Any]) -> None:
|
|
|
63
62
|
else:
|
|
64
63
|
return
|
|
65
64
|
path = _file(f"{profile}-{name}")
|
|
66
|
-
path.parent.mkdir(parents=True, exist_ok=True)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
path.parent.mkdir(mode=0o700, parents=True, exist_ok=True)
|
|
66
|
+
# Created owner-only (0600) from the start, so no other user can read it even for a moment.
|
|
67
|
+
fd = os.open(path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600)
|
|
68
|
+
with os.fdopen(fd, "w", encoding="utf-8") as out:
|
|
69
|
+
if sys.platform != "win32":
|
|
70
|
+
# A file left by an older version may be looser: tighten it before writing.
|
|
71
|
+
os.fchmod(fd, 0o600)
|
|
72
|
+
out.write(raw)
|
|
70
73
|
|
|
71
74
|
|
|
72
75
|
def forget(name: str, profile: str) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|