Skip to main content

COMDIRAC

Package to supply a comprehensive list of UNIX-like commands for the DIRAC user interface

Provided commands can serve several purposes:

User Client Configuration

Users can customize their client behaviour. The configuration file lies in $HOME/.dirac/dcommands.conf.

This file is a ConfigParser formatted file (see: http://docs.python.org/2/library/configparser.html).

Here is a sample configuration file:

# dcommands.conf

# global client configuration (mainly default profile) [global] default_profile = frangrilles_user

# frangrilles_user profile [frangrilles_user] # DIRAC group name for this profile group_name = frangrilles_user # Home directory home_dir = /vo.france-grilles.fr/user/p/pgay # default destination for commanddput default_se = M3PEC-disk # default options for command drepl replication_scheme = all() replication_ses = LAL-disk,CPPM-disk,MSFG-disk

# other profile [dirac_user] home_dir = / group_name = dirac_user

It contains a [global] section and some named profile sections. Profiles sections are used by dinit command to configure session with some user profile.

commands: * dconfig - get and set configuration options from configuration file

Session Environment Commands

COMDIRAC sessions are built from a user profile (see User client configuration).

Sessions are used by all commands to remember client state (think of shell environment variables)

Each session is applicable to the Unix process calling the COMDIRAC command.

commands: * dinit - initialize a session from a profile (with proxy creation) * dgetenv - get session environment options * dsetenv - set session environment options * dunsetenv - delete session environment options

File Catalog Files And Directories

These commands, like others in COMDIRAC, require LFN path arguments for files and directories. These LFN paths are specified without any prefix (no “lfn:”).

The main feature of these commands is to provide a sort of File Catalog “working directory” within user session. This working directory can be set and printed with dcd and dpwd, respectively. When correctly set, working directory allows user to name LFNs using relative paths.

commands: * dpwd - print File Catalog working directory * dcd - change File Catalog working directory * dls - list File Catalog files and directories * dreplicas - liste File Catalog file replicas * dmkdir - create File Catalog directory * drmdir - delete File Catalog directory

Data Management

These commands, like others in COMDIRAC, require LFN path arguments for files and directories. These LFN paths are specified without any prefix (no “lfn:”).

When a local path is needed, as with dget or dput, it is deduced from command context. For example, local path is last argument with command dget, while it is first with dput.

commands: * dput - register local file in the File Catalog (and copies replica to a Storage Element) * dget - retrieves a local copy of a File Catalog file * drm - remove a file from the File Catalog (and all associated replicas) * drepl - replicates a File Catalog file * dchmod - change access rights of a File Catalog file

File Catalog Metadata Management

commands: * dmeta - manipulates File Catalog metadata * dfind - find files with File Catalog metadata

Jobs Management

commands: * dinput - retrieve input sandbox for a DIRAC job * dkill - kill or delete DIRAC job * dlogging - retrieve logging information for a DIRAC job * doutput - retrieve output sandbox for a DIRAC job * dstat - retrieve status of DIRAC jobs * dsub - submit jobs to DIRAC WMS

Metadata

Release files for COMDIRAC 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for COMDIRAC 1.3.3
File Size Uploaded
COMDIRAC-1.3.3.tar.gz 47.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for COMDIRAC 1.3.3
File Interpreter ABI Platform
COMDIRAC-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 110.5 kB

Release files / COMDIRAC-1.3.3.tar.gz

Download URL COMDIRAC-1.3.3.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e587fe4a37ffc0d2a22441150974a27ca241a4593573a4a4195cd27009e2e5
BLAKE2b-256 checksum
How to use checksums
1c1e266151ff0aeb00d0ad91a3042ce55b6f2a67f4d1318399b02727b620442f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / COMDIRAC-1.3.3-py3-none-any.whl

Download URL COMDIRAC-1.3.3-py3-none-any.whl
Size 62.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3042cdcccfdb80a306021b75fe3f811aee6ec458bf4e53753ac5c3536de451e1
BLAKE2b-256 checksum
How to use checksums
e2b77342c97c8691f3f69b91c94c0e5ab04761960cc049ab5bc22cbb528f963f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page