rdbtool
Dropboxのファイルを簡単に扱うためのライブラリ。
インストール
pip install rdbtool
事前準備
- ここでDropbox側の設定を行う
- 設定方法は後日解説記事を作成予定
使い方
import rdbtool
# クラスの定義
db = rdbtool.RDB('(アクセストークン)', 'プロジェクト名')
# ファイルのダウンロード (test.txtというファイルをtest1.txtとしてダウンロード)
db.download_file('test1.txt', 'test.txt')
# ファイルのダウンロード (ファイルの競合を防ぐロックをかける、アップロードでロック解除)
db.download_file('test1.txt', 'test.txt', lock=True)
# ファイルのアップロード (test1.txtというファイルをtest2.txtとしてアップロード)
db.upload_file('test1.txt', 'test2.txt')
# ファイルのアップロード (test1.txtというファイルをtest.txtとして上書きアップロード)
db.upload_file('test1.txt', 'test.txt', overwrite=False)
# 共有リンクの取得 (test.txtの共有リンクを取得)
link = db.get_shared_link('test.txt'):
Metadata
Release files for rdbtool 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdbtool-1.0.1.tar.gz | 2.5 kB | Without provenance | Details for rdbtool-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdbtool-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for rdbtool-1.0.1-py3-none-any.whl |
Total release size: 6.2 kB
Release files / rdbtool-1.0.1.tar.gz
| Download URL | rdbtool-1.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e69e0cbb62f299cdf76adafc1c96234a71b8c1ca24aa22afb5aeeba205a0c28
|
|
BLAKE2b-256 checksum How to use checksums |
4eab825349e2dcee72c3f2d21ae5cde3ca0c50a1aadbe6989b31829bd66bdf3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / rdbtool-1.0.1-py3-none-any.whl
| Download URL | rdbtool-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1d2c54a3cca17a61b262c774da8939ecc8a2bcae1e4d60f43b7b22fe1c52dd5
|
|
BLAKE2b-256 checksum How to use checksums |
d7482bcab311a0c2355289c6ec8f3a6513ecce137bebdcb977e418307604e20d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for rdbtool 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.