Skip to main content

collectiondbf

PyPI version Maintainability

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

Downloading Collections

The commands below will download the desired directory at the command prompts location.

python -m collectiondbf <collection:ID> [api-key] [api-secret] [--recursive]

Add the --recursive option if you wish to download all nested directories under the given location

If you cannot find the collection ID for the folder you wish to download, check for it in the url like so:

collectionID

Alternatively check out this 50s video tutorial on how to find collection ID and API keys in Blackfynn

NOTE You only have to input your keys once! collectiondbf will save them for you for subsequent downloads!

Downloading Datasets

Downloading datasets works exactly the same as downloading collections! Just put the dataset ID in place of the collection ID

python -m collectiondbf <dataset:ID> [api-key] [api-secret] [--recursive]

User Interface

Running python -m collectiondbfwill start the following ui to input keys and collection ID select_channel_2019-09-13 16-24-58 (2)

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'

Metadata

Release files for collectiondbf 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collectiondbf 1.1.7
File Size Uploaded Provenance Actions
collectiondbf-1.1.7.tar.gz 5.0 kB Without provenance Details for collectiondbf-1.1.7.tar.gz

Release files / collectiondbf-1.1.7.tar.gz

Download URL collectiondbf-1.1.7.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f406392c8bd774989a13afcca388acf57c3c3d60c72de783f63257bffd0f7316
BLAKE2b-256 checksum
How to use checksums
50b44724c3e6860a9f4b0ea3ef29f241679fbe9a552ee165658c31d9078041a3
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for collectiondbf 1.1.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page