Skip to main content

Python client for user interaction with dCache

Project description

dcache-pyclient

Python client for user interaction with dCache. Currently under development, usage only advised for (beta) testing.

A Python implementation of ADA (Advanced dCache API) to manage data in a dCache storage system through the dCache API and WebDAV door.

Prerequisites

Usage

Using ADA as a Python package

Examples:

from ada import AdaClient

with AdaClient(api="https://...", tokenfile="/path/to/token") as client:
    files = client.list("/pnfs/data/mydir")
    client.stage("/pnfs/data/mydir/file.dat", lifetime="7D")
    info = client.whoami()

Using ADA as a Command Line Interface tool

For more information abpout how to use ADA CLI:

ada-cli --help

This will show the currently supported ADA commands:

whoami          Show how dCache identifies you.
list            List files in a directory.
longlist        List a file or directory with details.
mkdir           Create a directory.
delete          Delete a file or directory.
mv              Rename or move a file or directory. Note that moving a file will not change its properties. A tape file will remain on tape, even when you
                move it to a disk directory.
checksum        Show MD5/Adler32 checksums for a file, files in directory, or files listed in a file.
stage           Stage/pin a file from tape (bring to disk/online).
unstage         Unstage/unpin file so dCache may purge its online replica.

To get details for a specific ADA command:

ada-cli <command> --help

Examples:

ada-cli --tokenfile </path/to/token> --api <URL> whoami 
ada-cli --tokenfile </path/to/token> --api <URL> list </path/to/dCache/dir>
ada-cli --tokenfile </path/to/token> --api <URL> longlist --from-file <filename>

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

dcache_pyclient-0.1.0.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcache_pyclient-0.1.0-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file dcache_pyclient-0.1.0.tar.gz.

File metadata

  • Download URL: dcache_pyclient-0.1.0.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.7 Darwin/25.4.0

File hashes

Hashes for dcache_pyclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5cce135261e9dc0acf382841f14188f6be56977681df52b93b4cd9ca83eaf673
MD5 2cf85424ffa855dc14f335513ec94620
BLAKE2b-256 252e37da2f53484ad5a75509fb2e1b13eeb4c7adad38a278e4f1455380587c88

See more details on using hashes here.

File details

Details for the file dcache_pyclient-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dcache_pyclient-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.7 Darwin/25.4.0

File hashes

Hashes for dcache_pyclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a19e1e67c34fd0e09c123f746e4be7738b162584879438a0f3f9aab2a251871
MD5 6e4d0debb3710bb0031fdb8d83bb1e72
BLAKE2b-256 e79b02accafa7734570b9eded76d181f9d0830f1675ebed8db0ca40cf661a672

See more details on using hashes here.

Supported by

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