I’d like to run the following introductory example from the dazl documentation:
import asyncio import dazl async def main(): async with dazl.connect(url='localhost:6865', read_as='Alice') as conn: async for event in conn.creates(): print(event.contract_id, event.payload) # Python 3.7+ or later asyncio.run(main())
On ‘localhost:6865’ a sandbox is running.
I get the following error message:
line 6, in main async for event in conn.creates(): AttributeError: 'Connection' object has no attribute 'creates'
What am I doing wring?