Coverage for object_streams/__init__.py: 100%
24 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-02 17:07 +0000
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-02 17:07 +0000
1"""Lightweight object and queryset subscription primitives for Django.
3Only names that are safe to import before the app registry is ready are
4exported here. Modules that touch database models, the outbox, or a transport
5stay behind their own imports: `object_streams.models`,
6`object_streams.outbox`, `object_streams.producers`,
7`object_streams.retention`, `object_streams.sessions`, and
8`object_streams.transports`.
9"""
11from object_streams.events import EventOperation
12from object_streams.events import ListAction
13from object_streams.events import ObjectRef
14from object_streams.events import SourceRef
15from object_streams.events import StreamEvent
16from object_streams.exceptions import AlreadyRegistered
17from object_streams.exceptions import FilterValidationError
18from object_streams.exceptions import NotRegistered
19from object_streams.exceptions import ObjectStreamsError
20from object_streams.exceptions import RegistrationError
21from object_streams.registry import ObjectStreamRegistration
22from object_streams.registry import ObjectStreamRegistry
23from object_streams.registry import register
24from object_streams.registry import registry
25from object_streams.sources import ModelSource
26from object_streams.sources import Source
27from object_streams.subscriptions import ResyncRequired
28from object_streams.subscriptions import SubscriptionKind
29from object_streams.subscriptions import SubscriptionRequest
30from object_streams.visibility import AllowAllVisibilityPolicy
31from object_streams.visibility import DenyAllVisibilityPolicy
32from object_streams.visibility import VisibilityPolicy
35__all__ = (
36 "AllowAllVisibilityPolicy",
37 "AlreadyRegistered",
38 "DenyAllVisibilityPolicy",
39 "EventOperation",
40 "FilterValidationError",
41 "ListAction",
42 "ModelSource",
43 "NotRegistered",
44 "ObjectRef",
45 "ObjectStreamRegistration",
46 "ObjectStreamRegistry",
47 "ObjectStreamsError",
48 "RegistrationError",
49 "ResyncRequired",
50 "Source",
51 "SourceRef",
52 "StreamEvent",
53 "SubscriptionKind",
54 "SubscriptionRequest",
55 "VisibilityPolicy",
56 "__version__",
57 "register",
58 "registry",
59)
61__version__ = "0.1.0a0"