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

Uploaded Source

Built Distribution

fs_dropboxfs-1.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file fs_dropboxfs-1.0.3.tar.gz.

File metadata

  • Download URL: fs_dropboxfs-1.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.5.0

File hashes

Hashes for fs_dropboxfs-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c89a747087a8b0fd55564efdb68676c08549de567530974e06ea0446bd740065
MD5 64a7055f46e5ed8bdad519334d9bb1f9
BLAKE2b-256 4a5e0c5c8246ea6e4a1143102b557e59dab9789517309fdd9aee4a911af07676

See more details on using hashes here.

File details

Details for the file fs_dropboxfs-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: fs_dropboxfs-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.5.0

File hashes

Hashes for fs_dropboxfs-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a9ce8ecc437bfa3bc4adf935038226b23c75d00bd602cdc3ca0218d0bfd4f3
MD5 5c6a4fa46450aa6f246b67f622c8f046
BLAKE2b-256 621cbf3aa536c7fb644995a180eae21e375fd8371f845f1240890ee4ce7d785e

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