Skip to main content

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

Metadata

Release files for miris-manager-client 8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miris-manager-client 8.1
File Size Uploaded Provenance Actions
miris_manager_client-8.1.tar.gz 18.1 kB Without provenance Details for miris_manager_client-8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for miris-manager-client 8.1
File Interpreter ABI Platform Actions
miris_manager_client-8.1-py3-none-any.whl Python 3 none any Details for miris_manager_client-8.1-py3-none-any.whl

Total release size: 36.8 kB

Release files / miris_manager_client-8.1.tar.gz

Download URL miris_manager_client-8.1.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d18aaf724722846a85ba214290c577d25312adaa665ddea31e785564ee76c23d
BLAKE2b-256 checksum
How to use checksums
4ffc40909446afeef21578499505f7fe895a8fd2631a61258f67148b76a7390a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / miris_manager_client-8.1-py3-none-any.whl

Download URL miris_manager_client-8.1-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a7099da8af5c74b0e24e97b8b57b273fc4d0d2ef39b2eab0ccf35655dbe45ab
BLAKE2b-256 checksum
How to use checksums
380d893b96292a56fad2094d49e0f1fd9f5cab5227d0b54ad8add2f571617809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for miris-manager-client 8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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