(self, pkg_name: str)
| 423 | return pip_list |
| 424 | |
| 425 | def pkg_file_exits(self, pkg_name: str) -> bool: |
| 426 | pkg_name_lower = pkg_name.lower() |
| 427 | if not self.site_packages or not os.path.exists(self.site_packages): |
| 428 | return False |
| 429 | for name in os.listdir(self.site_packages): |
| 430 | name_lower = name.lower() |
| 431 | if name_lower.startswith(pkg_name_lower) and name.endswith(".dist-info"): |
| 432 | return True |
| 433 | |
| 434 | return False |
| 435 | |
| 436 | def init_site_server_pkg(self, call_log:Optional[Callable[[str], None]] = None) -> bool: |
| 437 | pkg_list = ("uwsgi", "gunicorn", "uvicorn", "hypercorn", "daphne") |
no test coverage detected