DiracX Command-Line Interface
diracx-cli is the command-line interface component of DiracX, the next-generation distributed computing platform. DiracX is a modern successor to the DIRAC framework, featuring a microservices architecture, token-based authentication, and a focus on usability and extensibility for managing scientific workflows and data. As part of a rapidly evolving project, diracx-cli provides command-line access to its functionalities, leveraging a modular Python package structure.
Warnings
- breaking A recent refactor in diracx-cli renamed 'read_config()' to 'read()'. Code relying on the old method will break.
- gotcha The DiracX project, including diracx-cli, is described as 'incomplete' and 'rapidly evolving'. This implies frequent changes, potentially including breaking ones, and evolving documentation.
- gotcha diracx-cli is part of the 'diracx' namespace package. This means individual components like 'diracx-core', 'diracx-client', etc., are separate PyPI packages that must be installed independently if their functionality is required, rather than being included with a single 'diracx' installation.
Install
-
pip install diracx-cli
Imports
- app
from diracx.cli.main import app
Quickstart
import typer
app = typer.Typer()
@app.command()
def hello(name: str = "World"):
"Say hello to NAME."
print(f"Hello {name}!")
if __name__ == "__main__":
# In a typical DiracX installation, 'dirac' is the entry point
# and would automatically discover and run commands.
# This snippet shows a runnable Typer app as a minimal example.
app()