AI Dungeon api for python
Project description
AIDungeonAPI
UNOFFICIAL Api to interface with AI dungeon
Example
from aidungeonapi import AIDungeonClient
import asyncio
async def callback(result):
print(result)
async def blocking_task():
while True:
await asyncio.sleep(10)
async def main():
aidc = await AIDungeonClient(debug=True)
adventure = await aidc.connect_to_public_adventure('51e86616-507f-49f7-b07d-9a58b3261781')
await adventure.register_actions_callback(callback)
await asyncio.create_task(blocking_task())
asyncio.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
aidungeonapi-0.0.5.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for aidungeonapi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091c9a1d944ea241b9ee3cb473dba4b37b4cbbe4ba0a49b47c13de57357f3e05 |
|
MD5 | bdd0e197cd1a22667bca3262fc294168 |
|
BLAKE2b-256 | a1e77e86323d59b9c34b699b9c88bf05abd5b41a98b5a2f64b5d7480b5700513 |