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:

  • DROPBOX_APP_KEY - your app key (see Dropbox Developer Console)
  • DROPBOX_APP_SECRET - your app secret (see Dropbox Developer Console)
  • DROPBOX_CREDENTIALS_PATH - path to a json file which will contain the credentials

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.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

fs.dropboxfs-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fs.dropboxfs-1.0.1.tar.gz.

File metadata

  • Download URL: fs.dropboxfs-1.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.8 Darwin/21.4.0

File hashes

Hashes for fs.dropboxfs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5e8b791e8bbdf870bfef27acc6924727ac1f0160b05a5396c7ca7b6f6cfbfd70
MD5 a86fac31c0cc234c4178a605e9847814
BLAKE2b-256 c812f17144c20fb3424e111d99b88bf03a9c3c09898868d33275ca76985d7053

See more details on using hashes here.

File details

Details for the file fs.dropboxfs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fs.dropboxfs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.8 Darwin/21.4.0

File hashes

Hashes for fs.dropboxfs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7b618b79002294b716959a55f5d59fa7e8871b3017c1e56c4a3e1146277556
MD5 1112ea6d68a55aae32a639648e742ea7
BLAKE2b-256 ad3d9bf23a3f78d1cf41453f6fae832b63e85b3379736087b1822485f94a2a47

See more details on using hashes here.

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