Skip to main content

IIASA Accelerator Client

Project description

Accelerator Terminal Client and Python API

This package provides:

  • A command-line client (accli) for interacting with the Accelerator.
  • A Python API via the accli package.

Both interfaces communicate with the Accelerator’s REST API, implemented in the Control Services Backend.


🔐 Authentication

This client uses device authentication via Auth0.

  • OAuth Flow: Device Authorization Flow
  • Token Validity: 7 days
  • Access Control: Role-Based Access Control (RBAC) with stateless tokens
  • Grants: Limited and scoped

📖 User Guide

✅ Requirements

  • Python >= 3.7.17

📦 Installation

pip install accli --user

▶️ Usage

As a Python Module

python -m accli

As an Executable

After installation, the executable might not be in your system PATH. You may see a warning like this:

WARNING: The script accli.exe is installed in 'C:\Users\<user>\AppData\Roaming\Python\Python311\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

To resolve this, add the script's path to your system's environment variables:

Note: On Linux/macOS, you may need to prefix the command with ./, and on Windows, with .\.

🔍 Help Command

accli --help

Sample Output:

Usage: accli [OPTIONS] COMMAND [ARGS]...

👩‍💻 Developer Guide

🛠 Build & Upload

Follow the official Python packaging tutorial:
Packaging Projects – Python.org

🚀 Release Process

  1. Update the version in accli/_version.py

  2. Tag the release:

    python scripts/tag.py
    
  3. Build the package:

    python -m build
    
  4. Upload to PyPI:

    twine upload -r pypi -u __token__ -p <password-or-token> ./dist/*
    

🧪 Experimental

Consider bundling with Nuitka:

nuitka --standalone --onefile --static-libpython=yes \
       --include-package=accli \
       --output-dir=build \
       -m accli.cli:app

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

accli-0.8.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

accli-0.8.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file accli-0.8.0.tar.gz.

File metadata

  • Download URL: accli-0.8.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for accli-0.8.0.tar.gz
Algorithm Hash digest
SHA256 631bb6a2d7a5e22989f2ee24ee6a3a22a3db7381ac5c868d79922e9c93cdad56
MD5 940feb95f88babc73c9c7b95c258a4c6
BLAKE2b-256 8ac5fd79b778b1aa5ac2aea2ff1aa3cb9bfc199c5baf2976af82e199540f584c

See more details on using hashes here.

File details

Details for the file accli-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: accli-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for accli-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d57be0f686a06ff37bf9625c6c265f5090a73ffb1ff1b7008f7ffbbbbd6ebb27
MD5 9067dd127223c9915c68b1a77375e193
BLAKE2b-256 1cb5f078ff2282088a8152832ca552b13e43c44c168b37cb83c3e35843d1c398

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