refactoring/added endpoints

This commit is contained in:
Trevor Hobenshield
2023-03-24 08:31:43 -07:00
parent 679f61c0f9
commit a1d2c6ccb2

View File

@@ -20,14 +20,12 @@ from .utils import find_key, build_query, get_headers
try:
if get_ipython().__class__.__name__ == 'ZMQInteractiveShell':
import nest_asyncio
nest_asyncio.apply()
except:
...
if platform.system() != 'Windows':
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
else:
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())