Thank you. I have a strange error when trying to configure token:

/usr/lib/python3.9/site-packages/rest_uploader/api_token.py in get_token()
      8     else:
      9         token = input("Paste your Joplin API Token:")
---> 10         with open(".api_token.txt", "w") as f:
     11             f.write(token.rstrip())
     12     return token

PermissionError: [Errno 13] Permission denied: '.api_token.txt'

I opened the script in an interactive way in ipython and gave me '/usr/lib/python3.9/site-packages/rest_uploader' as the current path. I don't if there is an expected directory which is or could be define so that rest_uploader would find the .api_token.txt. Should that be the directory were files are uploaded (this is what makes sense to me)?

I installed the script in archlinux with the following command:

pypi2pkgbuild.py git+https://github.com/kellerjustin/rest-uploader

which constructs automagically an archlinux package from github. Don't know if this could have modified something in the script.

The script was installed in /usr/lib/python3.9/site-packages/rest_uploader/

 $ ls /usr/lib/python3.9/site-packages/rest_uploader. The following files were installed:

api_token.py  cli.py  __init__.py  __pycache__  rest_uploader.py