It appears the python package name has been updated.
In all documentation (Github, PyPi) I could find related to the Losant rest api for python, it refers to the module as “losantrest”, and in all code examples it uses the line “from losantrest import Client”.
I was using this code and it was working well locally, however, a recent update must have changed this to be “platformrest”, as I have been attempting to run this code on an edge device, which was constantly unable to find the module “losantrest”. Initially I believed this to be an error with the device environment or the way I was installing the package via Pip. Doing a bit more digging, it seems the package module has been renamed to “platformrest”. Changing the import statement to “from platformrest import Client” has solved the issue.
Not sure if this change is intended or not, but thought it would be worth pointing out this discrepency in documentation in case anybody else is running into a similar issue.