User DataManagement Tools
Requirements
- initialise rucio (installs rucio_client) -
source /cvmfs/cms.cern.ch/rucio/setup-py3.sh - initalise proxy -
voms-proxy-init -voms cms -rfc -valid 192:00 - export RUCIO_ACCOUNT=$USER
Additionally
pip3 install -r requirements.txt
How to
Show list of available commands: python3 upload.py --help
Show help related to a specific commands (cmd): python3 upload.py <cmd> --help
To upload a local file and create a rule on it:
-
Copy template from
lib/templates/file-upload.yml -
Specify parameters:
filePath: location of local filelfn: lfn (logical file name) for the file -store/user/rucio/<username>/<filename>tempRSE: temp RSE to use for the intermediate hop (can be left to template value)rse: destination RSE/RSE Expression on which rule should be createdlifetime: life of rulecopies: number of copies required
-
Execute:
python3 upload.py upload-file-yaml <yaml-file-path>
To upload a dataset create a rule on it:
-
Copy template from
lib/templates/dataset-upload.yml -
Specify parameters:
datasetPath: location of folder to use as datasetdatasetName: name of dataset conforming to CMS naming conventionstempRSE: temp RSE to use for the intermediate hop (can be left to template value)rse: destination RSE/RSE Expression on which rule should be createdlifetime: life of rulecopies: number of copies required
-
Execute:
python3 upload.py upload-dataset-yaml <yaml-file-path>
Build Instructions
Prerequisite
We will be using poetry to build the package.
Create a wheel package
cd CMSRucio/UserDMTools/cmsrucio_import
poetry build
Installing from the wheel package
pip3 install --user dist/cmsrucio_import-0.1.0-py3-none-any.whl
Metadata
Release files for cmsrucio-import 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmsrucio_import-0.1.1.tar.gz | 6.6 kB | Without provenance | Details for cmsrucio_import-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmsrucio_import-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cmsrucio_import-0.1.1-py3-none-any.whl |
Total release size: 13.9 kB
Release files / cmsrucio_import-0.1.1.tar.gz
| Download URL | cmsrucio_import-0.1.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dde16bb9fb98f9f04661b624df1a8a7ce26515d1834b8b8ba4023a0b46a87247
|
|
BLAKE2b-256 checksum How to use checksums |
8e3e54a002f705c69ce356c170435542d04c987bc5f1fc23eeadd36779283e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.6.8 Linux/3.10.0-1160.76.1.el7.x86_64
|
Release files / cmsrucio_import-0.1.1-py3-none-any.whl
| Download URL | cmsrucio_import-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbbd1215aed0358de39f0e14576c68ce4f84e0c1e0398541ab3aef67b8868705
|
|
BLAKE2b-256 checksum How to use checksums |
b0ee6f97115d315c0701bf4d58ffe2c5b698dbdb228b3f9b49e1013dfa0aca9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.6.8 Linux/3.10.0-1160.76.1.el7.x86_64
|
Security for cmsrucio-import 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.