This was brought up by farmOS/field-kit#295
When using a password such as J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxS special consideration must be used. Normally this string would encode the escape character \N when written with double quotes: "J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxS" Python will use the escape character or throw an error if it is invalid. To fix this, the string must be passed as r"J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxS" - this passes it as a raw string that Python will respect.
It is the responsibility of the user to pass a raw string containing their password to the farmOS.py client - this should be taken into consideration for libraries that utilize the farmOS.py client
That said, there is a bug: When passwords are saved in the config file, they must be retrieved as a raw string. Currently this is not done and will throw an error for complex passwords.
This was brought up by farmOS/field-kit#295
When using a password such as
J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxSspecial consideration must be used. Normally this string would encode the escape character\Nwhen written with double quotes:"J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxS"Python will use the escape character or throw an error if it is invalid. To fix this, the string must be passed asr"J6Q-xAd+d:K[b>Bo>\Nn%Q-kB)Y+hdxS"- this passes it as arawstring that Python will respect.It is the responsibility of the user to pass a
rawstring containing their password to the farmOS.py client - this should be taken into consideration for libraries that utilize the farmOS.py clientThat said, there is a bug: When passwords are saved in the config file, they must be retrieved as a raw string. Currently this is not done and will throw an error for complex passwords.