Skip to main content

A client library for accessing the OpenDiscordBots API

Project description

libodb

A client library for accessing the OpenDiscordBots API

Example Usage

from asyncio import run

from libodb import APIClient
from pydantic import BaseModel


class GuildConfig(BaseModel):
    test: str


async def main():
    c = APIClient("api_key")

    await c.kv_set("abc", "123")
    print(await c.kv_get("abc"))

    await c.set_guild_config(1234, "example", GuildConfig(test="test"))
    print(await c.get_guild_config(1234, "example", GuildConfig))

    await c.close()

run(main())

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

libodb-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

libodb-1.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file libodb-1.0.1.tar.gz.

File metadata

  • Download URL: libodb-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.15.8-arch1-1

File hashes

Hashes for libodb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c4c22b928684942135f4f039b38277a6cc1392b1e87a815eeade68eca01e38e7
MD5 4fe435b4ff856f81ed2399363caabce3
BLAKE2b-256 90158b539faac9ea0fa08e47ac0deaf285d272d8aefec633035648803204b23d

See more details on using hashes here.

File details

Details for the file libodb-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: libodb-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.15.8-arch1-1

File hashes

Hashes for libodb-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87103a80ac980006c165e4067bdd12577a9cadead014c0dac30177232d4cf3a6
MD5 5e2f7b6175ee01bafb3fc515ecb668ee
BLAKE2b-256 1e6121ce3b97b75ee1fe8724f2779a1073e8d75b165166bacb95f4d6bc838b6e

See more details on using hashes here.

Supported by

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