
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
This repository is ruby library to use google drive of file managmenemt and asscess to spread sheet. This libary use google DriveV3 and Sheet API V4. The library saves "gdrive.dat" in root folder of google drive.
$ sudo gem install easy-google-drive
recommend to git it for sample execution.
$ git clone git://github.com/NaotakaSaito/easy-google-drive
setting of google drive
access to https://console.developers.google.com/
login google account
click to "プロジェクトを選択"
click "+" button and create new project
click "API Manager" and "Library". Then choose Drive API and Sheet API
Enable "Drive API" and "Sheet API"
Click "認証情報" and click "認証情報を作成", Then Choose "OAuth Client ID"
click "同意画面を設定". Input "service name".
choose "その他" and click "作成"
click download button. And change file name to "client_secret.json"
move the file to project folder.
execute sample program
$ ruby test_drive.rb
require 'easy-google-drive'
myDrive = EasyGoogleDrive::Drive.new
command | operation |
---|---|
myDrive.cd("directory") | change directory |
myDrive.cd("$") | move to shared folder |
myDrive.cd("~") | move to root foloder of my drive |
myDrive.cd("~/directory") | move to directory on root foloder of my drive |
command | operation |
---|---|
myDrive.mkdir("directory") | make directory named "directory" |
command | operation |
---|---|
myDrive.rm("file") | delete file |
myDrive.rm("~/directory/file") | delete file |
command | operation |
---|---|
myDrive.get("src","dst") | get "src" in google drive. "dst" is destination file name. |
command | operation |
---|---|
myDrive.send("src","dst") | send "src" in local drive and put "dst" in google drive. |
require 'easy-google-drive'
mySheet = EasyGoogleDrive::Spreadsheet.new
command | operation |
---|---|
mySheet.open("file") | open "file". |
command | operation |
---|---|
mySheet.addNewLine("sheet",data) | Add new line. "sheet": sheet name data: Array data. |
(example) |
command | operation |
---|---|
mySheet.getData("sheet","range") | get data in "range" from "sheet" |
The authorization data is stored in "~/.credentials/"
FAQs
Unknown package
We found that easy-google-drive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.