py-presencedb
Python API wrapper for the https://presencedb.com API
Installation
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
Usage
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.
Files and Explanations
├──.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
Metadata
Release files for py-presencedb 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_presencedb-2.0.3.tar.gz | 52.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_presencedb-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.6 kB
Release files / py_presencedb-2.0.3.tar.gz
| Download URL | py_presencedb-2.0.3.tar.gz |
|---|---|
| Size | 52.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49ec34269d01b6c166a07b90b6249bc87cd673cbb8fb42578c74617f6ca06240
|
|
BLAKE2b-256 checksum How to use checksums |
e7019f5d2af0021875e4f8bc294ea3e68210f69a53e3848cb57197b286b4c2b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Release files / py_presencedb-2.0.3-py3-none-any.whl
| Download URL | py_presencedb-2.0.3-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8ac48ce636afa0ebf959aafaebe09d3b4ee65e19441495a55e88f8a6ff9647c
|
|
BLAKE2b-256 checksum How to use checksums |
35beac844bb6efe9493e3ce2887058ff654b232149ef1a45c29262e8e2639ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|