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.2.tar.gz (73.6 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.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_presencedb-2.0.2.tar.gz
Algorithm Hash digest
SHA256 f0b161105f7daf15dae0eb57f8dc5a8082683ab34c5db904d2e27c57ebe396d6
MD5 d12e9904082e99deda0840a09fd82185
BLAKE2b-256 b4ddca33848eb5a3caba049a6d5c6495a6cbef3f593f49820db85eb17a0219ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_presencedb-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41f89c5c42f67dfa367820c4338b809e1b78d91bd496d100866491fd911b5495
MD5 ef0e93a26f09d8c27b25066854fa694b
BLAKE2b-256 005459f5458e80298e88079973b43a9537753ba773fa6c1876ab0157df826a2d

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