Search code examples
pythondropbox

running python scripts present in Dropbox online (not in desktop) in spyder


I am unable to install Dropbox Desktop in my Linux system. I have two computers, one at home and another at work. I know I can upload scripts in one and download to the other computer while working from Dropbox. I was curious, is there a way to run the python script directly in spyder from Dropbox online?


Solution

  • Dropbox can store your scripts, but doesn't really have a code execution environment. In theory, you could pull the scripts out of Dropbox using the API and into a cloud ecosystem to run, but at that point it may be easier just to host the scripts directly where you want them to run!

    I might be able to offer more specific advice if you can describe the use case a bit.

    EDIT: So it sounds like you're going to be working with the scripts locally and just need a way to upload / download them without having access to the Dropbox app. Does this need to be programmatic (API) instead of using the Web UI?
    RE:the Dropbox API, using the files/upload and files/download endpoints will give you access to your files. You can also use the files/list_folder endpoint to list the contents of a folder. Keep in mind that once the contents of the folder grow to large to be returned in a single files/list_folder call, you'll need to use files/list_folder/continue to get the rest of the contents.