To update/change back to v0.3.2, simply run this command in the terminal
pip install rblx-open-cloud==0.3.2
Changelog
Added exclusive_create to DataStore.set(). When True it will not update and raise PreconditionFailed if they is already a value for the key.
Added previous_version to DataStore.set(). When provided, it will not update and raise PreconditionFailed if previous_version is not the latest version ID.
Added docstrings to functions
ListedEntry and EntryVersions now support being compared with the == operator.
To update/change back to v0.4.1, simply run this command in the terminal
pip install rblx-open-cloud==0.4.1
Changelog
Added limit paramater to DataStore.list_keys(), DataStore.list_versions() and Universe.list_data_stores(). This will limit the number of items returned so you don’t have to set up a system to break out of a loop yourself!
Added rblxopencloud.VERSION and rblxopencloud.VERSION_INFO values.
Added requirements for Python 3.9 because the library will not work with earlier versions.
I also made some examples!! you can have a look at them in the examples/ directory!
To update/change back to v1.0.0, simply run this command in the terminal
pip install rblx-open-cloud==1.0.0
I’m sorry for the breaking change, but I changed the rblxopencloud.Universe name to rblxopencloud.Experience, and I also changed DataStore.universe to DataStore.experience. I had to do this because I didn’t want to live on forever knowing that I used the wrong name for Experiences (after the V1 release I can’t really make breaking changes)
NOTE: If you have intentionally installed a version of the library for alpha usage, it does NOT have the Universe name changes yet. I won’t change the name for them until they’re fully released into the library (which is when Roblox releases the update.)
Just to note, you should make it clear when uploading an image if the status code is 400, you currently say “The file is not a supported type, or is corrupted”, 400 seems to also get returned if the name or description get moderated.
Or at least renaming files solves the issue and there seems to be no pattern to it.
didn’t have access to very good documentation during the beta when I coded it, so I’ll look over it and update the error messages. I’ll keep you updated!
From my testing, I concluded that it would just tag out the name and description instead of rejecting it.
It might be worth waiting, Roblox have said they intend on the API making it clear when items are moderated etc. in the future.
Great wrapper btw, has saved me alot of time fiddling around with trying to get images to post properly.
True, but it’s bets to implement it sooner, rather than later. It took Roblox about 6 months to get from private beta to public beta, so it could take quite a while for the change to happen.
I’ve already made a change that’s in the beta version of the library, which can be installed using this command:
Is there anyway to clear datastore.list_versions("some random key")
Because it seems once I remove a key my API seems to still see the key as if it still exists.
Code
Entrys: int = 0
for Entry in NEX_Datastore.list_keys():
Entrys += 1
print('Total Entrys: ',Entrys)
This is my current solution
Entrys: int = 0
for _ in NEX_Datastore.list_keys():
try:
NEX_Datastore.get(_.key)
Entrys += 1
except (rblxopencloud.NotFound):
continue
print(Entrys)