musicdlp/backend/http_pool.py

12 lines
181 B
Python
Raw Permalink Normal View History

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