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-1.1.1.tar.gz (795.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libdc3-1.1.1-py3-none-any.whl (815.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libdc3-1.1.1.tar.gz
  • Upload date:
  • Size: 795.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.14.4-200.fc41.x86_64

File hashes

Hashes for libdc3-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f893a715c5680e1f45271742b3c83396e59e058f9dca8910def266929bbeb09c
MD5 f4be91d38cebb2ecacebce37403132a5
BLAKE2b-256 d2b8582ca182f3e20d07d97858fe2dbfa45a9eaf0ee472e7916d6b860d8d570c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for libdc3-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60c2db1f0222277943975b8b8c03469f1e721cf71b0913d403b5239066bc891d
MD5 c6a379bdd3ec15eb6b59150485ced7fd
BLAKE2b-256 598dd21ec7334c83a28d62fc986ba185b846ca1f6796549f0b85837ee1747d79

See more details on using hashes here.

Supported by

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