Metadata-Version: 2.5
Name: shiftmydata
Version: 0.1.0
Summary: ShiftMyData from the command line: list, copy and sync between your clouds.
Project-URL: Homepage, https://shiftmydata.com
Project-URL: Documentation, https://shiftmydata.com/developers/
Author: ShiftMyData
License-Expression: MIT
Keywords: backup,cli,cloud,shiftmydata,sync,transfer
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Archiving :: Backup
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Requires-Dist: cryptography>=43
Requires-Dist: httpx>=0.27
Requires-Dist: keyring>=25
Provides-Extra: dev
Requires-Dist: mypy>=1.11; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Description-Content-Type: text/markdown

# shiftmydata

ShiftMyData from the command line: list, copy, sync and save between your clouds.

```sh
pipx install shiftmydata        # or: uv tool install shiftmydata
shiftmydata login               # opens shiftmydata.com; check the code and allow
shiftmydata clouds
shiftmydata ls "My Drive:Projects"
shiftmydata cp "My Drive:Projects" "Dropbox:Backup/Projects" --watch
shiftmydata cp ./report.pdf "My Drive:Reports"
shiftmydata cp "My Drive:Reports/report.pdf" .
shiftmydata sync "My Drive:Photos" "OneDrive:Photos" --max-delete 50
shiftmydata save https://example.com/file.zip "My Drive:Downloads"
shiftmydata save https://example.com/article "My Drive:Reading" --as page
shiftmydata jobs
shiftmydata schedules
shiftmydata run "Nightly backup"
shiftmydata trigger "Nightly backup" --signed
```

A place is `CLOUD:PATH`: the cloud's name as the Clouds page shows it (or its id), then the
folder. Every command takes `--json`.

## How it signs in

`login` uses the device flow: it shows a short code and opens shiftmydata.com, where you check
the code and choose what the CLI may do. The sign-in is bound to a key made on this machine
(DPoP): the key stays in the system keyring (Keychain, Credential Manager or Secret Service),
or in `~/.config/shiftmydata` readable only by you when there is no keyring. A copied token is
useless without it. `logout` revokes the sign-in and forgets the key. To see or remove the CLI's
access from the website, go to Account, Developers.

`--profile NAME` keeps several sign-ins apart.

## Development

```sh
cd cli
uv venv && uv pip install -e ".[dev]"
ruff check . && mypy --strict src
```
