Skip to main content

Syncurity Common Util Classes and Functions

Project description

https://badge.fury.io/py/syncurity-utils.svg https://circleci.com/gh/Syncurity/syncurity-utils/tree/master.svg?style=svg&circle-token=8a8847e25e6eed888591abb3fbc40ba165d2417e https://api.codacy.com/project/badge/Grade/878a6906207f44d99f0b746b4e30c55f https://api.codacy.com/project/badge/Coverage/878a6906207f44d99f0b746b4e30c55f

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syncurity_utils-0.3.5.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

syncurity_utils-0.3.5-py2.py3-none-any.whl (16.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file syncurity_utils-0.3.5.tar.gz.

File metadata

  • Download URL: syncurity_utils-0.3.5.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

File hashes

Hashes for syncurity_utils-0.3.5.tar.gz
Algorithm Hash digest
SHA256 55e7c86d018a01ba669fda426341ac42c98b726d49d505e0a895e6dd74db50f6
MD5 f4d71303dbb23dbdd97b58dfeb7c5589
BLAKE2b-256 28132ace6ea7f6cd908d1e3e6036227ab5583abb0b4bac77afe790b0bf7054d3

See more details on using hashes here.

File details

Details for the file syncurity_utils-0.3.5-py2.py3-none-any.whl.

File metadata

  • Download URL: syncurity_utils-0.3.5-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

File hashes

Hashes for syncurity_utils-0.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 828a7c69930089699ef334dfeb87b37a41c131e7e1f7c70ede23199c6a6e77be
MD5 894cd9ccf3481b685172069ab63e1783
BLAKE2b-256 540b94e1bf525661ccf98238e0d387238654012bbec5451b7a34b37de44a3485

See more details on using hashes here.

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