Skip to content

Diracclient

Classes

DiracClient

DiracClient(
    rucio_host=None,
    auth_host=None,
    account=None,
    ca_cert=None,
    auth_type=None,
    creds=None,
    timeout=600,
    user_agent="rucio-clients",
    vo=None,
    logger=LOG,
)

DataIdentifier client class for working with data identifiers

Functions

add_files
add_files(
    lfns, ignore_availability=False, parents_metadata=None
)

Bulk add files : - Create the file and replica. - If doesn't exist create the dataset containing the file as well as a rule on the dataset on ANY sites. - Create all the ascendants of the dataset if they do not exist

PARAMETER DESCRIPTION
lfns

List of lfn (dictionary {'lfn': , 'rse': , 'bytes': , 'adler32': , 'guid': , 'pfn': }

TYPE: Iterable[Mapping[str, Any]]

ignore_availability

A boolean to ignore blocked sites.

TYPE: bool DEFAULT: False

parents_metadata

Metadata for selected hierarchy DIDs. (dictionary {'lpn': {key : value}}). Default=None

TYPE: Optional[Mapping[str, Mapping[str, Any]]] DEFAULT: None

Functions