Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Option 1: Standalone Binaries (Recommended)

No Python install required. Run the appropriate command for your system:

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/iiasa/accli/master/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/iiasa/accli/master/scripts/install.ps1 | iex

Option 2: Via PIP

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

Handling self-signed certificates

  1. Copy and paste certificates from <control_services_backend>/certs/ca.crt as ./certs/dev-backend.crt and <accelerator_service>/minio_certs/ca.crt as ./certs/dev-minio-ca.crt.
  2. Run
    cd scripts
    import_certs_certutil.ps1
    

🛠 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/*
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accli-2.0.0rc4.tar.gz (43.5 kB view details)

Uploaded Source

Built Distribution

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

accli-2.0.0rc4-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

Details for the file accli-2.0.0rc4.tar.gz.

File metadata

  • Download URL: accli-2.0.0rc4.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for accli-2.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 18387bf38c8fd1e7ad3cc54a47d6e65644912117ac0f426809f1e865f1be11ae
MD5 cd06b60c9b44131b26ae2c161e59fd44
BLAKE2b-256 1e51ff9314f48b12b65723b4197bdd3fed7d1ef50b6ffe4f21e4d9c6fce0a482

See more details on using hashes here.

File details

Details for the file accli-2.0.0rc4-py3-none-any.whl.

File metadata

  • Download URL: accli-2.0.0rc4-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for accli-2.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 32b4001793ade6abc4ef22e7f6619432225e0bd3e5a5c497378c72702ab50a58
MD5 dd97b76f5397ceb07959a333a3181f62
BLAKE2b-256 11a7ed45d0f9395647e35ff97f683f3f0fe0bd1aac883977bc8bbe0dcad8cc39

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

This release

2.0.0rc4 This release

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.9

2 files

1.0.4

1 file

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.8.0

2 files

0.7.11

2 files

0.7.10

2 files

0.7.9

2 files

0.7.8

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7

2 files

0.6.1

2 files

0.6

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5

2 files

0.4.1

2 files

0.4

2 files

0.3

2 files

0.2.2

2 files

0.2

2 files

0.1.8.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page