This release is a pre-release and may not be stable for production use.
================
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
=======================
- 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.
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
Metadata
Release files for python-daily-med 0.1.0b76
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-daily-med-0.1.0b76.tar.gz | 313.3 kB | Without provenance | Details for python-daily-med-0.1.0b76.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_daily_med-0.1.0b76-py2-none-any.whl | Python 2 | none | any | Details for python_daily_med-0.1.0b76-py2-none-any.whl |
Total release size: 640.5 kB
Release files / python-daily-med-0.1.0b76.tar.gz
| Download URL | python-daily-med-0.1.0b76.tar.gz |
|---|---|
| Size | 313.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01286cb866c95bb74f580b2d0e4f3ef8993057e562f7c312e79a1f2de908e236
|
|
BLAKE2b-256 checksum How to use checksums |
e4fcdc56c6fad432c301e54581a771a70436493c034ecfcfd9115b8abe0fed74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_daily_med-0.1.0b76-py2-none-any.whl
| Download URL | python_daily_med-0.1.0b76-py2-none-any.whl |
|---|---|
| Size | 327.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
e4122b7621d72cbd2cb4ed02a58a2349b17bba6bd3283fda90f2406640c7e12f
|
|
BLAKE2b-256 checksum How to use checksums |
6089f9999d990a6e03fd0ad0b7478dddaa0fafb0d72645a103c3de10a84c93d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-daily-med 0.1.0b76
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.