Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsd_api_client-3.6.1.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

tsd_api_client-3.6.1-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file tsd_api_client-3.6.1.tar.gz.

File metadata

  • Download URL: tsd_api_client-3.6.1.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

Hashes for tsd_api_client-3.6.1.tar.gz
Algorithm Hash digest
SHA256 c07cd5cd43b2e7b12cd2b8eef27ffca12a9e8f704aa5d2f28fb6af605807ed4a
MD5 6df78441911ae2bc25f4df721433051a
BLAKE2b-256 7285cd029150722dac94aec0039c74a392a9ce0ee161d40b33d14d3bb27ec07b

See more details on using hashes here.

File details

Details for the file tsd_api_client-3.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tsd_api_client-3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b42d1c77ea86d2266a9b2d8bea4a417480a040b7833caf5d937a5a2a7bd7c459
MD5 eff1e3b83690912f02acafb42561ea28
BLAKE2b-256 f6cdf418d5819cbe7270f93ed752d0d71f4d35a61aa6680ca904a2b9b14d9fe9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page