Skip to main content

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.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aidungeonapi-0.0.3.tar.gz
  • Upload date:
  • Size: 5.2 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.3.tar.gz
Algorithm Hash digest
SHA256 0191b579987d68fae7af00294bb37b7248bb86ea8fc53bce04172fbd4dac8e99
MD5 18762edfd841af3abdb3e6c2e56a2429
BLAKE2b-256 4a9c7dfb0318d23b14ad696f2bc3e175af7a2e314b35c62939e24f4963f71005

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: aidungeonapi-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e218ddcb92fd12e8cab35641ec0fab6e36f2b549b93768c124c996563e2450a
MD5 b0a8f0a6b09be6671eb41322eb002648
BLAKE2b-256 cc3673410d31c82eea9839c8767ed88b347cd798ddec923e7f9c6c26b9cd7831

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