Skip to content

jayjaychukwu/argus-python

Repository files navigation

ARGUS Python Client

This is the official Python library for the ARGUS Engine, this library helps Python developers and applications seamlessly integrate to the ARGUS Engine, authentication and event listening.

Install via pip

pip install argus-python

Usage -

from argus_python import Argus

Have a class to define the function to be called when you receive an Argus Event

class Testsub:
    def on_event(self, argus_event: Dict[str, str]) -> None:
        print(argus_event.get("Action"))
        print(argus_event.get("ActionDescription"))
        print(argus_event.get("Name"))
        print(argus_event.get("Timestamp"))

Finally use argus like this

subscriber = Testsub()

argus = Argus()  # Optionally you can pass the host and port, and auth credentials inclusive.

argus.subscribe(subscriber, "on_event")
argus.connect()

You can also set a timeout for how long you wish to wait for data

argus.connect(timeout=60)

About

A Python Client for the Argus Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published