Skip to main content

A simple application layer event-bus lib.

Project description

pbus

A simple application layer event-bus lib.

Install

 pip install pbus

Useage

  1. Use with Redis

Subscriber

import pbus
bus = pbus.RedisBus(host='127.0.0.1')
ps = bus.subscriber('test')
for data in ps.listen():
    print(data)

Publish

import pbus
bus = pbus.RedisBus(host='127.0.0.1')
bus.publish('test', 'Hello')

Click to view more information!

CHANGES

1.0.0

  • first version

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

pbus-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file pbus-1.0.0.tar.gz.

File metadata

  • Download URL: pbus-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.6.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.10

File hashes

Hashes for pbus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e97c94da3c8b7ce6f3cb50569ad0c8ab7dae65ce8b298c03e822334b1f0b9ab8
MD5 080f930a64c5b8d95f15e29a96780d96
BLAKE2b-256 d90ac83a03324cfba9d5e8a8f7d49faa405ad97bbc9ea5fc16832cb0d1a8312e

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