Pyfilesystem2 implementation for Dropbox
Project description
fs.dropboxfs
Implementation of pyfilesystem2 file system using Dropbox
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for fs.dropboxfs-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a7b618b79002294b716959a55f5d59fa7e8871b3017c1e56c4a3e1146277556 |
|
MD5 | 1112ea6d68a55aae32a639648e742ea7 |
|
BLAKE2b-256 | ad3d9bf23a3f78d1cf41453f6fae832b63e85b3379736087b1822485f94a2a47 |