Cargo

Rating: 
4.75
Your rating: None Average: 4.8 (4 votes)

harbour-cargo

A Google Drive client for SailfishOS using pyotherside. 

Cargo was created out of necessity, my work relies heavily on Google Docs, and I just needed a simple/fast way to view/download files other than the browser...Cargo was born. 

Current Functionality: 

  • Open links
  • Download
  • Search

python3-pip is already a dependency and should be downloaded along Cargo. It does however require google's official api client. 

Steps:

pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

Addendum:

If you wish to use your own client_id. create a project(https://console.developers.google.com) and add the following scopes and just replace the client_id before initial launch. 

SCOPES = [

    auth/drive.metadata.readonly,

    /auth/drive,

    /auth/drive.appdata,

    /auth/drive.file,

   /auth/drive.metadata,

   /auth/drive.readonly,

    /auth/drive.photos.readonly

    ]

Replace this file (/usr/share/harbour-cargo/qml/creds/client_id.json) with yours. 

If you have already logged in and wish to change to your own client, make sure to delete the token.

Token: /home/nemo/.config/harbour-cargo/token.pickle

Then, log in to your google account and remove cargo

Google link: https://myaccount.google.com/permissions

Credits

Since this is an assembly project, please refer to the individual files for licensing information.

 

 

Screenshots: 

Keywords:

Application versions: 
AttachmentSizeDate
File harbour-cargo-1.0-1.armv7hl.rpm144.08 KB20/10/2020 - 20:31
File harbour-cargo-1.0-2.armv7hl.rpm143.75 KB30/10/2020 - 00:55
Changelog: 

A few fixes. For more info, check the latest commit on Github

Comments

mad_dev's picture

is it the same password set in dev tools? We need to be root to install the packages. I didn't test it with --user but you can. The diff is that the packages in root are installed in /usr/local/lib/ whereas if given the --user arg it will install them in a dir owned by nemo. In theory installing with --user should work. If you have any more issues, find me on telegram @Mad_Dev

mad_dev's picture

Sorry, my mistake. run it as root

devel-su pip3...etc

ninepine's picture

Thanks. I'm now getting "Auth failed" after I do devel-su pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib 

and enter my password.

 

ninepine's picture

Not very code literate but get 
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python3.8/site-packages/httplib2-0.18.1.dist-info'
Consider using the `--user` option or check the permissions.

when trying to do pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

Any ideas please?