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.4.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file fs_dropboxfs-1.0.4.tar.gz
.
File metadata
- Download URL: fs_dropboxfs-1.0.4.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 | 58deee5f30bc35c9233e7a164d531d46761abc870d1e5c244cf6a5942211a86c |
|
MD5 | 3a352b249438f1c4fe1c5e63b728fa71 |
|
BLAKE2b-256 | 75c58a2a67a5a8ac25c289b36738abe971d7f1d35c153f0820018682a0462e08 |
File details
Details for the file fs_dropboxfs-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: fs_dropboxfs-1.0.4-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 | b2f9e42a276b690cddf17d4fad3bdce7ca106531988f59124fa3b0f4286b6ebc |
|
MD5 | 65b99c5f1a32560071442b92282915a6 |
|
BLAKE2b-256 | 953ef2bc8e2364e083ac3090578b5b9fa28571bfbb194f193d673bfefdec3b68 |