Skip to main content

API wrapper for the presencedb (undocumented) api

Project description

py-presencedb

forthebadge made-with-python

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_presencedb-2.0.1.tar.gz (74.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_presencedb-2.0.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file py_presencedb-2.0.1.tar.gz.

File metadata

  • Download URL: py_presencedb-2.0.1.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for py_presencedb-2.0.1.tar.gz
Algorithm Hash digest
SHA256 eacc6181dcd02643ce8c1d267cf9400c3eb2204d93ff8d9a2b09fd609684edc9
MD5 b3bd2c00ad32dcdc9ac0ff5c7ec7dc9c
BLAKE2b-256 56c68a84bda442a6bf32d43085686dd7fd81f091896fe51f60e21eab629d726c

See more details on using hashes here.

File details

Details for the file py_presencedb-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_presencedb-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14e2c34cf181228706ba14dffb242196c86b2a3eca9e2280976ec83917aca913
MD5 37a0495526bb2e1424dcca49e1dcbbbe
BLAKE2b-256 69231187eeb4858e03a506a56ad9c378cd764f9d77a9bb3406943687446b0595

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page