The main loop of a worker introspection process.
(tasks: Queue[str], results: Queue[str | ModuleProperties], sys_path: list[str])
| 91 | |
| 92 | |
| 93 | def worker(tasks: Queue[str], results: Queue[str | ModuleProperties], sys_path: list[str]) -> None: |
| 94 | """The main loop of a worker introspection process.""" |
| 95 | sys.path = sys_path |
| 96 | while True: |
| 97 | mod = tasks.get() |
| 98 | try: |
| 99 | prop = get_package_properties(mod) |
| 100 | except InspectError as e: |
| 101 | results.put(str(e)) |
| 102 | continue |
| 103 | results.put(prop) |
| 104 | |
| 105 | |
| 106 | class ModuleInspect: |
nothing calls this directly
no test coverage detected
searching dependent graphs…