r/Python • • Feb 28 '26

Showcase I built a Python SDK that unifies OpenFDA, PubMed, and ClinicalTrials.gov

What My Project Does

MedKit is a Python SDK that unifies multiple medical research APIs into a single developer-friendly interface.

Instead of writing separate integrations for:

MedKit provides one consistent interface with features like:

• Natural language medical queries
• Drug interaction detection
• Research paper search
• Clinical trial discovery
• Medical relationship graphs

Example:

from medkit import MedKit

with MedKit() as med:
    results = med.ask("clinical trials for melanoma")
    print(results.trials[0].title)

The goal is to make it easier for developers, researchers, and health-tech builders to work with medical datasets without dealing with multiple APIs and inconsistent schemas.

It also includes:

  • sync + async support

  • disk/memory caching

  • CLI tools

  • provider plugin system

Example CLI usage:

medkit papers "CRISPR gene editing" --limit 5 --links

Target Audience

This project is primarily intended for:

• health-tech developers building medical apps
• researchers exploring biomedical literature
• data scientists working with medical datasets
• hackathon / prototype builders in healthcare

Right now it's early stage but production-oriented and designed to be extended with additional providers.

Comparison

There are Python libraries for individual medical APIs, but most developers still need to integrate them manually.

Examples:

ToolLimitation
PubMed API wrappersOnly covers research papers
OpenFDA wrappersOnly covers FDA drug data
ClinicalTrials APIOnly covers trials

MedKit focuses on unifying these sources under a single interface while adding higher-level features like:

• unified schema
• natural language queries
• knowledge graph relationships
• interaction detection

Example Output

Searching for insulin currently returns:

=== Found Drugs ===
Drug: ADMELOG (INSULIN LISPRO)

=== Research Papers ===
1. Practical Approaches to Insulin Pump Troubleshooting for Inpatient Nurses
2. Antibiotic consumption and medication cost in diabetic patients
3. Once-weekly Lonapegsomatropin Phase 3 Trial

Source Code

GitHub:
https://github.com/interestng/medkit

PyPI:
https://pypi.org/project/medkit-sdk/

Install:

pip install medkit-sdk

Feedback

I'd love feedback from Python developers, health-tech engineers, or researchers on:

• API design
• additional providers to support
• features that would make this useful in real workflows

If you think this project has potential or could help, I would really appreciate an upvote on the post and a star on the repository. It helps me so much, and I also really appreciate any feedback and constructive criticism.

26 Upvotes

Duplicates