Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Approved drug products with therapeutic-equivalence, patent, and exclusivity dates for building generic-entry and substitution-research tools.
From source to product signal
The Orange Book lists FDA-approved products with therapeutic-equivalence codes, patents, and exclusivity. Start with products.txt from the published zip. Exclusivity dates are not a guaranteed generic-entry day, and omitted patents can still block substitution.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import io
import zipfile
import pandas as pd
import requests
response = requests.get(
"https://www.fda.gov/media/76860/download",
timeout=30,
)
response.raise_for_status()
with zipfile.ZipFile(io.BytesIO(response.content)) as archive:
products = pd.read_csv(archive.open("products.txt"), sep="~")
sample = products[products["Trade_Name"].str.upper() == "LIPITOR"]
print(sample[["Appl_No", "Trade_Name", "Ingredient", "TE_Code", "Approval_Date"]].head())Test a useful signal
Test whether Orange Book fields can support a bounded generic-entry review.
U.S. Food and Drug Administration is a government source. Last verified 2026-08-18. Temporal coverage: currently listed approved products.