Asynchronous
Alpha Feature
The asynchronous version of the library is currently in Alpha. If you find any issues with it please report it in the annoucement's thread in the Discord server, or on the GitHub issue tracker.
If you're using rblx-open-cloud in an asynchronous context, such as with discord.py or ro.py, then it could be beneficial to use the aynchronous version of the library.
Importing the Library
Just import rblxopencloudasync instead of rblxopencloud, and that's it besides some new syntax which we will go over.
from rblxopencloudasync import Experience, APIKey
Syntax Differences
All classes, methods, and attributes still persist the same values/returns, so you can still use the library reference. The difference is all methods that call to the Roblox API need to be awaited. For example, Experience.get_datastore does not need to be awaited, but Experience.publish_message does. Here is an example of the differences between the two libraries for fetching a key, and listing it's versions:
from rblxopencloudasync import Experience
experience = Experience(0000000000, "api-key")
datastore = experience.get_datastore("playerData")
value, info = await datastore.get_entry("287113233")
print(value, info)
async for version in datastore.list_versions("287113233"):
print(version)