Skip to main content

Pyfilesystem2 implementation for Dropbox

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fs_dropboxfs-1.0.2.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

fs_dropboxfs-1.0.2-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page