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.6.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aidungeonapi-0.0.6.tar.gz.
File metadata
- Download URL: aidungeonapi-0.0.6.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
addb57aee5e926e763501bcc5d6e2d2057c551eb3047afb973de9ad935e0af1c
|
|
| MD5 |
26b15a20004f234c6dfa51ed09c38cb4
|
|
| BLAKE2b-256 |
af144d2bc4a54cca9d063889b081d54303c594f3ae71d47be027cf77cec06234
|
File details
Details for the file aidungeonapi-0.0.6-py3-none-any.whl.
File metadata
- Download URL: aidungeonapi-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96825637ff42bc9ee4f98fc8a2d07e60fd0920d1f2ee2e2f25696dfe5e5209b1
|
|
| MD5 |
e714de4284db2d672dfd8b88ca64848d
|
|
| BLAKE2b-256 |
a63c5b3732477fff6b27c37c5a076b331296c49e96ab62ca78724a297b3006ce
|