Skip to main content

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

  1. Configure your SWAN environment using Software stack 105a and select the option Use Python packages installed on CERNBox
  2. Create a SWAN project with any name you like and upload all example notebooks to it
  3. 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
  4. On any notebook, create a new cell and add pip install libdc3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libdc3-0.7.0.tar.gz (795.6 kB view details)

Uploaded Source

Built Distribution

libdc3-0.7.0-py3-none-any.whl (815.4 kB view details)

Uploaded Python 3

File details

Details for the file libdc3-0.7.0.tar.gz.

File metadata

  • Download URL: libdc3-0.7.0.tar.gz
  • Upload date:
  • Size: 795.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.10.11-200.fc40.x86_64

File hashes

Hashes for libdc3-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a01246702b1d2f3fcceafcf4cb21205ee49a201b141939c1700fa01def4875a2
MD5 a3b531830d1e5a7b73f0e4944745c06f
BLAKE2b-256 9a0219e1fc84748f67ca1e2c9447a966769adde7570b25ab5113eb4b53e59346

See more details on using hashes here.

File details

Details for the file libdc3-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: libdc3-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 815.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.10.11-200.fc40.x86_64

File hashes

Hashes for libdc3-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 219f426cd00870b4949c72d1307a8ea5c7d26659a890f569e0820fdb5a62a74a
MD5 38813b499f7751e2d93c90e3702ee32c
BLAKE2b-256 0b696ebd0869730c03d01283af1c6cff60260c31c9771ebaadc8e3536ed32b20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page