Skip to main content

Kafka client for tornado async applications.

Project description

Python Package Version Documentation Status Build Status Code Climate Codecov.io

Kiel is a pure python Kafka client library for use with Tornado applications.

Installation

Pip

Kiel is available via PyPI, installation is as easy as:

pip install kiel

Manual

To install manually, first clone this here repo and:

cd kiel
python setup.py install

Documentation

More detailed information can be found on Read The Docs.

Quick Consumer Example

from kiel import clients
from tornado import gen, ioloop


@gen.coroutine
def consume():
    c = clients.SingleConsumer(brokers=["localhost"])

    yield c.connect()

    while True:
        msgs = yield c.consume("examples.colors")
        for msg in msgs:
            print(msg["color"])


def run():
    loop = ioloop.IOloop.instance()

    loop.add_callback(consume)

    try:
        loop.start()
    except KeyboardInterrupt:
        loop.stop()

Development

The code is hosted on GitHub

To file a bug or possible enhancement see the Issue Tracker, also found on GitHub.

License

(c) 2015-2016 William Glass

Kiel is licensed under the terms of the Apache License (2.0). See the LICENSE file for more details.

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

kiel-0.9.3.tar.gz (32.8 kB view details)

Uploaded Source

File details

Details for the file kiel-0.9.3.tar.gz.

File metadata

  • Download URL: kiel-0.9.3.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kiel-0.9.3.tar.gz
Algorithm Hash digest
SHA256 a7c2194c55886cf4d11c41d9e62d52f1c6f37affb8e660ebaf20722d52c79661
MD5 e646b9022150654b8d97daab60176c90
BLAKE2b-256 3b47018e40918b20a08aba4ee779e69b5934b1eaa66d8d87ad1fdb1c37080c61

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