Python in Pharmaceutical Industries and Research: Applications, Opportunities and Future Perspectives
Main Article Content
Abstract
The pharmaceutical industry is undergoing rapid digital transformation driven by advances in artificial intelligence (AI), machine learning (ML), big data analytics, and computational modelling. Among modern programming languages, Python has emerged as one of the most versatile and widely adopted tools in pharmaceutical sciences because of its simplicity, open-source nature, extensive scientific libraries, and strong community support. Its applications span cheminformatics, bioinformatics, molecular modelling, quantitative structure–activity relationship (QSAR) analysis, pharmacokinetics, pharmacodynamics, clinical trial data management, pharmacovigilance, manufacturing process optimization, and regulatory data analysis. Libraries such as NumPy, Pandas, SciPy, Matplotlib, Scikit-learn, TensorFlow, PyTorch, RDKit, and Biopython have significantly expanded the analytical capabilities available to pharmaceutical scientists. The integration of Python with cloud computing, high-performance computing, and generative AI is further transforming pharmaceutical research by reducing development timelines and improving decision-making. Python also supports reproducible research, automation of routine analytical tasks, and visualization of complex scientific data, making it an indispensable tool in both academia and industry. This review discusses the role of Python across the pharmaceutical product lifecycle, highlights major scientific libraries and industrial applications, examines current challenges, and explores future opportunities for integrating Python with emerging technologies to enhance pharmaceutical innovation.
References
1. Van Rossum G, Drake FL. Python 3 Reference Manual. Scotts Valley (CA): CreateSpace; 2009.
2. McKinney W. Python for Data Analysis. 3rd ed. Sebastopol (CA): O'Reilly Media; 2022.
3. Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585:357–62.
4. Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17:261–72.
5. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. J Mach Learn Res. 2011;12:2825–30.
6. Cock PJA, Antao T, Chang JT, Chapman BA, Cox CJ, Dalke A, Friedberg I, et al. Biopython: Freely available Python tools for computational molecular biology and bioinformatics. Bioinformatics. 2009;25(11):1422–3.
7. Landrum G. RDKit: Open-source cheminformatics software. Available from: https://www.rdkit.org
8. Abadi M, Agarwal A, Barham P, Brevdo E, Chen Z, Citro C, et al. TensorFlow: Large-scale machine learning on heterogeneous systems. 2016.
9. Paszke A, Gross S, Massa F, Lerer A, Bradbury J, Chanan G, et al. PyTorch: An imperative style, high-performance deep learning library. Adv Neural Inf Process Syst. 2019;32:8024–35.
10. Hunter JD. Matplotlib: A 2D graphics environment. Comput Sci Eng. 2007;9(3):90–5.
11. Raschka S, Patterson J, Nolet C. Machine learning in Python: Main developments and technology trends. Information. 2020;11(4):193.
12. Nowotka M, Papadatos G, Davies M, Dedman N, Gaulton A, Atkinson F, et al. Want drugs? Use Python. Nat Rev Chem. 2017;1:1–2.
13. Jumper J, Evans R, Pritzel A, Green T, Figurnov M, Ronneberger O, et al. Highly accurate protein structure prediction with AlphaFold. Nature. 2021;596:583–9.
14. Topol EJ. High-performance medicine: The convergence of human and artificial intelligence. Nat Med. 2019;25:44–56.
15. Esteva A, Robicquet A, Ramsundar B, Kuleshov V, DePristo M, Chou K, et al. A guide to deep learning in healthcare. Nat Med. 2019;25:24–9.
16. Wilkinson MD, Dumontier M, Aalbersberg IJ, Appleton G, Axton M, Baak A, et al. The FAIR Guiding Principles for scientific data management and stewardship. Sci Data. 2016;3:160018.
17. ICH. ICH Q8(R2): Pharmaceutical Development. Geneva: International Council for Harmonisation; 2009.
18. ICH. ICH Q9(R1): Quality Risk Management. Geneva: International Council for Harmonisation; 2023.
19. ICH. ICH Q10: Pharmaceutical Quality System. Geneva: International Council for Harmonisation; 2008.
20. FDA. Artificial Intelligence & Machine Learning (AI/ML)-Enabled Medical Devices. U.S. Food and Drug Administration; 2025.
21. Van Rossum G, Drake FL. Python 3 Reference Manual. Scotts Valley (CA): CreateSpace; 2009.
22. McKinney W. Python for Data Analysis. 3rd ed. Sebastopol (CA): O'Reilly Media; 2022.
23. Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585:357–62.
24. Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17:261–72.
25. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. J Mach Learn Res. 2011;12:2825–30.
26. Cock PJA, Antao T, Chang JT, Chapman BA, Cox CJ, Dalke A, Friedberg I, et al. Biopython: Freely available Python tools for computational molecular biology and bioinformatics. Bioinformatics. 2009;25(11):1422–3.
27. Landrum G. RDKit: Open-source cheminformatics software. Available from: https://www.rdkit.org
28. Abadi M, Agarwal A, Barham P, Brevdo E, Chen Z, Citro C, et al. TensorFlow: Large-scale machine learning on heterogeneous systems. 2016.
29. Paszke A, Gross S, Massa F, Lerer A, Bradbury J, Chanan G, et al. PyTorch: An imperative style, high-performance deep learning library. Adv Neural Inf Process Syst. 2019;32:8024–35.
30. Hunter JD. Matplotlib: A 2D graphics environment. Comput Sci Eng. 2007;9(3):90–5.
31. Raschka S, Patterson J, Nolet C. Machine learning in Python: Main developments and technology trends. Information. 2020;11(4):193.
32. Nowotka M, Papadatos G, Davies M, Dedman N, Gaulton A, Atkinson F, et al. Want drugs? Use Python. Nat Rev Chem. 2017;1:1–2.
33. Jumper J, Evans R, Pritzel A, Green T, Figurnov M, Ronneberger O, et al. Highly accurate protein structure prediction with AlphaFold. Nature. 2021;596:583–9.
34. Topol EJ. High-performance medicine: The convergence of human and artificial intelligence. Nat Med. 2019;25:44–56.
35. Esteva A, Robicquet A, Ramsundar B, Kuleshov V, DePristo M, Chou K, et al. A guide to deep learning in healthcare. Nat Med. 2019;25:24–9.
36. Wilkinson MD, Dumontier M, Aalbersberg IJ, Appleton G, Axton M, Baak A, et al. The FAIR Guiding Principles for scientific data management and stewardship. Sci Data. 2016;3:160018.
37. ICH. ICH Q8(R2): Pharmaceutical Development. Geneva: International Council for Harmonisation; 2009.
38. ICH. ICH Q9(R1): Quality Risk Management. Geneva: International Council for Harmonisation; 2023.
39. ICH. ICH Q10: Pharmaceutical Quality System. Geneva: International Council for Harmonisation; 2008.
40. FDA. Artificial Intelligence & Machine Learning (AI/ML)-Enabled Medical Devices. U.S. Food and Drug Administration; 2025.
41. Hanumanthachar Joshi Sandhya P, Anirudh Joshi K. Machine learning in pharmacy and health care revolutionizing patient outcomes. International Journal of Innovative Research in Technology, 2025, 12(1); 2719-2722.
42. Anirudh Joshi, Hanumanthachar Joshi. Role of Artificial Intelligence in the Diagnosis of Dementia in the Elderly. International Journal of Community Pharmacy, 2025, 6(3); 01-04.
43. Hanumanthachar Joshi and Shivakumar. Human Resource Management Practices and Job Satisfaction Trends Among Pharmacy Professionals in India: A Cross-Sectional Study. International Journal of Community Pharmacy, 2026, 7(1); 14-29.
44. Idkowiak J, Dehairs J, Schwarzerová J, Olešová D, Truong JXM, Kvasnička A, Eftychiou M, Cools R, Spotbeen X, Jirásko R, Veseli V, Giampà M, de Laat V, Butler LM, Weckwerth W, Friedecký D, Demeulemeester J, Hron K, Swinnen JV, Holčapek M. Best practices and tools in R and Python for statistical processing and visualization of lipidomics and metabolomics data. Nat Commun. 2025, 16(1): 1-19.
