Registry / devops / dci-utils

dci-utils

JSON →
library0.0.1148pypypiunverified

A set of Python utilities for DCI (Distributed CI) jobs. Version 0.0.1148 is the latest; releases are frequent (hundreds of minor increments).

pip install dci-utils
INSTALL
IMPORT
SIG · DCI-UTILS
D
dci-utils
devopspythonv0.0.1148
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

DCIUtilsError
✓ from dci_utils import DCIUtilsError
✗ from dci_utils import DCIUtilsError

Fetch job info using the DCI remote API.

from dci_utils import get_job_info from dci_utils import DCIUtilsError import os # Set environment variables or use defaults os.environ['DCI_LOGIN'] = os.environ.get('DCI_LOGIN', 'admin') os.environ['DCI_PASSWORD'] = os.environ.get('DCI_PASSWORD', '') try: info = get_job_info(job_id='12345') print(info) except DCIUtilsError as e: print(f'Error: {e}')
Debug
Known issues
breakingv0.0.1000+ dropped support for Python 2.7. All users must migrate to Python 3.6+.
fix
Use Python 3.6+ and run 'pip install --upgrade dci-utils'.
affects: >=0.0.1000
gotchaThe top-level module is 'dci_utils' (with underscore), not 'dciutils' (no underscore). Many examples mistakenly use the wrong hyphenated form.
fix
Use 'from dci_utils import ...' – note the underscore.
affects: all
deprecatedThe function 'get_job_files()' is deprecated in v0.0.1100+ and will be removed. Use 'list_job_files()' instead.
fix
Replace calls to get_job_files() with list_job_files().
affects: >=0.0.1100
gotchaEnvironment variables DCI_LOGIN and DCI_PASSWORD are required for API calls. If not set, the library fails silently with a cryptic error.
fix
Set DCI_LOGIN and DCI_PASSWORD before using any remote function.
affects: all
Upgrade
Version history
0.0.1148latest on PyPI · released Mar 9, 2021
Audit
Dependencies
python-dciclientrequiredRequired for DCI API interaction.
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources