Registry / devops / diraccommon

diraccommon

JSON →
library9.1.16pypypi✓ verified 24d ago

diraccommon is a Python library providing stateless utilities extracted from the main DIRAC framework for use by DiracX and other projects. As of version 9.1.6, it requires Python 3.11 or later and is actively maintained with frequent integration releases, indicating a rapid development and release cadence.

pip install diraccommon
INSTALL
IMPORT
SIG · DIRACCOMMON
D
diraccommon
devopspythonv9.1.16
Install
2.9s avg
Import
127ms
Disk
25MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.1.16 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✓ —
✓ 3.2s
py 3.12
✓ —
✓ 2.8s
py 3.13
✓ —
✓ 2.8s
py 3.9
✕ build_error
✕ build_error
25MB installed
● package 25MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

importlib
from DIRACCommon import importlib
from DIRAC.Core.Utilities.ReturnValues import S_OK, S_ERROR

This example demonstrates using a common utility function, `uniqueElements`, from `DIRAC.Core.Utilities.List` to process a list. Many of `diraccommon`'s utilities reside within the `DIRAC.Core.Utilities` sub-packages.

from DIRAC.Core.Utilities.List import uniqueElements my_list = [1, 2, 2, 3, 4, 4, 5] unique_items = uniqueElements(my_list) print(f"Original list: {my_list}") print(f"Unique elements: {unique_items}")
Debug
Known issues
breakingPython version requirement changed to 3.11 or higher. Older Python environments (e.g., 3.10 and below) are no longer supported.
fix
Ensure your Python environment is version 3.11 or newer before upgrading or installing `diraccommon`.
affects: 9.0.0+
breakingDatabase schema changes were introduced in version 9.1.1, including the removal of the `AccountingCache` table from `ResourceManagementDB` and removal of `ResourceStatus/StatusTypes` entries from CS.
fix
For existing DIRAC deployments, administrators must follow the recommended MySQL and CS deployment steps detailed in the release notes for v9.1.1, including `DROP TABLE AccountingCache;` and removing specific CS entries.
affects: 9.1.1+
breakingSignificant database schema changes were introduced in version 9.1.0, including new indices on `JobDB.Jobs` and `PilotAgentsDB.PilotAgents`, and the dropping of `NodeHistory`, `NodeLog`, and `NodeStatus` tables from `ResourceStatusDB`.
fix
Administrators upgrading existing DIRAC deployments to 9.1.0 or later must execute the recommended MySQL changes, including ALTER TABLE and DROP TABLE statements, as described in the v9.1.0 release notes.
affects: 9.1.0+
gotchaThe CLI argument `--diracx-dist-dir` was replaced with `--diracx-src-dir` in related `DiracX` components. Users migrating or updating scripts that interact with `DiracX` via CLI should be aware of this change.
fix
Update any scripts or configurations that use `--diracx-dist-dir` to use `--diracx-src-dir` instead.
affects: 9.1.3+
Upgrade
Version history
9.1.16latest on PyPI · released Aug 28, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
diraccommon — pip install diraccommon · libregistry