Skip to main content

Python Matrix library

Project description

scalar

Python Matrix library

setup

pip install scalar

Create a configuration.

mkdir -p ~/.config/scalar
touch ~/.config/scalar/config.yaml

The configuration file contents should be like the following:

{
    "homeserver": "https://matrix.example.pro:8448",
    "username"  : "scriptwire",
    "passcode"  : "qo3i4tbc35wgtt4gbwikgvtib3ctgt7bgi3rgw",
    "room_alias": "!cgOnMzaBWCLjBnhGiB:matrix.example.org"
}

The room must be one to which the account has been invited.

alert

An alert message can be sent on the terminal, in a way like the following:

scalar_alert --message="This is an alert message."

An alert message can be send in Python, in a way like the following:

import scalar
scalar.alert(message="alert")

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

scalar-2018.8.20.1511.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page