File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Run interactively to have the server stay up and then terminate using server.stop()
2- import time
3-
4- from p4pillon import concurrency , config_reader
5-
6- if concurrency == "thread" :
7- from p4pillon .thread .server import Server
8- elif concurrency == "asyncio" :
9- from p4pillon .asyncio .server import Server
10- else :
11- raise ValueError (f"Unknown value for concurrency: { concurrency } " )
12-
132# Uncomment the lines below to turn on debugging output to the screen
143import logging
4+ import time
5+
6+ from p4pillon import config_reader
7+ from p4pillon .thread .server import Server
158
169logging .getLogger ().setLevel (logging .DEBUG )
1710logging .getLogger ().addHandler (logging .StreamHandler ())
Original file line number Diff line number Diff line change 1- from ..pvrecipe import * # noqa: F403
1+ from typing import TypeVar
2+
3+ from p4pillon .pvrecipe import * # noqa: F403
4+ from p4pillon .server .thread import SharedPV as _SharedPV
5+
6+ SharedPV = _SharedPV
7+
8+ SharedPvT = TypeVar ("SharedPvT" , bound = _SharedPV )
Original file line number Diff line number Diff line change 1- from p4pillon .sharednt import SharedNT # noqa: I001
1+ from p4pillon .sharednt import SharedNT # noqa: I001
22
3- from p4pillon .server .thread import SharedPV as _SharedPV
3+ from p4pillon .server .asyncio import SharedPV as _SharedPV
44
55SharedNT .SharedPV = _SharedPV
Original file line number Diff line number Diff line change 99from p4p .client .raw import Context
1010from p4p .server import Server as _Server
1111from p4p .server import StaticProvider
12- from p4p .server .raw import SharedPV
1312
1413from p4pillon .pvrecipe import BasePVRecipe
14+ from p4pillon .server .raw import SharedPV
1515
1616logger = logging .getLogger (__name__ )
1717
Original file line number Diff line number Diff line change 11from typing import TypeVar
22
3- from p4p .server .thread import SharedPV as _SharedPV
4-
53from p4pillon .pvrecipe import * # noqa: F403
4+ from p4pillon .server .thread import SharedPV as _SharedPV
65
76SharedPV = _SharedPV
87
Original file line number Diff line number Diff line change 1- from p4pillon .sharednt import SharedNT # noqa: I001
1+ from p4pillon .sharednt import SharedNT # noqa: I001
22
33from p4pillon .server .thread import SharedPV as _SharedPV
44
You can’t perform that action at this time.
0 commit comments