Use async Python library?
Hi, I wonder if it is possible to use an async Python library like Surrealdb : https://surrealdb.com/docs/sdk/python/setup
Thanks.
SurrealDB
Python setup | SDKs | Integration
The SurrealDB SDK for Python enables simple and advanced querying of a remote or embedded database.
1 Reply
async in Mojo is very, very early days. I put out a "start the conversation" proposal last week.
You might be able to use an event loop from python if you really need to, but there's going to be very limited ability to use Mojo inside of that. I'd suggest spawning two processes and having them communicate for now.