Metadata-Version: 2.1
Name: aidungeonapi
Version: 0.0.5
Summary: AI Dungeon api for python
Home-page: https://github.com/1Macho/AIDungeonAPI
Author: 1Macho
Author-email: ozjuanpa@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: gql (>=v3.0.0a1)

# AIDungeonAPI
UNOFFICIAL Api to interface with AI dungeon

# Example

```python
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())
```


