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.5.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file fs_dropboxfs-1.0.5.tar.gz
.
File metadata
- Download URL: fs_dropboxfs-1.0.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee06c8761ba16eb9949c1d23473ae86dbd351c4947d92aa6db370424844c1ac1 |
|
MD5 | effe384376b7b564275c3612695b996c |
|
BLAKE2b-256 | fa695b0b1d73cf62dde24d0c3d416fe65d5c4b42fa343a6be61820af38a5bc2a |
File details
Details for the file fs_dropboxfs-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: fs_dropboxfs-1.0.5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da35b0c4f3437e73e4cb369242b3e1d751e5a4596712ed10e8ef7373e20f8b84 |
|
MD5 | 82786342f86a9b6b4286db0b83bfcf84 |
|
BLAKE2b-256 | 67d29d79fcd1f3a75b33dffccb1497fe1abf3be2bfb1faac0ab3746552708bba |