No project description provided
Project description
Библиотека для хранения общих JSON-схем
Использование
from event_schema.auth import UserLogin, UserLoginKey
from confluent_kafka import Producer
some_data = {} ## insert your data here
kafka_config = {}
producer = Producer(**kafka_config)
new = UserLogin(**some_data)
new_key = UserLoginKey(user_id=42)
producer.produce(topic="topic_name", key=new_key.model_dump_json(), value=new.model_dump_json())
producer.flush()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for event_schema_profcomff-2023.8.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c874f21ee21276cadc202a570637aebb4c3834c061a95875ee3fc61323156c7 |
|
MD5 | 05fd31043817b3342384a844e760cc07 |
|
BLAKE2b-256 | 5525471d089a33e5efe9cac93a60847b78055588ae633dd22d1d586b905dd557 |
Close
Hashes for event_schema_profcomff-2023.8.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f083e788e13dc3835a33f821dd41cfa3c147109c36be085d965a2b236138ad9 |
|
MD5 | 216783a12147a702bfc7ba2646553ba2 |
|
BLAKE2b-256 | 6c9a03958d284ebc78fa81b961ea88d9534920b27a8a96c3168f8a47426e37a0 |