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.7.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file fs_dropboxfs-1.0.7.tar.gz
.
File metadata
- Download URL: fs_dropboxfs-1.0.7.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9237cd4269b8572a857c73fb9d8f9c43ea08e799c2cebb7618eba01f9b4d5e1a |
|
MD5 | 1fa5c62a1f832f15c6cedb00e95324c4 |
|
BLAKE2b-256 | e49dd5d015f032280dca19b32f045269bc1cb32ea9b5e9d591b6d477db14fd2e |
File details
Details for the file fs_dropboxfs-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: fs_dropboxfs-1.0.7-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52ef0dc09a3cebf337c4903ef568408f9652d563e7da5b9ed686655622fa7f8 |
|
MD5 | b3378c3559cc5e89d773f33954676222 |
|
BLAKE2b-256 | 9d2c5c0042228ef07883e6f10e4aac7528dadf7991a5af6175333869428d2022 |