Download all files in a Blackfynn collection via command line or gui
Project description
collectiondbf
Collection Downloads from BlackFynn
A python tool for downloading a collection of files from Blackfynn. Can be run from command line or enter input in a UI
Installation
Windows
pip install collectiondbf
Linux
sudo apt-get install python3-tk
pip3 install collectiondbf
MacOS
pip install collectiondbf
*Note that since macOS python does not come with tkinter, only command line usage is supported.
collectiondbf requires python 3.3+ and tkinter to run
Usage
Command Line
The commands below will download the desired directory at the command prompts location.
python -m collectiondbf <api-key> <api-secret> <collection:ID>
If you cannot find the collection ID for the folder you wish to download, check for it in the url like so:
Alternatively check out this 50s video tutorial on how to find collection ID and API keys in Blackfynn
User Interface
Running python -m collectiondbf
will start the following ui to input keys and collection ID
Using config.py for regular usage
Set environment variables to your Blackfynn keys
BLACKFYNN_API_TOKEN=xxxxx-xxxxx-xxxxx
BLACKFYNN_API_SECRET=xxxxx-xxxxx-xxxxx
or
Edit config.py to your keys:
config.py
import os
API_TOKEN = 'xxxxx-xxxxx-xxxx'
API_SECRET = 'xxxxx-xxxxx-xxxxx'
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
File details
Details for the file collectiondbf-1.0.0.tar.gz
.
File metadata
- Download URL: collectiondbf-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f5ecafc645daa37290a9efb6e39c78c8d0243261bc4e6c192d93674615e590 |
|
MD5 | bdafe55bae36f4a2e2f31f7b0a8e2ed0 |
|
BLAKE2b-256 | 2f2a88a41dc7348f87d1dab8fc75d0c381d6d09a86b245bd65f56399bba4638c |