DiracX Command-Line Interface

0.0.12 · active · verified Sat Apr 11

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

Install

Imports

Quickstart

This quickstart demonstrates how a simple command-line application using Typer, similar to how diracx-cli commands are structured, can be defined and run. In a full DiracX environment, these commands would be integrated and executed via the main 'dirac' command-line entry point. This example simulates a basic 'hello' command.

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()

view raw JSON →