The python library for dc3 and central DC shifters
Project description
libdc3
Library designed to implement all operations needed for DC3 application and at the same time be human-usable through python scripts or notebooks.
Installation
To install libdc3, simply
$ pip install libdc3
Environment variables
This library depends heavily on runregistry
python package, so it is needed to set SSO_CLIENT_ID
and SSO_CLIENT_SECRET
in your environment.
The interface with brilcalc
is done via SSH or standard python subprocess if brilconda
environment is available under the /cvmfs
location. If executing in an environment without brilconda
, you need to configure the dc3_config
object with your LXPlus credentials (recommended via environment variables).
Last but not least, in order to successfully communicate with DQMGUI
and T0
endpoints a valid CERN Grid certificate is needed. Again, the dc3_config
object should be configured with paths to the grid certificated and key (that should be opened).
SWAN setup
- Configure your SWAN environment using
Software stack 105a
and select the optionUse Python packages installed on CERNBox
- Create a SWAN project with any name you like and upload all example notebooks to it
- Open SWAN terminal and create a
.env
file under your project directory and add the following variables:SSO_CLIENT_ID
,SSO_CLIENT_SECRET
,AUTH_CERT
,AUTH_CERT_KEY
- On any notebook, create a new cell and add
pip install libdc3
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file libdc3-0.10.0.tar.gz
.
File metadata
- Download URL: libdc3-0.10.0.tar.gz
- Upload date:
- Size: 795.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.11.3-200.fc40.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d17d8a61167ddacea0c07b8420b07b7d8614523f80de3819b35b274461d633 |
|
MD5 | 8b9447375520a9ba4c16f674948c178b |
|
BLAKE2b-256 | 6bea98c05dfecfcaee1db3fa8280b080881cbf0745d4a62c7c107aa9a1ee6771 |
File details
Details for the file libdc3-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: libdc3-0.10.0-py3-none-any.whl
- Upload date:
- Size: 814.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.11.3-200.fc40.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4651c58c8be7b59b7f2ba55982cb0f49b1e85186d75a368a3979accdc82f80be |
|
MD5 | b1768f0ad8b990c76b26268c0ba78e4e |
|
BLAKE2b-256 | 3fb10b54ff9611b7b47bd71a84e9807ad1add0c56c5f436e1cf24415d77fd5bb |