• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CenterForOpenScience / SHARE / 18947333248

30 Oct 2025 04:10PM UTC coverage: 84.4% (+2.6%) from 81.773%
18947333248

push

github

web-flow
Merge pull request #888 from CenterForOpenScience/release/25.6.0

release 25.6.0

581 of 686 new or added lines in 47 files covered. (84.69%)

1 existing line in 1 file now uncovered.

6595 of 7814 relevant lines covered (84.4%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/trove/render/rendering/streamable.py
1
from collections.abc import Iterator
1✔
2
import dataclasses
1✔
3

4
from trove import exceptions as trove_exceptions
1✔
5
from .proto import ProtoRendering
1✔
6

7

8
@dataclasses.dataclass
1✔
9
class StreamableRendering(ProtoRendering):
1✔
10
    '''StreamableRendering: for response content that may be rendered incrementally while being streamed
11
    '''
12
    mediatype: str
1✔
13
    content_stream: Iterator[str] | Iterator[bytes] = iter(())
1✔
14
    _started_already: bool = False
1✔
15

16
    def iter_content(self) -> Iterator[str] | Iterator[bytes]:
1✔
17
        if self._started_already:
1✔
NEW
18
            raise trove_exceptions.CannotRenderStreamTwice
×
19
        self._started_already = True
1✔
20
        yield from self.content_stream
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc