semvec/pypi-packages huggingface dataset:
kafka-python-dataclasses 2022.4.22.3
Add a short description here!
License: MIT

.. These are examples of badges you might want to add to your README:
   please update the URLs accordingly

.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
    :alt: Project generated with PyScaffold
    :target: https://pyscaffold.org/

|

================================
kafka-python-dataclasses
================================


    Structured messages for your kafka projects


Kafka is a really complex library and dealing with bytes can be taxing. Use these
wonderful structured Kafka classes instead!

Basic consuming:

.. code-block:: python

   from dataclasses import dataclass
   from kafka_dataclasses import StructuredKafkaConsumer


   @dataclass
   class MyKafkaMessage:
      value: str


   for message in StructuredKafkaConsumer(['my_topic']):
      assert type(message) == MyKafkaMessage


Basic producing:

.. code-block:: python

   from dataclasses import dataclass
   from kafka_dataclasses import StructuredKafkaProducer


   @dataclass
   class MyKafkaMessage:
      value: str


   StructuredKafkaProducer().send('my_topic', MyKafkaMessage("Hello, world!"))

This works on deeply nested dataclasses as well!
In theory it will also work on attrs classes, since the
unstructuring library, `cattrs`, supports `attrs` out of the box.


.. _pyscaffold-notes:

Note
====

This project has been set up using PyScaffold 4.2.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
alactions 0.0.11
Add a short description here!
License: MIT

.. These are examples of badges you might want to add to your README:
   please update the URLs accordingly

    .. image:: https://api.cirrus-ci.com/github/<USER>/alactions.svg?branch=main
        :alt: Built Status
        :target: https://cirrus-ci.com/github/<USER>/alactions
    .. image:: https://readthedocs.org/projects/alactions/badge/?version=latest
        :alt: ReadTheDocs
        :target: https://alactions.readthedocs.io/en/stable/
    .. image:: https://img.shields.io/coveralls/github/<USER>/alactions/main.svg
        :alt: Coveralls
        :target: https://coveralls.io/r/<USER>/alactions
    .. image:: https://img.shields.io/pypi/v/alactions.svg
        :alt: PyPI-Server
        :target: https://pypi.org/project/alactions/
    .. image:: https://img.shields.io/conda/vn/conda-forge/alactions.svg
        :alt: Conda-Forge
        :target: https://anaconda.org/conda-forge/alactions
    .. image:: https://pepy.tech/badge/alactions/month
        :alt: Monthly Downloads
        :target: https://pepy.tech/project/alactions
    .. image:: https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter
        :alt: Twitter
        :target: https://twitter.com/alactions

.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
    :alt: Project generated with PyScaffold
    :target: https://pyscaffold.org/

|

=========
alactions
=========


    Add a short description here!


A longer description of your project goes here...


.. _pyscaffold-notes:

Note
====

This project has been set up using PyScaffold 4.2.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.