Skip to main content

cnb-tools

Convenience tools/functions for challenges and benchmarking on Synapse.org


PyPI version Supported Python versions License

📖 Documentation: https://sage-bionetworks-challenges.github.io/cnb-tools

👾 Source code: https://github.com/Sage-Bionetworks-Challenges/cnb-tools


cnb-tools is a set of tools and commands that provides an interface for managing crowd-sourced challenges hosted on Synapse.org, including but not limited to, DREAM Challenges.

Requirements

To fully utilize cnb-tools, you must have a Synapse account and provide your credentials to the tool. First, generate a Synapse Personal Access Token (PAT) with all token permissions enabled.

Next, run the following command, then follow the prompts to enter your Synapse username and PAT:

synapse config

This will create a .synapseConfig file in your home directory. For security, we recommend updating its permissions so that other users on your machine do not have read access to your credentials, e.g.

chmod 600 ~/.synapseConfig

Installation

For best practice, use a Python environment to install cnb-tools rather than directly into your base env. In our docs, we will be using uv, but you can use venv, pyenv, etc.

# Create a new env and activate it
uv venv --python 3.12 .venv
source .venv/bin/activate

# Install cnb-tools
uv pip install cnb-tools

NOTE

cnb-tools builds off of the Synapse Python Client — by installing cnb-tools, you will also be installing synapseclient.

Read its docs.

Verify the installation with:

cnb-tools

Running With Docker

If you rather not install cnb-tools onto your machine, you may still use it via Docker! The package and list of versions are available here.

To provide your Synapse credentials to the Docker container, you must first create a file with your Synapse PAT as the SYNAPSE_AUTH_TOKEN environment variable:

SYNAPSE_AUTH_TOKEN=<YOUR PAT>

The docker run command will look something like this, assuming the file is named ~/.synapse-config:

docker run --rm \
  --env-file ~/.synapse-config \
  ghcr.io/sage-bionetworks-challenges/cnb-tools \
  COMMAND [ARGS]

License

cnb-tools is released under the Apache 2.0 license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cnb_tools-0.6.0.tar.gz (226.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cnb_tools-0.6.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file cnb_tools-0.6.0.tar.gz.

File metadata

  • Download URL: cnb_tools-0.6.0.tar.gz
  • Upload date:
  • Size: 226.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cnb_tools-0.6.0.tar.gz
Algorithm Hash digest
SHA256 84470d75b7cd5d5bf12bf4547e202a2d9fe9ea70eb7bdccd999accc43d140549
MD5 76c49c327d6459257f7e4b0c9ce44031
BLAKE2b-256 340a295c7dad7c7af9e0202b5beca2ec023b17315212ebe8dd484a2badc745c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cnb_tools-0.6.0.tar.gz:

Publisher: publish.yml on Sage-Bionetworks-Challenges/cnb-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cnb_tools-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: cnb_tools-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cnb_tools-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ffd080a836d94d523a7a8b888eed68deb1ad51083f5c1ba2a1263c14817997
MD5 b6ce021cb012c2c18347eab1a67f498a
BLAKE2b-256 ed18d28f011386cb7eb58e11f3177f2e57e3cabb7e7385579d5b1c7f3661fc3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cnb_tools-0.6.0-py3-none-any.whl:

Publisher: publish.yml on Sage-Bionetworks-Challenges/cnb-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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