Python API wrapper for the https://presencedb.com API
Python 3.11 or higher is required
Install The PyPi Version:
py -3 -m pip install -U presencedb
You may also install the development version:
pip install git+https://github.com/xFGhoul/py-presencedb.git
Quick Example:
import asyncio
from presencedb import Client
client = Client()
async def get_user(id):
user = await client.get_user(id, format=True)
print(user.current_activity)
print(user.stats.top_activities)
print(user.stats.total_duration)
loop = asyncio.new_event_loop()
loop.run_until_complete(get_user(1234))
You can find more examples in the examples directory.
├──
.github
— GitHub configuration including CI/CD workflows
├──
docs
— Developer Documentation
├──
tests
— Tests
├──
examples
— Examples Showing How To Use The Wrapper
├──
presencedb
— Source Code Of py-presencedb
Made With ❤️ By
ghoul#1337