Skip to main content

Mistral Client Library

Project description

https://governance.openstack.org/tc/badges/python-mistralclient.svg

Mistral

Latest Version

Mistral is a workflow service. Most business processes consist of multiple distinct interconnected steps that need to be executed in a particular order in a distributed environment. A user can describe such a process as a set of tasks and their transitions. After that, it is possible to upload such a description to Mistral, which will take care of state management, correct execution order, parallelism, synchronization and high availability.

Mistral also provides flexible task scheduling so that it can run a process according to a specified schedule (for example, every Sunday at 4.00pm) instead of running it immediately. In Mistral terminology such a set of tasks and relations between them is called a workflow.

Mistral client

Python client for Mistral REST API. Includes python library for Mistral API and Command Line Interface (CLI) library.

Installation

First of all, clone the repo and go to the repo directory:

$ git clone https://opendev.org/openstack/python-mistralclient.git
$ cd python-mistralclient

Then just run:

$ pip install -e .

or:

$ pip install -r requirements.txt
$ python setup.py install

Running Mistral client

If Mistral authentication is enabled, provide the information about OpenStack auth to environment variables. Type:

$ export OS_AUTH_URL=http://<Keystone_host>:5000/v2.0
$ export OS_USERNAME=admin
$ export OS_TENANT_NAME=tenant
$ export OS_PASSWORD=secret
$ export OS_MISTRAL_URL=http://<Mistral host>:8989/v2  (optional, by
  default URL=http://localhost:8989/v2)

and in the case that you are authenticating against keystone over https:

$ export OS_CACERT=<path_to_ca_cert>

To make sure Mistral client works, type:

$ mistral workbook-list

You can see the list of available commands typing:

$ mistral --help

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

python-mistralclient-3.10.0.tar.gz (95.3 kB view details)

Uploaded Source

Built Distribution

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

python_mistralclient-3.10.0-py2.py3-none-any.whl (130.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-mistralclient-3.10.0.tar.gz.

File metadata

  • Download URL: python-mistralclient-3.10.0.tar.gz
  • Upload date:
  • Size: 95.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for python-mistralclient-3.10.0.tar.gz
Algorithm Hash digest
SHA256 3dadd0cb9a213315c485cb336e49c04aaae0ed6c73dafa92a94e5595e6595ab3
MD5 da7763d6c54e38f2648b5e097fa78391
BLAKE2b-256 98401b8053d74ffa0f9b749bd74a5256d3e1667a17218802e6f9d1d55aa752a0

See more details on using hashes here.

File details

Details for the file python_mistralclient-3.10.0-py2.py3-none-any.whl.

File metadata

  • Download URL: python_mistralclient-3.10.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 130.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.2

File hashes

Hashes for python_mistralclient-3.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 99042632178871cac45d9be75fc366e3723f2ccbb17148c76e13b62b6a5b7043
MD5 fedb81a2706ce2ee29520491dccebab6
BLAKE2b-256 584201247482293c3b4960abca529bb52b04538faae17bbb005eba4c539e9215

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