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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
libodb-1.0.1-py3-none-any.whl
(3.1 kB
view hashes)