rewrite the pulsar part and base it on pydantic
as a follow-up of https://git.geomar.de/digital-earth/de-messaging-python/-/merge_requests/9#note_25906
I'd create a module named pulsar with something like
pulsar/
├── consumer.py
├── __init__.py
└── producer.py