Skip to main content

Interact with US NLM Daily Med API using Python.

Project description

|License MIT| | |Build Status| | |Coveralls Status| | |Codecov Status| | |Code Climate|

Python Daily Med

This library interacts with the United States National Library of Medicine's Daily
Med API.


* Install Python requirements ``pip install -r ./requirements``




* `Read The API Documentation <>`_

Import and Instantiate

Importing an instantiating the Daily Med object:

.. code-block:: python

from daily_med import DailyMed
dm = DailyMed()

Structured Product Label Metadata

`get_spls` mirrors the `/spls` interface as documented `here

To get an iterator of all SPLs:

.. code-block:: python

spl_metas = dm.get_spls()

You can also perform an SPL search using any of the standard query parameters:

.. code-block:: python

simvastatin_metas = dm.get_spls(drug_name='Simvastatin')

Structured Product Label Documents

Once you have a `set_id` for an SPL, you can get its document:

.. code-block:: python

spl_document = dm.get_spl('0be2e371-1f05-48d7-8f2e-f2024f3305f3')

An SPL Document is basically just a dictionary representing the parsed XML

Known Issues / Road Map

- SPLDocument is only Python 2 compatible. Generate a Python3 version and integrate
an import switch for py2/3. Downfall is that this will add another 6mb of code to
the repo & coverage will be inaccurate because not everything is testable at once.



* LasLabs: `Icon <>`_.


* Dave Lasley <>


.. image::
:alt: LasLabs Inc.

This module is maintained by LasLabs Inc.

.. |Build Status| image::
.. |Coveralls Status| image::
.. |Codecov Status| image::
.. |Code Climate| image::
.. |License MIT| image::
:alt: License: AGPL-3

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-daily-med, version 0.1.0b76
Filename, size File type Python version Upload date Hashes
Filename, size python_daily_med-0.1.0b76-py2-none-any.whl (327.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size python-daily-med-0.1.0b76.tar.gz (313.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page