Skip to content

This package provides a pythonic interface to subscribe to updates from Livemasjid as well as to get the current status of Livemasjid streams.

License

Notifications You must be signed in to change notification settings

lockhaty/pylivemasjid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Livemasjid

This package provides a pythonic interface to subscribe to updates from Livemasjid as well as to get the current status of Livemasjid streams.

from livemasjid import Livemasjid

def my_callback(topic, message, status):
    print(topic)
    print(message)
    print(status)


if __name__ == "__main__":
    lm = Livemasjid(subscriptions=['activestream'])
    lm.register_on_message_callback(my_callback)
    lm.update_status()
    status = lm.get_status()
    lm.start()

About

This package provides a pythonic interface to subscribe to updates from Livemasjid as well as to get the current status of Livemasjid streams.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages