semvec/pypi-packages huggingface dataset:
redis-events 0.0.2
Event based distributed computing using Redis and asyncio
License: MIT

# Redis Events
Event based distributed computing using Redis and asyncio


# Usage
Create a worker that will respond to events:

```py
# worker.py

from redis_events import Client, Event

# Point client at Redis server
client = Client(
    host="mywebsite.com",
    port=6379,
    password="PASSWORD123"
)


@client.event("echo")  # name the event whatever you want
async def echo_example(event: Event):
    reply_event = Event(
        "echo", # this doesn't actually matter because it is a reply
        event.data  # echo the data that was in the first event
    )

    await client.send_reply(event, reply_event)

client.run()

```


Create a script that will push events

```py
# send_events.py

from redis_events import Client
import asyncio

# obviously, must point to the same Redis server as the worker
client = Client(
    host="mywebsite.com",
    port=6379,
    password="PASSWORD123"
)

# Everything is async
async def send_events():
    my_event = Event(
        "echo",
        {"test": 1234}
    )

    await client.send(my_event)

    reply = await client.wait_for_reply(to=my_event, timeout=60)  # wait for a reply for up to 1 minute

    print("GOT REPLY")


asyncio.get_event_loop().run_until_complete(send_events())

```

# Installation

`pip install redis-events`
pyglesys 0.1.0.dev0
Python wrapper around the GleSYS API
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

py.glesys
=========

py.glesys is a Python wrapper around the GleSYS API. 


Installing
----------

Install using `pip <https://pip.pypa.io/en/stable/>`_::

    $ pip install pyglesys


Example Usage
-------------

.. code-block:: python

    import glesys

    gs = glesys.Glesys('account_number', 'api_key')
    servers = gs.server.list()
    print(servers)

.. code-block:: console

    $ python app.py
    [Server(id_="wps1234567", hostname="example.com", datacenter="Falkenberg", platform="VMware")]
tf-reaper 0.1.3
Threshing Floor CLI utility for analyzing log files for noise.
License: MIT

ThreshingFloor CLI Quickstart Guide 
================================

The ThreshingFloor CLI helps you separate the signal from the noise in your logfiles. If you are running a service that faces the internet, you likely see thousands of scans, bots, and brute force attempts every day. These scans clog up your log files, and make it hard to find legitimate events of interest.

The ThreshingFloor CLI is a utility that leverages the ThreshingFloor API to reduce noisy entries from your log files. This tool is currently in ALPHA.