rkhwaja / fs.dropboxfs

Pyfilesystem2 implementation for Dropbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fs.dropboxfs

Implementation of pyfilesystem2 file system using Dropbox

image PyPI version

Usage

from fs import open_fs
from fs.dropboxfs import DropboxFS

dropboxFS = DropboxFS(
  accessToken=<your access token>,
  refreshToken=<your refresh token>,
  app_key=<your app key>,
  app_secret=<your app secret>)

dropboxFS2 = open_fs('dropbox:///somedirectory?access_token=your_access_token&refresh_token=your_refresh_token')

# dropboxFS and dropboxFS2 are now standard pyfilesystem2 file systems

Development

To run the tests, set the following environment variables:

Then generate the credentials json file by running

./test/generate_credentials.py

Then run the tests by executing

  poe test

in the root directory

About

Pyfilesystem2 implementation for Dropbox

License:MIT License


Languages

Language:Python 100.0%