Python Introduction

Mica Python client, a command line scripting tool written in Python, enables automation of tasks in a Mica server.

Requirements

Python 3.7+ must be installed on the system. See more about Python.

Installation

The Mica Python Client is available on the official Python Package Index.

sudo pip install obiba-mica

Note

Previous versions were available as system packages. Make sure to remove them before installing the package with pip.

# on Debian systems
sudo apt-get remove mica-python-client

# on RPM systems
sudo yum remove mica-python-client

Note

This python package depends on the pycurl package which has some system dependencies. One simple solution is to install the pycurl system package before.

# on Debian systems
sudo apt-get install python3-pycurl

# on RPM systems
sudo yum install python3-pycurl

Usage

To get the options of the command line:

mica --help

This command will display which sub-commands are available. Further, given a subcommand obtained from command above, its help message can be displayed via:

mica <subcommand> --help

This command will display available subcommands.