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.3.tar.gz (52.7 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.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_presencedb-2.0.3.tar.gz
Algorithm Hash digest
SHA256 49ec34269d01b6c166a07b90b6249bc87cd673cbb8fb42578c74617f6ca06240
MD5 a75c36be3a49ec69b138544e913398a3
BLAKE2b-256 e7019f5d2af0021875e4f8bc294ea3e68210f69a53e3848cb57197b286b4c2b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_presencedb-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ac48ce636afa0ebf959aafaebe09d3b4ee65e19441495a55e88f8a6ff9647c
MD5 ea086259153f26e4618efb59ab446563
BLAKE2b-256 35beac844bb6efe9493e3ce2887058ff654b232149ef1a45c29262e8e2639ad4

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