{ "info": { "author": "Michal Proszek", "author_email": "michal.proszek@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP" ], "description": "=====\nfdadb\n=====\n|travis|_ |pypi|_ |codecov|_ |requiresio|_\n\nA Django wrapper for `fda.gov `_ National Drug Code (NDC) database.\n**fdadb** stores each row under one name **MedicationName** object instead of having multiple drugs with the same name\nnext to each other, for example: In the NDC database there are around 21 Viagras (with different strengths)\nso in such case we save the **MedicationName: Viagra** and under this name we store all the 21 instances.\nThis allows for better user experience when searching through the list of drugs.\n\nSetting Up\n==========\n* ``pip install fdadb``\n* Add ``fdadb`` to your ``INSTALLED_APPS``\n* ``./manage.py migrate fdadb``\n* ``./manage.py fetch_ndc_database`` - might take 15-30 minutes (the command will fetch all items from FDA database and save it in your project)\n\nAPI:\n====\n**All APIs are searchable with ?q=term query param.**\n\nmedications/\n------------\nReturns list of **MedicationName** objects (pass ``?q=termtosearch`` to filter the results),\nthis API supports ElasticSearch for fast querying. Pagination does not work yet when ElasticSearch is enabled\n(in most cases this does not cause any issues, as this API is generally used for drug autocomplete). You can change the\nautocomplete limit by setting ``FDADB_AUTOCOMPLETE_LIMIT`` in your Django configuration (default: ``10``).\n\nThe ElasticSearch uses ngram for the query parameter.\n\nmedications/(?P[\\w-]+)/strengths\n-------------------------------------------------\nReturns list of medication strengths\n\nmedications/(?P[\\w-]+)/strengths/(?P[\\d-]+)/ndcs\n------------------------------------------------------------------------------\nReturns list of Medication NDCs\n\nElasticSearch\n=============\nTo enable support of ElasticSearch in autocomplete, set:\n\n* ``ELASTICSEARCH_URL`` in project configuration\n* Run ``./manage.py fdadb_es_index` after fetching the NDC database (use ``--drop_indexes`` in case you want to cleanup the medications index)\n\nManage.py commands\n==================\n* ./manage.py fdadb_es_index - indexes the products into ElasticSearch\n* ./manage.py fetch_ndc_database - fetches products data from NDS DB and saves in the database\n\nSupport\n=======\n* Django 1.11, 2.1, 2.2\n* Python 3.4-3.6\n\n.. |travis| image:: https://secure.travis-ci.org/HealthByRo/fdadb.svg?branch=master\n.. _travis: http://travis-ci.org/HealthByRo/fdadb\n\n.. |pypi| image:: https://img.shields.io/pypi/v/fdadb.svg\n.. _pypi: https://pypi.python.org/pypi/fdadb\n\n.. |codecov| image:: https://codecov.io/gh/HealthByRo/fdadb/branch/master/graph/badge.svg\n.. _codecov: https://codecov.io/gh/HealthByRo/fdadb\n\n.. |requiresio| image:: https://requires.io/github/HealthByRo/fdadb/requirements.svg?branch=master\n.. _requiresio: https://requires.io/github/HealthByRo/fdadb/requirements/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/HealthByRo/fdadb", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fdadb", "package_url": "https://pypi.org/project/fdadb/", "platform": "", "project_url": "https://pypi.org/project/fdadb/", "project_urls": { "Homepage": "https://github.com/HealthByRo/fdadb" }, "release_url": "https://pypi.org/project/fdadb/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "FDA Drug Database", "version": "0.1.1" }, "last_serial": 5804261, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ff0214b1263adf4d61e9ac4339e976af", "sha256": "707ec5dfce1d4322967c98152381ba6022c102d26e0a799901b4721bcf69c3dc" }, "downloads": -1, "filename": "fdadb-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ff0214b1263adf4d61e9ac4339e976af", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24885, "upload_time": "2018-12-12T09:23:07", "url": "https://files.pythonhosted.org/packages/75/42/6e932d86913a2a833e5e95ceb834d248f54b1f45d9fd2d231588f52636d2/fdadb-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ebcd5edf676f6c0031b54c6dffe8f5ae", "sha256": "de819f36cb19d322be6e6c6f4c3bb3591dd721623d433111f1b71e8ec2875a11" }, "downloads": -1, "filename": "fdadb-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ebcd5edf676f6c0031b54c6dffe8f5ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10745, "upload_time": "2019-09-09T15:50:39", "url": "https://files.pythonhosted.org/packages/1f/09/2cdc67c69cfbacad6923f5201aa998e61ae616509a6c08bf21f39ca426f0/fdadb-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ebcd5edf676f6c0031b54c6dffe8f5ae", "sha256": "de819f36cb19d322be6e6c6f4c3bb3591dd721623d433111f1b71e8ec2875a11" }, "downloads": -1, "filename": "fdadb-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ebcd5edf676f6c0031b54c6dffe8f5ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10745, "upload_time": "2019-09-09T15:50:39", "url": "https://files.pythonhosted.org/packages/1f/09/2cdc67c69cfbacad6923f5201aa998e61ae616509a6c08bf21f39ca426f0/fdadb-0.1.1.tar.gz" } ] }