Syncurity Common Util Classes and Functions
Project description
The syncurity-utils package enables Automation and Orchestration efforts with the IR-Flow platform, in conjunction with our other python packages.
Requirements
When using syncurity-utils in Stackstorm, you must install GCC.
On Centos7, run the following command to install GCC:
$ sudo yum -y install gcc
Usage
Available on PyPI
$ pip install syncurity-utils
Use in your Stackstorm pack like so:
from syncurity_utils import typecheck, find_domain
from syncurity_utils.exceptions import TypecheckException
You can use the integration by doing the following:
from syncurity_utils.db.db import StackstormDB
from syncurity_utils.db.alert import Alert
import time
db = StackstormDB("[user]", "[pass]", "[Database Name]", "[host]", [port])
At this point you can then get access to the helper methods for creating and querying alerts.
example:
db.add_alert(Alert(“{‘message’: ‘test message’}“, time.time(),‘Sensor_ref_name’, [IRFlow Alert Id], [Integration Id], [Tenant Id], [Alert Type Id]))
db.delete_alert(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file syncurity_utils-0.3.6.tar.gz
.
File metadata
- Download URL: syncurity_utils-0.3.6.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1e61a5e435d4eefd81bd22fc230698014e2bd17731d0691d7fbd1a414a2fc9 |
|
MD5 | df9d3f5773e23920c24bae72a49cf78b |
|
BLAKE2b-256 | c20b9c99c407cbc0a15fcf65420bac9995ac686420c9220f3a51348936875a87 |
File details
Details for the file syncurity_utils-0.3.6-py2.py3-none-any.whl
.
File metadata
- Download URL: syncurity_utils-0.3.6-py2.py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea2e4bf644397850bbd021efe92594f7f417ce5063b699d0669756587fe4fc3 |
|
MD5 | e4de28ed1799acec7cf5b1d7f298aa11 |
|
BLAKE2b-256 | b95120e4bc26fdb5c75829984f94a3d65da97919dd816fd138145c1e79188f82 |