Skip to main content

A python3 reference implementation of an UbiCast Miris Manager API client.

Project description

PyPI - Python Version PyPI

UbiCast Miris Manager client

A Python3 reference implementation of an UbiCast Miris Manager API client.

The API documentation is available on each Miris Manager portal at /static/skyreach/docs/api-v3/index.html.

Requirements

Important

For production use, it is recommended to use the branch named "stable". The "main" branch is used for development.

Client class instantiation

The client class (mirismanagerclient.client.MirisManagerClient) takes two arguments:

  • local_conf: This argument can be either a dict or a path (str object). The default value is None, which means no configuration.
  • setup_logging: This argument must be a boolean. If set to True, the logging to console will be configured. The default value is True.

Configuration

You can see available parameters in the default configuration file : Default configuration

The local configuration should be a json file.

A user API key or a system API key can be used. If a system API key is used, a secret key must be provided.

Notes about older client

If you are using the first version of this client (commit 33b554991303b573254d59fb757f601d1e84d132 and previous commits), here are the steps to update your client:

  • Install the new client using the setup.py.
  • Replace the import path of MirisManagerClient (see example).
  • Replace the class variable MirisManagerClient.LOCAL_CONF with the class instance argument MirisManagerClient.local_conf.
  • Check the value of MirisManagerClient.DEFAULT_CONF because it is now None by default.
  • Replace all occurences of URL by SERVER_URL in all configuration.
  • Replace all occurences of CHECK_SSL by VERIFY_SSL in all configuration.

Examples

Ping the server

from mirismanagerclient import MirisManagerClient
mmc = MirisManagerClient(local_conf='your-conf.json')

response = mmc.api_request('PING')
print(response)

Recorder system

This example is the use case of a recorder system that can be controlled through the long polling.

Link to the file

Wake on LAN requests

This example is the use case of a client that forwards wake on LAN requests received through the long polling to its network.

Link to the file

Other examples

There are more examples in the examples directory.

Actions

Here is the list of actions that can be sent to the client depending on its supported capabilities:

Basic actions

  • SHUTDOWN: capability: shutdown, description: Shutdown system
  • REBOOT: capability: reboot, description: Reboot system
  • UPGRADE: capability: upgrade, description: Upgrade system software

Recording

  • START_RECORDING: capability: record, description: Start recording
  • STOP_RECORDING: capability: record, description: Stop recording
  • LIST_PROFILES: capability: record, description: Refresh profiles list

Publishing

  • START_PUBLISHING: capability: publish, description: Start publishing non published media
  • STOP_PUBLISHING: capability: publish, description: Stop publishing

Wake on lan

  • WAKE_ON_LAN_SEND: capability: send_wake_on_lan, description: Send a wake on LAN network package from this system to wake another system

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

miris_manager_client-8.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

miris_manager_client-8.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file miris_manager_client-8.0.tar.gz.

File metadata

  • Download URL: miris_manager_client-8.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for miris_manager_client-8.0.tar.gz
Algorithm Hash digest
SHA256 7d5dd58aedfe40a210dc081f3fb4d1e80a695b1c6d09e47386022bf5b1311b9f
MD5 b6a7bda2a650824adf87ece0f9fa6a01
BLAKE2b-256 72ed8badf2e41ef643e5ae17e0be27bda68efae4dd452d38544bbcc7d4c3e002

See more details on using hashes here.

File details

Details for the file miris_manager_client-8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for miris_manager_client-8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01680b3c7e217e48ae9851f6bdc443574bdaee77a19dd4d01ad662a71de8f794
MD5 0c921b48936ff91e9278c055fe294aee
BLAKE2b-256 dfea3f2d334716b6dc6c226a429105df47a049431e6c1bbd9ab38ea37bc3aa39

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