Skip to main content

Библиотека для хранения общих JSON-схем

Функционал

Представление данных, передаваемых через Kafka, в виде pydantic моделей для валидации принимаемых и отправляемых сообщений

Сценарий использования

  1. Передача соообщения о пользовательских данных
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()

Contributing

  • Основная информация по разработке наших приложений

  • Ссылка на страницу с информацией по разработке event-schema

Metadata

Release files for event-schema-profcomff 2024.8.4

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

Source distribution (sdist)

Source distribution for event-schema-profcomff 2024.8.4
File Size Uploaded
event_schema_profcomff-2024.8.4.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for event-schema-profcomff 2024.8.4
File Interpreter ABI Platform
event_schema_profcomff-2024.8.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / event_schema_profcomff-2024.8.4.tar.gz

Download URL event_schema_profcomff-2024.8.4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5be31895f172a34ab61194a78b3e3cc14164f7fc4bae9f27e47c59791f029ec0
BLAKE2b-256 checksum
How to use checksums
7d229e8496d370f2b49925dc82c08459a3fee08d1c2a6d2b2a222666d62ded57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / event_schema_profcomff-2024.8.4-py3-none-any.whl

Download URL event_schema_profcomff-2024.8.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4227bbc98871411c26de936795a574a0966261c5400152d5e919eb05fb413488
BLAKE2b-256 checksum
How to use checksums
1c3ca97cc5e201778f9e16fa5930a5eb908b191d210339f5747bb0bc4bcd7522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

2024.8.4 This release

2 release files

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