balena-sdk-python
balena-sdk-python copied to clipboard
Balena SDK for Python
Many of the functions in the SDK support an options parameter, but no where is documented on the SDK documentation website. It should have a lot of the information from...
Replication steps ``` >>> from balena import Balena >>> balena = Balena() >>> credentials = { 'username':'[email protected]', 'password': '******' } >>> balena.auth.login(**credentials) >>> balena.models.device.restart_service('uuid', 1234) ``` Nothing is returned from...
https://github.com/balena-io/balena-sdk-python/blob/7a9be5f150dc680d53b6be206874ff8a593f2a0b/balena/settings.py#L3 Starting with python 3.4, [`pathlib`](https://docs.python.org/3/library/pathlib.html) became - to the best of my knowledge - the de facto way of handling paths in an object-oriented way. While we will not...
Change-type: patch
Right now our CI only runs the SDK tests on a Linux Ubuntu Machine. We should add MacOS and Windows tests.
https://github.com/balena-io/balena-sdk-python/blob/b220606083d7da8723612154995ed45701c5a792/balena/utils.py#L28-L41 Not all strings of length 32 or 64 are valid UUIDs, see https://en.wikipedia.org/wiki/Universally_unique_identifier A common way to check for the UUID validity seems to be something like ```python from...
See: https://jel.ly.fish/improvement-stop-relying-device-types-v1-device-type-json-unrelated-things-4fbac3c
Is there any way to check the free disk space of the devices from the sdk? [Front conversations](https://app.frontapp.com/open/top_c5sj)
It was brought to our attention by a customer that `balena.logs.subscribe` callbacks cease happen in some cases. The code sample seems to be barebones except for the fact that it...
When trying to modify settings for login, after attempting the login the settings are reverted and the login fails as `Unauthorized`: ```python In [1]: token="" In [2]: from balena import...