This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

TCP-eventbus-client-Python

Introduction

This is a TCP eventbus implementation for python clients. The protocol is quite simple. for more information visit !https://github.com/jaymine/TCP-eventbus-client-Python

  • 4bytes int32 message length (big endian encoding)
  • json string
  • built-in keys
  1. type: (String, required) One of “send”, “publish”, “register”, “unregister”.
  2. headers: (Object, optional) Headers with JSON format. Value of string type is supported.
  3. body: (Object, optional) Message content in JSON format.
  4. address: (String, required) Destination address
  5. replyAddress: (String, optional) Address for replying.

example

class Client():

#Handler

def Handler(self,message):
if message != None:
print(message[‘body’][‘result’],‘4’);

eb=Eventbus.Eventbus(Client(),’localhost’, 7000)

#jsonObject -body

body={‘msg’:’add 4 to 0’,}

#DeliveryOption

do=DeliveryOption.DeliveryOption(); do.addHeader(‘type’,’text’) do.addHeader(‘size’,’small’) do.addReplyAddress(‘add’) do.setTimeInterval(5)

#register handler

eb.registerHandler(‘add’,Client.Handler);

#send

eb.send(‘add’,body,do)

#close after 5 seconds

eb.closeConnection(5)

samples

Simple example, TimeKeeper

Release History

Release History

2.0.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
vertx-eventbus-2.0.0.zip (25.6 kB) Copy SHA256 Checksum SHA256 Source Aug 5, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting