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.9.0.tar.gz
.
File metadata
- Download URL: libdc3-0.9.0.tar.gz
- Upload date:
- Size: 795.5 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 | f5326f0ad6a7120ffca14f752183d4faadfdbdf3c5b74ed79cee23b9d9ab4b94 |
|
MD5 | 7ec287e24af6771c63766b4783e23e18 |
|
BLAKE2b-256 | afce6e8d606e769b0affae05a6ec9ef4a651d3497a97658d90138f0939038212 |
File details
Details for the file libdc3-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: libdc3-0.9.0-py3-none-any.whl
- Upload date:
- Size: 815.3 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 | c46537d20fbf3c23c9f7548ccab3107c9f4814ddf1e1343fc2bc0838d334b22d |
|
MD5 | 884bc9b32fb12ab1444890d71f614990 |
|
BLAKE2b-256 | a506af451becb4f11fede29f0eea5234cc1188a76e259a08b190d7747868d2e2 |