A client for the TSD REST API
Project description
TSD API Client
Transport files and directories, no limits on size or amount, resumable by default, synchronise if needed.
Install
pip3 install tsd-api-client
pip3 install tsd-api-client --upgrade # to get the latest version
tacl
Get started with tacl
:
tacl --guide topics # to see all guides available
tacl --help
Set up shell completion:
# for Bash, in ~/.bashrc:
eval "$(_TACL_COMPLETE=source_bash tacl)"
# for Zsh, in ~/.zshrc:
eval "$(_TACL_COMPLETE=source_zsh tacl)"
# for Fish, in ~/.config/fish/completions/tacl.fish
eval (env _TACL_COMPLETE=source_fish tacl)
Running in a container
You can run the container like this:
$ podman run --rm -ti ghcr.io/unioslo/tsd-api-client
tacl --help, for basic help
tacl --guide topics, for extended help
The container entrypoint is tacl
, meaning you can pass runtime parameters to
the ghcr.io/unioslo/tsd-api-client
image as if you were running tacl
on your
host.
$ podman run --rm -ti ghcr.io/unioslo/tsd-api-client --version
tacl v3.5.13
- OS/Arch: Linux/aarch64
- Python: 3.12.2
You should bind mount a writable volume to /config/tacl
in the container, so
that your configuration and session data persists between separate invocation.
$ podman run --rm -ti -v $HOME/.config/tacl:/config/tacl ghcr.io/unioslo/tsd-api-client --register
Choose the API environment by typing one of the following numbers:
1 - for normal production usage
2 - for use over fx03 network
3 - for testing
4 - for Educloud normal production usage
5 - for Educloud testing
>
Likely you will also want to bind mount in another volume to upload data from or write exported data to.
$ podman run --rm -ti \
-v $HOME/.config/tacl:/config/tacl \
-v $PWD:/data \
ghcr.io/unioslo/tsd-api-client
p11 --upload /data/README.md
/data/README.md ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tsd_api_client-3.6.3.tar.gz
.
File metadata
- Download URL: tsd_api_client-3.6.3.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e930c0eec4d39fb92b19f0b6e630483e6cc623bd365207dfb126357003b121cd |
|
MD5 | 5782eb0c17e21e612f128dc98b1f374d |
|
BLAKE2b-256 | 599f5e74f9d9b1afd25308af8bdeba39b3de199cee0d37eb9bfc08dcf2593ceb |
File details
Details for the file tsd_api_client-3.6.3-py3-none-any.whl
.
File metadata
- Download URL: tsd_api_client-3.6.3-py3-none-any.whl
- Upload date:
- Size: 37.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b0c1970e19f718420d82093137a83c3a20b026806ce51863addb730e77eba2f |
|
MD5 | 15ff144b91c24a1b92e5d5142a655861 |
|
BLAKE2b-256 | b21e6fdb1dff62c95300693deec7f9f3fe2ed2857121987492c122d292ffe0ab |