Install & Compatibility
Where this runs
tested against v2.1.34 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.244s · 58MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 8.7s · import 0.222s · 55MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
get_topic
✓ from sentry_kafka_schemas import get_topic
✗ from sentry_kafka_schemas.schema import get_topic
get_topic is top-level, not nested in schema module.
get_message_type
✓ from sentry_kafka_schemas import get_message_type
✗ from sentry_kafka_schemas.types import get_message_type
get_message_type is exported from the package root.
Get topic metadata, message type, and schema for a given topic.
from sentry_kafka_schemas import get_topic, get_message_type, get_schema
topic_name = "events"
topic = get_topic(topic_name)
print(topic.version)
msg_type = get_message_type(topic_name)
print(msg_type)
schema = get_schema(topic_name)
print(schema.schema_str[:100])
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'sentry_kafka_schemas'
Package not installed or installed as a different name (e.g., `sentry-kafka-schemas` vs `sentry_kafka_schemas`).
fixInstall via `pip install sentry-kafka-schemas` and use `import sentry_kafka_schemas` (underscore).
sentry_kafka_schemas.exceptions.TopicNotFoundError: Topic 'some_topic' not found
The topic name does not exist in the schemas registry.
fixCheck the list of valid topics: `from sentry_kafka_schemas import TOPICS; print(TOPICS.keys())`
Upgrade
Version history
2.1.34latest on PyPI · released Jun 17, 2026
Audit
Dependencies
No dependency data recorded yet.