Skip to main content

AI Dungeon api for python

Project description

AIDungeonAPI

Api to interface with AI dungeon

Example

from aidadventure import AIDungeonAdventure
from aidclient 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.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

aidungeonapi-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file aidungeonapi-0.0.1.tar.gz.

File metadata

  • Download URL: aidungeonapi-0.0.1.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

Hashes for aidungeonapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c58f203e35dbe1e3d246da2053995b77f0c306cbe8e1c274db47e39b134edbe5
MD5 06c2b3a85d20d9765b92a9c3717bd55a
BLAKE2b-256 1e751b38f75160ec5d3a6ba33f20f4c987e75b345c6d77dfec5867fcff17fa32

See more details on using hashes here.

Provenance

File details

Details for the file aidungeonapi-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aidungeonapi-0.0.1-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

Hashes for aidungeonapi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb8a6780e046e5d74e052b3a78946ee19fc7be7406a1ce357d6daeeeaa0a4565
MD5 a3ca72b5558f868a99f04b03d50ae7a4
BLAKE2b-256 b9eede815018f780a0a01434e24e6dc1f163131838cc136ddbed94201c04f77a

See more details on using hashes here.

Provenance

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