Elmo

Latest version: v0.1.2

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

Changes

New Features

* It's now possible to check the System status using the `ElmoClient.check()` API (40, 36)

Client Core

* Add `session_id` to the `ElmoClient` initializer (38, 34)
* Simplified the code structure by using requests `raise_for_status()` (39, 37)

Read the [full changeset](https://github.com/palazzem/elmo-alerting/compare/0.1.0...0.2.0) and the release [milestone](https://github.com/palazzem/elmo-alerting/milestone/2?closed=1).

0.1.0

Release

This is a first release for `elmo-alerting` library, which includes the following capabilities:
* Retrieving access tokens to make API calls
* Obtaining/releasing the system `Lock()` to have exclusive control of the system
* Arm/disarm all the alarms registered in the system

The following example shows how to arm or disarm an Elmo system:

python
from elmo.api.client import ElmoClient

Initialize the client with an API endpoint and a vendor and
authenticate your connection to retrieve the access token
client = ElmoClient("https://example.com", "vendor")
client.auth("username", "password")

To arm/disarm the system you must gain the exclusive Lock()
with client.lock("secret-code") as c:
c.arm() Arms all alarms
c.disarm() Disarms all alarms


This version should be considered an early version, even though it can be considered stable in terms of functionalities. That said, the API is considered `0.x.y`, meaning it can change in the near future. Migration guides will be provided if breaking changes are introduced.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.