comparison libervia/backend/tools/stream.py @ 4072:040095a5dc7f

refactoring: rename `SAT` class to `LiberviaBackend`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 11:55:48 +0200
parents 4b842c1fb686
children 7c5654c54fed
comparison
equal deleted inserted replaced
4071:4b842c1fb686 4072:040095a5dc7f
29 from libervia.backend.core.core_types import SatXMPPEntity 29 from libervia.backend.core.core_types import SatXMPPEntity
30 from libervia.backend.core.log import getLogger 30 from libervia.backend.core.log import getLogger
31 from twisted.protocols import basic 31 from twisted.protocols import basic
32 from twisted.internet import interfaces 32 from twisted.internet import interfaces
33 33
34 from libervia.backend.core.sat_main import SAT 34 from libervia.backend.core.sat_main import LiberviaBackend
35 35
36 log = getLogger(__name__) 36 log = getLogger(__name__)
37 37
38 38
39 class IStreamProducer(interface.Interface): 39 class IStreamProducer(interface.Interface):
50 50
51 # TODO: manage "with" statement 51 # TODO: manage "with" statement
52 52
53 def __init__( 53 def __init__(
54 self, 54 self,
55 host: SAT, 55 host: LiberviaBackend,
56 client: SatXMPPEntity, 56 client: SatXMPPEntity,
57 path: Union[str, Path], 57 path: Union[str, Path],
58 mode: str = "rb", 58 mode: str = "rb",
59 uid: Optional[str] = None, 59 uid: Optional[str] = None,
60 size: Optional[int] = None, 60 size: Optional[int] = None,