Skip to main content

Python client for sending alarm information via SOS Access v4

Project description

sos-access

Python client for sending alarm information via SOS Access v4

Installation

Python version supported: 3.6+

pip install sos-access

Example usage:

client = SOSAccessClient(
    transmitter_code='IK00001',
    transmitter_type='SV001',
    authentication='012345678912345',
    receiver_address=('alarm.example.com',1234),
    receiver_id='ALARM-OPER',
    use_single_receiver=True,
    use_tls=True
)

client.send_alarm(event_code='AL')

Documentation

See full documentation on https://sos-access.readthedocs.io

Changelog

The format is based on Keep a Changelog: https://keepachangelog.com/en/1.0.0/, and this project adheres to Semantic Versioning: https://semver.org/spec/v2.0.0.html

Unreleased

Added

Changed

Deprecated

Removed

Fixed

Security

0.0.8 (2021-08-26)

Fixed

  • Fixed #17. newauthentication should be optional since it is not in the data when a password change request was rejected due to wrong password

0.0.7 (2020-03-06)

Fixed

  • Fixed #11. Error in docstring.
  • Fixed #10. additional_info on AlarmRequest as dict did not convert to string.
  • Fixed #12. Encoding error when sending to some alarm receives.

0.0.6 (2020-02-06)

Fixed

  • Upgraded marshmallow to 3.4 and fixed version in installation. Fixes: #6

Changed

  • No exception logging in retry decorator since it creates noise in Sentry.

0.0.5 (2019-01-07)

First client implementation ready for production use. Previous version was development versions and had some bugs in it. It still doesn't support all features but can be used without things breaking. Verified against SOS Alarm's alarm 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

sos-access-0.0.8.tar.gz (13.5 kB view hashes)

Uploaded source

Built Distribution

sos_access-0.0.8-py3-none-any.whl (19.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page