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.
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
To use the database integration, do 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.
ex. .. code-block:: python
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.3.tar.gz
.
File metadata
- Download URL: syncurity_utils-0.3.3.tar.gz
- Upload date:
- Size: 17.4 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 | 9be956afb9c724600f4dade407864d20d4c9bd278d356a9568f6295b828b731a |
|
MD5 | 6d555f365c07cf2d561820d8694fa348 |
|
BLAKE2b-256 | 64b76a182155cebd7f57576a964f45de0aa0790ee776125e5eb16dd146fda470 |
File details
Details for the file syncurity_utils-0.3.3-py2.py3-none-any.whl
.
File metadata
- Download URL: syncurity_utils-0.3.3-py2.py3-none-any.whl
- Upload date:
- Size: 15.9 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 | 436aa84fd5d3170fc369f954a0d272d508f128f78d00886ff96e73bfd54ba73f |
|
MD5 | 8fa0b165fc12c648884e278b3277e5f0 |
|
BLAKE2b-256 | 7991495f8236f9792f3672e2de96e8bec1fe0df62fc554dfa7940a60cbbf0573 |