ひとりぶろぐ

価値ある情報をユーザー視点で発信するブログ

Pythonista 3にシェル、Dropbox同期・ダウンロード機能などAppleが許さない機能を追加する

      2019/12/01


Install stash shell dropbox sync dropbox file picker to the pythonista 3 00016Install stash shell dropbox sync dropbox file picker to the pythonista 3 00016
iOSPythonista 3

Python 3.5 / 2.7iOSPythoniOS


2008App Store

 Pythonista 3AppApp : Productivity
: Ole Zorn: 244.4 MB
: 0 


Pythonista 3AppleApple

App StoreApple

2008

220109iOS



ScratchiOS姿

 Scratch Kids LiteAppApp : Education
: David Phillips: 93.8 MB
: 0 


Pythonista 3Pythonista 1.xDropboxPythonista 2

Dropbox便PythonistaDropbox



PythoniOS使iOS

Dropbox便

ユーザーサイドで失われた機能を補完する


Pythonista

dropbox


[] Dropbox for Python  Pythonista Documentation


Pythonista 2Dropbox

DropboxSync.pyPythonistaDocumentsDropbox


[] DropboxSync


DropboxPythonistaDocumentsDropbox File Picker.pyPythonista 3Ole Zorn


[] Dropbox File Picker.py


Pythonista 3

PythonistaStaSh

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00017Install stash shell dropbox sync dropbox file picker to the pythonista 3 00017
PythonistaPython


[] StaSh  Shell Like an Expert in Pythonista | omz:forum


Pythonista 3Objective-CPythonista 3

Pythonista 3APIPythonista 3

Pythonista 3Pythonista 3使

StaShPythonista 3CUIWindows 10Windows Subsystem for LinuxStaShPythonistapipgitlsrmcdpwdwgetcurltelnetsshscpPC/Mac使Pythonista 3使

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00013Install stash shell dropbox sync dropbox file picker to the pythonista 3 00013
manman pip

macOSpbcopypbpaste

Pythonista 3Dropbox File Picker.pyDropboxSync.pyStaShPythonista

Pythonista 3姿

StaSh


DropboxSync.py便使StaSh

Pythonista 31enter
import requests as r; exec(r.get('http://bit.ly/get-stash').text)

StaShzipmacOSHomebrew

Pythonista 3iOSHome2Pythonist 3

launch_stash.py

EditCustom TitleStaShDone

使StaSh

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00010Install stash shell dropbox sync dropbox file picker to the pythonista 3 00010
StashStaSh

Stashdev2016dev
selfupdate dev

help使

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00012Install stash shell dropbox sync dropbox file picker to the pythonista 3 00012
StaSh

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00011Install stash shell dropbox sync dropbox file picker to the pythonista 3 00011
Home ScreenHome

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00009Install stash shell dropbox sync dropbox file picker to the pythonista 3 00009

Dropbox File Picker.py


Dropbox File Picker.py

gist使


[] Dropbox File Picker.py




Pythonista 3StaShwget.py


Dropbox File Picker.py

Dropbox

Create app

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00005Install stash shell dropbox sync dropbox file picker to the pythonista 3 00005
Install stash shell dropbox sync dropbox file picker to the pythonista 3 00004Install stash shell dropbox sync dropbox file picker to the pythonista 3 00004

(一)Dropbox API

(二)Full Dropbox

(三)db_file_picker_xxxxxxxxxdropbox

「Generate access token」のところの「Generate」ボタンを押し、トークンを生成。

生成されたトークンをコピーしてPythonistaに持っていきます。僕はEvernote経由で持っていきました。

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00003

Dropbox File Picker.pyにトークンの転記


Dropbox File Picker.py

Dropbox File Picker.pyYOUR_TOKEN_HERE
TOKEN = 'YOUR_TOKEN_HERE'

StaShDBPicker



DropboxOKDropbox File Picker.pyTableView使

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00015Install stash shell dropbox sync dropbox file picker to the pythonista 3 00015
Documents

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00014Install stash shell dropbox sync dropbox file picker to the pythonista 3 00014
PythonistaPythonPythonista

DropboxSync.py


DocumentsDropboxDropboxSync.py

Dropbox File Picker.pywgetDropboxSyncv2.py

DropboxAPIForkDropboxSync.py  DropboxSyncv2.py使

DropboxSyncv2.pydropboxloginv2.py

App keyApp secret


DropboxSyncv2.pyApp keyApp secret

以下のページにDropboxにログインした状態でアクセス。

「Create app」ボタンをクリック。

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00005

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00002

  1. 「Dropbox API」を選択
  2. 「App Folder」を選択
  3. 「db_sync_xxxxx」などと命名。末尾の「xxxx」は自分固有のものにします。なお名前に「dropbox」を含むことはできません

「App key」と「App secret」をコピーしてPythonistaに持っていきます。僕はEvernote経由で持っていきました。

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00001

DropboxSyncv2.pyにApp keyとApp secretを転記


App keyApp secretDropboxSyncv2.pydropboxloginv2.py

DropboxSyncv2.pydropboxloginv2.pyApp keyApp secret

dropboxloginv2.pyYOUR_APP_KEYYOUR_APP_SECRET
app_key = 'YOUR_APP_KEY'
app_secret = 'YOUR_APP_SECRET'

DropboxSyncv2.pyStaSh



Dropbox

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00008Install stash shell dropbox sync dropbox file picker to the pythonista 3 00008
Dropbox File Picker.pyDropbox使

Install stash shell dropbox sync dropbox file picker to the pythonista 3 00007Install stash shell dropbox sync dropbox file picker to the pythonista 3 00007
Web×enter



Install stash shell dropbox sync dropbox file picker to the pythonista 3 00006Install stash shell dropbox sync dropbox file picker to the pythonista 3 00006


StaShDropbox File Picker.pyDropboxSync.pyPythonista 3

Pythonista 3



 Pythonista 3AppApp : Productivity
: Ole Zorn: 244.4 MB
: 0 


 - iOS