https://github.com/benkrikler/gdrive_transfer

https://github.com/benkrikler/gdrive_transfer

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: benkrikler
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 23.4 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md

gdrive_transfer

Install

Dependencies are handled here via Poetry. See https://python-poetry.org/docs/#installation for setting that up.

Then to install and use this repository bash cd <directory_containing_repo> poetry install poetry shell

Next you should make sure you've got necessary credentials to use the Drive api. 1. Create a API project on https://console.cloud.google.com - APIs + services > create project 2. Enable APIs & services > Enable Google Drive API, Google Docs API 3. Dashboard > Configure Consent screen > External - Add scopes: all Google Drive, all Google Docs - Add user: add your gmail account (you are not automatically a user!) 4. Create credentials - Dashboard > Credentials > + Create Credentials > OAuth 2.0 Client ID > Desktop App - Download json and place it where you intend to run the commands, or point the environmet variable GOOGLE_CREDENTIALS to the absolute path

This client ID file holds the credentials required to use the API, and must be accessed by the python program.

The first time you run in a while you'll have to authorize the app via a Google login page that should open

Running

Use the CLI with: bash python -m gdrive_transfer

Examples

To move a directory recursively: python -m gdrive_transfer -a mv -s <source_id> -d <dest_id> --actually-run

To get a json-based dump of the contents of a directory: python -m gdrive_transfer -a ls_json -s <file_or_directory_id>

To create a testing directory structure: python -m gdrive_transfer -a mk_test -s <parent_directory_id>

Owner

  • Login: benkrikler
  • Kind: user

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels