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.0.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file fs.dropboxfs-1.0.0.tar.gz
.
File metadata
- Download URL: fs.dropboxfs-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.8 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa6ef3349cf00a845ef1df88a1b375a14831fbbf6f360f733eb923fc5f57c62 |
|
MD5 | 7ad05839ab162aefb5b04c084545d3c5 |
|
BLAKE2b-256 | ae7d7a4981894393373e0e136baa7799974550ed4e832b47909210bed01ddace |
File details
Details for the file fs.dropboxfs-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: fs.dropboxfs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7012401f3a0bd35eb5ae144ef85b858bba43237784b4c3fcc8b75548cf2ac1d9 |
|
MD5 | c375cb38fd52fcfe73e2a3681f748e3e |
|
BLAKE2b-256 | 8e975fe72e23aa5475cb0a5d09f5bcad0047bde04226554dfb7cfd4732a41dd9 |