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.
python3-pip is already a dependency and should be downloaded along Cargo. It does however require google's official api client.
pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
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
Since this is an assembly project, please refer to the individual files for licensing information.
Attachment | Size | Date |
---|---|---|
harbour-cargo-1.0-1.armv7hl.rpm | 144.08 KB | 20/10/2020 - 20:31 |
harbour-cargo-1.0-2.armv7hl.rpm | 143.75 KB | 30/10/2020 - 00:55 |
harbour-cargo-1.1-6.noarch.rpm | 349.47 KB | 28/02/2023 - 15:18 |
* Thus Feb 23 2023 Logic-gate <amer@live.ca> 1.1-6
- Basic file upload
- Upload to dir in view
* Wed Feb 22 2023 Logic-gate <amer@live.ca> 1.1-5
- Fixed OOB dep by by adding login method for token extraction
- Attah added save as PDF
* Wed Apr 27 2022 Logic-gate <mad_dev@linuxmail.org> 1.1-4
- Fixed Hardcod nemo
- Fixed download name and path issue; was showing id rather than name
- Added Sailjail Profile
- Added Share for non-google-mimetype files
- Added Open non-google-mimetype files direclty from cargo
- Added new icons
- Fixed ColorScheme switch from dark to light depending on ambience
Comments
drakegao
Sun, 2024/01/07 - 05:28
Permalink
Stuck on generating pickle, i dont know where to get the passcode.
mad_dev
Wed, 2020/10/21 - 12:01
Permalink
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
Tue, 2020/10/20 - 22:52
Permalink
Sorry, my mistake. run it as root
devel-su pip3...etc
ninepine
Wed, 2020/10/21 - 11:22
Permalink
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
Tue, 2020/10/20 - 21:53
Permalink
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?