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.
Installation
============
* Install Python requirements ``pip install -r ./requirements``
Setup
=====
*
Usage
=====
* `Read The API Documentation <https://laslabs.github.io/python-daily-med>`_
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
<https://dailymed.nlm.nih.gov/dailymed/webservices-help/v2/spls_api.cfm`_.
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
document.
Known Issues / Road Map
=======================
- Add a more opinionated object for SPLDocument
Credits
=======
Images
------
* LasLabs: `Icon <https://repo.laslabs.com/projects/TEM/repos/odoo-module_template/browse/module_name/static/description/icon.svg?raw>`_.
Contributors
------------
* Dave Lasley <dave@laslabs.com>
Maintainer
----------
.. image:: https://laslabs.com/logo.png
:alt: LasLabs Inc.
:target: https://laslabs.com
This module is maintained by LasLabs Inc.
.. |Build Status| image:: https://api.travis-ci.org/LasLabs/python-daily-med.svg?branch=master
:target: https://travis-ci.org/LasLabs/python-daily-med
.. |Coveralls Status| image:: https://coveralls.io/repos/LasLabs/python-daily-med/badge.svg?branch=master
:target: https://coveralls.io/r/LasLabs/python-daily-med?branch=master
.. |Codecov Status| image:: https://codecov.io/gh/LasLabs/python-daily-med/branch/master/graph/badge.svg
:target: https://codecov.io/gh/LasLabs/python-daily-med
.. |Code Climate| image:: https://codeclimate.com/github/LasLabs/python-daily-med/badges/gpa.svg
:target: https://codeclimate.com/github/LasLabs/python-daily-med
.. |License MIT| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://opensource.org/licenses/MIT
:alt: License: AGPL-3
================
Python Daily Med
================
This library interacts with the United States National Library of Medicine's Daily
Med API.
Installation
============
* Install Python requirements ``pip install -r ./requirements``
Setup
=====
*
Usage
=====
* `Read The API Documentation <https://laslabs.github.io/python-daily-med>`_
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
<https://dailymed.nlm.nih.gov/dailymed/webservices-help/v2/spls_api.cfm`_.
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
document.
Known Issues / Road Map
=======================
- Add a more opinionated object for SPLDocument
Credits
=======
Images
------
* LasLabs: `Icon <https://repo.laslabs.com/projects/TEM/repos/odoo-module_template/browse/module_name/static/description/icon.svg?raw>`_.
Contributors
------------
* Dave Lasley <dave@laslabs.com>
Maintainer
----------
.. image:: https://laslabs.com/logo.png
:alt: LasLabs Inc.
:target: https://laslabs.com
This module is maintained by LasLabs Inc.
.. |Build Status| image:: https://api.travis-ci.org/LasLabs/python-daily-med.svg?branch=master
:target: https://travis-ci.org/LasLabs/python-daily-med
.. |Coveralls Status| image:: https://coveralls.io/repos/LasLabs/python-daily-med/badge.svg?branch=master
:target: https://coveralls.io/r/LasLabs/python-daily-med?branch=master
.. |Codecov Status| image:: https://codecov.io/gh/LasLabs/python-daily-med/branch/master/graph/badge.svg
:target: https://codecov.io/gh/LasLabs/python-daily-med
.. |Code Climate| image:: https://codeclimate.com/github/LasLabs/python-daily-med/badges/gpa.svg
:target: https://codeclimate.com/github/LasLabs/python-daily-med
.. |License MIT| image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://opensource.org/licenses/MIT
:alt: License: AGPL-3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-daily-med-0.1.0b46.tar.gz
(313.2 kB
view hashes)
Built Distributions
Close
Hashes for python-daily-med-0.1.0b46.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dbbd48cba088a0376f0dc9ba7cfc6f7e1570d1e6fb6e92ece180c4479b85ef8 |
|
MD5 | 37b50fdcfa8e98746de32ca466871701 |
|
BLAKE2b-256 | ad8b73574131d05f6c677bd4e499c7c949b48e1bd187f0f4ae343e5826dc1959 |
Close
Hashes for python_daily_med-0.1.0b46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef875a875f950271e86f794a1b1ce25284050c789ace5883a735fca7b14ec8ea |
|
MD5 | 3669b1d63c1a7de9e851c335bcd1fc94 |
|
BLAKE2b-256 | b629bfd7ebb7498d9c8ebc7adc11b34ae039b7e2cf17ce728c80372decdfc446 |
Close
Hashes for python_daily_med-0.1.0b46-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d223a25e55e9be3f0f50a9410c2909a8013a92561af5ecbc3152c1721eff0f54 |
|
MD5 | d040e03b69e0af9507bf8db2cd04d81f |
|
BLAKE2b-256 | 77a892601651af1fb468b30bb7e4931d413fb15985644db8cbc68ecce4cf2511 |