Skip to main content

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

Project description

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. To do so, create a .synapseConfig file in your home directory, and enter the following:

[authentication]
authtoken = "YOUR PAT"

Generate a new Synapse Personal Access Token (PAT) with all token permissions enabled, then copy-paste it into authtoken. Save the file.

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 miniconda, but you can use miniforge, venv, pyenv, etc.

# Create a new env and activate it
conda create -n cnb-tools python=3.12 -y
conda activate cnb-tools

# Install cnb-tools using pip
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

License

cnb-tools is released under the Apache 2.0 license.

Project details


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.3.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

cnb_tools-0.3.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cnb_tools-0.3.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/22.6.0

File hashes

Hashes for cnb_tools-0.3.1.tar.gz
Algorithm Hash digest
SHA256 217e8c5d924963ac0bcb412e9301d7202a52d7071f70c81d082cc0cceb76e703
MD5 691edaf277a3fb5c1f7e837f41306188
BLAKE2b-256 d1e06320e1e7762344959dd15234682024059816963670ff5e2b08103b377447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cnb_tools-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/22.6.0

File hashes

Hashes for cnb_tools-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d437d4d18ff4465bcb00acb9f8bdfc06591e759f70513ed7d8126e24468b723
MD5 bd1f8aae946f5de957235a2432942b60
BLAKE2b-256 a12c5886c7cbdd074bc0ca75d28ce82cb2aa019be57011c5053e979b13dfdc78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page