Get the currently viewing users list in realtime in Python

Hello Everyone
I want to get the list of Currently Viewing user list for Any Document in Python.
I need to create a whitelist API and get the Currently Viewing users list in Realtime with the help of doctype and docname parameter.
Thanks In Advance :blush:.