{"id":18858339,"url":"https://github.com/hardwario/gupload","last_synced_at":"2026-03-14T12:07:10.739Z","repository":{"id":57436377,"uuid":"199722717","full_name":"hardwario/gupload","owner":"hardwario","description":"Google Drive CLI Uploader","archived":false,"fork":false,"pushed_at":"2023-08-10T19:38:44.000Z","size":12,"stargazers_count":16,"open_issues_count":3,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T01:05:56.287Z","etag":null,"topics":["ci","cli","gdrive","python","uploader"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardwario.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-30T20:29:39.000Z","updated_at":"2025-02-21T20:12:28.000Z","dependencies_parsed_at":"2022-09-06T01:12:06.346Z","dependency_job_id":null,"html_url":"https://github.com/hardwario/gupload","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgupload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgupload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgupload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardwario%2Fgupload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardwario","download_url":"https://codeload.github.com/hardwario/gupload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248448181,"owners_count":21105255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","cli","gdrive","python","uploader"],"created_at":"2024-11-08T04:12:09.620Z","updated_at":"2026-03-14T12:07:10.678Z","avatar_url":"https://github.com/hardwario.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gupload - Google Drive CLI Uploader\r\n\r\n[![Travis](https://img.shields.io/travis/hardwario/gupload/master.svg)](https://travis-ci.org/hardwario/gupload)\r\n[![Release](https://img.shields.io/github/release/hardwario/gupload.svg)](https://github.com/hardwario/gupload/releases)\r\n[![License](https://img.shields.io/github/license/hardwario/gupload.svg)](https://github.com/hardwario/gupload/blob/master/LICENSE)\r\n[![PyPI](https://img.shields.io/pypi/v/gupload.svg)](https://pypi.org/project/gupload/)\r\n\r\n\r\nOur motivation to create the **gupload** tool was the deployment of the GitLab CI artifacts to our Google Drive disk. The tool is not limited to this use-case though. It is a simple Python 3 command-line utility ingesting file names and their respective path arguments. Those are uploaded to Google Drive via Google service account (recommended approach by Google) and an optionally specified folder (through its ID).\r\n\r\nThe secret file is accessed via the environmental variable `GOOGLE_APPLICATION_CREDENTIALS` and it should be set prior the program execution:\r\n\r\n    $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json\r\n\r\n## Requirements\r\n\r\n* Python 3 + PIP\r\n* Enabled Google Drive API (you can do it in the Google Cloud Console)\r\n* Google service account (you can do it in the Google Cloud Console)\r\n* Credential JSON file to the service account\r\n* Configured environmental variable `GOOGLE_APPLICATION_CREDENTIALS` to the service account credentials\r\n\r\n## Installation\r\n\r\nInstall/upgrade the tool from PyPI using:\r\n\r\n    $ pip3 install --upgrade gupload\r\n\r\n## Usage\r\n\r\n    $ gupload --help\r\n    Usage: gupload [OPTIONS] [FILES]...\r\n\r\n    Options:\r\n    --to ID                    Target folder identifier.  [required]\r\n    -f, --file \u003cNAME PATH\u003e...  Input file(s) to be uploaded.\r\n    -n, --nono                 No action: print names of files to be upload, but\r\n                                don't upload.\r\n    --version                  Show the version and exit.\r\n    --help                     Show this message and exit.\r\n\r\n\r\n## Example:\r\n\r\n### Upload and rename\r\n\r\n    $ gupload --to 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW --file a.out ../a.out --file changelog.txt ../changelog.txt\r\n\r\nOutput:\r\n\r\n    Uploading file: a.out\r\n    Uploading file: changelog.txt\r\n\r\n\r\n### Upload all zip files\r\n\r\n    $ gupload --to 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW *.zip\r\n\r\nOutput:\r\n\r\n    Uploading file: a.zip\r\n    Uploading file: b.zip\r\n\r\n### Combination\r\n\r\n    $ gupload --to 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW --file changelog.txt ../changelog.txt *.zip\r\n\r\nOutput:\r\n\r\n    Uploading file: changelog.txt\r\n    Uploading file: a.zip\r\n    Uploading file: b.zip\r\n\r\n## Contributing\r\n\r\nPlease read [**CONTRIBUTING.md**](https://github.com/hardwario/gupload/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\r\n\r\n## Versioning\r\n\r\nWe use [**SemVer**](https://semver.org/) for versioning. For the versions available, see the [**tags on this repository**](https://github.com/hardwario/gupload/tags).\r\n\r\n## Authors\r\n\r\n* [**Pavel Hübner**](https://github.com/hubpav) - Initial work\r\n* [**Karel Blavka**](https://github.com/blavka) - Extension\r\n\r\n## License\r\n\r\nThis project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](https://github.com/hardwario/gupload/blob/master/LICENSE) file for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardwario%2Fgupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardwario%2Fgupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardwario%2Fgupload/lists"}