musicdlp/backend/shared.py

11 lines
190 B
Python
Raw Normal View History

2024-04-28 12:44:53 +03:00
from urllib3 import PoolManager
_http: PoolManager | None = None
def get_http_pool() -> PoolManager:
global _http
if _http is None:
_http = PoolManager()
return _http