Skip to main content

Brew, Fill, Consume

Project description

# Pubkeeper Python Client

The Pubkeeper Python Client enables you to connect to a Pubkeeper Server and to participate in the production and subscription of data topics.

## Quick Start

### Install for Use
### Requirements

The Python Pubkeeper client requires Python version 3.5 or higher

#### Install

Into your environment install the wheel files together:

pip3 install pubkeeper.client

### Install for Development
#### Clone the repo

If you have access to the Pubkeeper project you may install directly from source for development purposes.

git clone

#### Install

Ensure the protocol, and communicaiton wheels are installed into your environment before installing the Pubkeeper Python Client and Brews. Then you can install Pubkeeper Python Client and Brews into your own virtualenv.

pip3 install -e /path/to/where/you/cloned/python-client

### Using the Pubkeeper Python Client
#### Authentication Tokens

Pubkeeper Server handles client authentication with JWT. As such you will need to acquire a token from the server you are going to be connecting to.

#### Running

In the most basic example, we will connect to the Pubkeeper Server, and register a single Brewer and publish a string. Note that the client sits upon a Tornado IOLoop, as such it runs inside of its own thread, and will need to be gracefilly shutdown when your program ends. This example assumes you are running an unsecured Pubkeeper Server, and Websocket Server on your localhost. You will need to replace these with actual values.

from pubkeeper.client import PubkeeperClient
from pubkeeper.brew.websocket.brew import WebsocketBrew
from time import sleep

config = {
'host': 'localhost',
'port': 9898,
'secure': False
'token': 'your-auth-token',
'bridge_mode': False
client = PubkeeperClient(config)

websocket_brew = WebsocketBrew()
'ws_host': 'localhost',
'ws_port': 8000,
'ws_secure': False


brewer = client.add_brewer('demo.topic')

while True:
except KeyboardInterrupt:

## Complete Documentation

A more complete documentation of the Pubkeeper Python Client, and Pubkeeper System may be found at: [](

# License
This software is proprietary and may only be used in conjunction with a current niolabs plan and the associated nio software license. See []( for available plans.

Project details

Download files

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

Files for pubkeeper.client, version 1.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pubkeeper.client-1.1.4-py3-none-any.whl (28.5 kB) File type Wheel Python version 3.5 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page