pytdc
Therapeutics Commons
What it is and what it does
PyTDC is a machine-learning platform built on the Therapeutic Data Commons that unifies heterogeneous biomedical datasets, model weights, and benchmarking infrastructure for drug discovery research. It implements an API-first architecture to provide standardized access to multimodal biological data—including molecular, protein, and single-cell information—alongside curated machine learning tasks spanning target discovery, activity screening, efficacy, and safety evaluation across small molecules, antibodies, and vaccines.
The package streamlines the full ML workflow: data loading and preprocessing, model training and evaluation against established benchmarks, and inference using state-of-the-art research-ready models. It integrates single-cell analysis with multimodal machine learning, enabling contextualized tasks that combine foundation models with therapeutic applications. Most datasets can be retrieved with minimal code, and the platform provides data functions for splitting, evaluation, and molecule generation—reducing boilerplate and standardizing how researchers compare methods.
Use it for:
- Benchmark ML models on standardized drug discovery tasks to compare against published baselines.
- Access curated, preprocessed molecular and biological datasets without writing custom data pipelines.
- Train and evaluate single-cell foundation models for transfer learning in therapeutic applications.
- Retrieve and deploy pre-trained biomedical representation learning models for inference.
- Develop and validate new ML methods for drug safety, efficacy, and manufacturing prediction.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyTDC provides unified access to multimodal biomedical datasets, machine learning benchmarks, and state-of-the-art model weights for drug discovery and therapeutic AI research, with standardized training, evaluation, and inference endpoints.
Yes, with conditions. PyTDC is worth installing if you are conducting drug discovery or therapeutic AI research and need standardized, multimodal datasets and benchmarks. The high install friction (19 dependencies, including rdkit and specialized bioinformatics libraries) and 501-day gap since last release are trade-offs; verify that your Python environment and system can support the full dependency stack, and check the repository for current maintenance status before committing to production workflows. No known security vulnerabilities and permissive MIT licensing are strong positives.
Install
pytdc on PyPI
pip
pip install pytdcuv
uv add pytdcpoetry
poetry add pytdcInstalling pytdc
Before you install
High install friction: 19 runtime dependencies including transformers, datasets, huggingface_hub, scikit-learn, rdkit, and specialized bioinformatics libraries (cellxgene-census, tiledbsoma, gget). Package is aging (501 days since last release) but repository remains active with recent commits and 1272 stars.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for both research and production deployment in therapeutic applications.
Quickstart
pip install pytdc
from pytdc import DataLoader
data = DataLoader(name='DATASET_NAME')
X, y = data.get_split(split='train')
Requires rdkit (chemistry toolkit) and cellxgene-census/tiledbsoma (single-cell data access), which may need system-level dependencies or network access to remote data repositories.
Verify before relying
- Minimum Python version requirement not specified in metadata; compatibility with modern Python versions unclear.
- Whether all 19 runtime dependencies are required for basic usage or if subsets can be installed for specific tasks.
- Current maintenance cadence and responsiveness to issues given 501-day gap since last release.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | 19 — accelerate, dataclasses, datasets, evaluate, fuzzywuzzy, huggingface_hub, numpy, openpyxl, pandas, requests, scikit-learn, seaborn, tqdm, transformers, cellxgene-census, gget, pydantic, rdkit, tiledbsoma |
| Maintenance | aging — 501 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 95,485/month — #13,264 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytdc-1.1.15.tar.gz
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
ogbOGB provides standardized benchmark datasets,…
permissive · top 15,000 on PyPI
flairFlair is a PyTorch-based NLP framework that…
permissive · top 15,000 on PyPI
mudataMuData is a container for multimodal omics data…
permissive · top 15,000 on PyPI
chempropChemprop trains and deploys message passing…
permissive · top 15,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
rf100vlProvides programmatic access to RF100-VL, a…
permissive · top 15,000 on PyPI
monaiMONAI is a PyTorch-based framework for building…
permissive · top 15,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
torchxrayvisionTorchXRayVision provides pre-trained deep…
permissive · top 15,000 on PyPI
azureml-train-coreProvides estimator classes for training machine…
unclear · top 15,000 on PyPI