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())
Metadata
Release files for libodb 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libodb-1.0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libodb-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / libodb-1.0.1.tar.gz
| Download URL | libodb-1.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4c22b928684942135f4f039b38277a6cc1392b1e87a815eeade68eca01e38e7
|
|
BLAKE2b-256 checksum How to use checksums |
90158b539faac9ea0fa08e47ac0deaf285d272d8aefec633035648803204b23d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/5.15.8-arch1-1
|
Release files / libodb-1.0.1-py3-none-any.whl
| Download URL | libodb-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87103a80ac980006c165e4067bdd12577a9cadead014c0dac30177232d4cf3a6
|
|
BLAKE2b-256 checksum How to use checksums |
1e6121ce3b97b75ee1fe8724f2779a1073e8d75b165166bacb95f4d6bc838b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/5.15.8-arch1-1
|