Skip to main content
https://img.shields.io/pypi/v/aioworkers-kafka.svg https://github.com/aioworkers/aioworkers-kafka/workflows/Tests/badge.svg Coverage Code style: ruff Code style: Mypy Documentation Status Python versions https://img.shields.io/pypi/dm/aioworkers-kafka.svg Hatch project

Usage

config.yaml:

producer:
  cls: aioworkers_kafka.producer.KafkaProducer
  format: json
  kafka:
    bootstrap.servers: kafka:9092
  topic: test

consumer:
  cls: aioworkers_kafka.consumer.KafkaConsumer
  format: json  # default format is json
  kafka:
    bootstrap.servers: kafka:9092
    group.id: test
  topics:
    - test

worker:
  cls: mymodule.MyWorker
  input: .consumer
  output: .producer
  autorun: true

mymodule.py:

from aioworkers.worker.base import Worker

class MyWorker(Worker):
    async def run(self, value):  # consume value from input
        assert isinstance(value, dict)

        value["test"] += 1

        return value  # produce value to output
$ aioworkers -c config.yaml

Development

Check code:

hatch run lint:all

Format code:

hatch run lint:fmt

Run tests:

hatch run pytest

Run tests with coverage:

hatch run cov

Metadata

Release files for aioworkers-kafka 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioworkers-kafka 0.2.0
File Size Uploaded Provenance Actions
aioworkers_kafka-0.2.0.tar.gz 10.3 kB Without provenance Details for aioworkers_kafka-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioworkers-kafka 0.2.0
File Interpreter ABI Platform Actions
aioworkers_kafka-0.2.0-py3-none-any.whl Python 3 none any Details for aioworkers_kafka-0.2.0-py3-none-any.whl

Total release size: 20.4 kB

Release files / aioworkers_kafka-0.2.0.tar.gz

Download URL aioworkers_kafka-0.2.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
453d9a1039182692b9ba38f8c904b4fe7cd185fdb4ca352ae653130603ba22ed
BLAKE2b-256 checksum
How to use checksums
28fa80c3f5550b6a6c3333cf1ea9e39479470f90a30b4f0caceffce7b805c30c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / aioworkers_kafka-0.2.0-py3-none-any.whl

Download URL aioworkers_kafka-0.2.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cc731deeea3e930830b30cfd6b35d08af693502d71c805314f8fc56437ac784
BLAKE2b-256 checksum
How to use checksums
ff3e8e9e2e794037429269238143e57e8f366d5fd97321999d73def4b5c3573a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for aioworkers-kafka 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page