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.

Metadata

Release files for cnb-tools 0.7.0

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

Source distribution (sdist)

Source distribution for cnb-tools 0.7.0
File Size Uploaded Provenance
cnb_tools-0.7.0.tar.gz 239.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cnb-tools 0.7.0
File Interpreter ABI Platform
cnb_tools-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 276.9 kB

Release files / cnb_tools-0.7.0.tar.gz

Download URL cnb_tools-0.7.0.tar.gz
Size 239.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fbb8a8db87a6453a2d9fa5b24214c1cd9e91f1c9a00cc6153d4d578088c5da11
BLAKE2b-256 checksum
How to use checksums
379890b21d6364366b69cc2f247dce0bdc36af402036faf33efeadf81c1b5b04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / cnb_tools-0.7.0-py3-none-any.whl

Download URL cnb_tools-0.7.0-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31931b14a650a7ac35cff8490ed8eca4e7fc58f0c7bdb70f0773f5b387dcbf4c
BLAKE2b-256 checksum
How to use checksums
6d27b33e9fb1f842c134a30fb0d09d8d81b03d66567f62f9579ec6682a0092cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for cnb-tools 0.7.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cnb_tools-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

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