mirror of
https://github.com/sprockets/sprockets.mixins.avro-publisher.git
synced 2024-11-22 03:00:24 +00:00
Changes to travis, Liscense and readme.rst file
This commit is contained in:
parent
7d25213c17
commit
5844503dfc
3 changed files with 7 additions and 6 deletions
|
@ -3,6 +3,8 @@ python:
|
|||
- 2.7
|
||||
- pypy
|
||||
- 3.4
|
||||
- 3.7
|
||||
- 3.8
|
||||
services:
|
||||
- rabbitmq
|
||||
install:
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2015 AWeber Communications
|
||||
Copyright (c) 2015-2020 AWeber Communications
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
|
|
@ -16,9 +16,9 @@ and can be installed via ``pip`` or ``easy_install``:
|
|||
|
||||
Requirements
|
||||
------------
|
||||
- sprockets.mixins.amqp>=2.0.0
|
||||
- sprockets.mixins.amqp>=3.0.0
|
||||
- fastavro>=0.10.1,<1.0.0
|
||||
- tornado>=4.2.0,<5.0.0
|
||||
- tornado>=6,<7
|
||||
|
||||
Example
|
||||
-------
|
||||
|
@ -48,10 +48,9 @@ This examples demonstrates the most basic usage of ``sprockets.mixins.avro-publi
|
|||
|
||||
class RequestHandler(avro_publisher.PublishingMixin, web.RequestHandler):
|
||||
|
||||
@gen.coroutine
|
||||
def get(self, *args, **kwargs):
|
||||
async def get(self, *args, **kwargs):
|
||||
body = {'request': self.request.path, 'args': args, 'kwargs': kwargs}
|
||||
yield self.avro_amqp_publish(
|
||||
await self.avro_amqp_publish(
|
||||
'exchange',
|
||||
'routing.key',
|
||||
'avro-schema-name'
|
||||
|
|
Loading…
Reference in a new issue