musicdlp/backend/http_pool.py
2024-04-28 14:06:20 +04:00

11 lines
181 B
Python

from urllib3 import PoolManager
_http: PoolManager | None = None
def get() -> PoolManager:
global _http
if _http is None:
_http = PoolManager()
return _http