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-0.1.0.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-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_presencedb-0.1.0.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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63456618808b1131d272cdac18e6d85ca10d50c297598d0e2d3f206948c1a84b
MD5 873b81e8d42c6252a31262874558c13d
BLAKE2b-256 9808ed620e01e57eafaaa6a511e6b1f0177e32b5ddc4dac47c201a477042aacc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_presencedb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8242dfbd2ceeafe1ea3f95cea58ac061f9014a4e56638cf376cd482af4c6cad9
MD5 42e6c6ce2254cb08c66b632c09f1396f
BLAKE2b-256 4ab6ad18e64d1140d373d09ba2bf339d021a2e77f26f6fd6007e653137efbb2a

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