You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polytoria.py is a wrapper that lets you easily use the polytoria api inside of python.
Installation
pip install polytoria.py
Example
importpolytoriaimportasyncioasyncdefmain():
polytoria=polytoria.client# initalize the clientuser=awaitpolytoria.user(1) # gets the user with the id 1print(user.username) # prints the users nameif__name__=="__main__":
asyncio.run(main())
Usage
Everything starts with the main polytoria module, followed by the specific resource you want to access. Below are references for resources you can access.