{"id":15664376,"url":"https://github.com/bachya/pyiqvia","last_synced_at":"2025-04-05T02:07:46.315Z","repository":{"id":34524999,"uuid":"179921998","full_name":"bachya/pyiqvia","owner":"bachya","description":"🌻 A clean, async-focused Python3 API for IQVIA data (https://pollen.com, https://flustar.com, etc.)","archived":false,"fork":false,"pushed_at":"2025-03-27T06:41:32.000Z","size":1535,"stargazers_count":17,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-03-29T01:06:30.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bachya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-07T05:26:11.000Z","updated_at":"2024-11-12T17:58:03.000Z","dependencies_parsed_at":"2024-01-02T19:48:24.033Z","dependency_job_id":"7f1fdd8f-e38c-4579-8f16-bbd5249662cc","html_url":"https://github.com/bachya/pyiqvia","commit_stats":{"total_commits":598,"total_committers":7,"mean_commits":85.42857142857143,"dds":0.2759197324414716,"last_synced_commit":"bfda217d9821fecb317b21cf58bee2020ce0664a"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyiqvia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyiqvia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyiqvia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachya%2Fpyiqvia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachya","download_url":"https://codeload.github.com/bachya/pyiqvia/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276163,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:42:20.359Z","updated_at":"2025-04-05T02:07:41.305Z","avatar_url":"https://github.com/bachya.png","language":"Python","funding_links":["https://www.buymeacoffee.com/bachya1208P"],"categories":[],"sub_categories":[],"readme":"# 🌻 pyiqvia: A clean, async-focused Python3 API for IQVIA™\n\n[![CI][ci-badge]][ci]\n[![PyPI][pypi-badge]][pypi]\n[![Version][version-badge]][version]\n[![License][license-badge]][license]\n[![Code Coverage][codecov-badge]][codecov]\n[![Maintainability][maintainability-badge]][maintainability]\n\n\u003ca href=\"https://www.buymeacoffee.com/bachya1208P\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n`pyiqvia` is an async-focused Python3 library for allergen, asthma, and disease data from\nthe [IQVIA™][iqvia] family of websites (such as [Pollen.com][pollen],\n[FluStar][flustar], and more).\n\n- [Python Versions](#python-versions)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n\n# Python Versions\n\n`pyiqvia` is currently supported on:\n\n- Python 3.10\n- Python 3.11\n- Python 3.12\n\n# Installation\n\n```bash\npip install pyiqvia\n```\n\n# Usage\n\n```python\nimport asyncio\n\nfrom aiohttp import ClientSession\n\nfrom pyiqvia import Client\n\n\nasync def main() -\u003e None:\n    \"\"\"Run!\"\"\"\n    # Note that ZIP codes must be provided as strings:\n    client = Client(\"80012\")\n\n    # Get current allergen information:\n    await client.allergens.current()\n\n    # Get more information on the current allergen outlook:\n    await client.allergens.outlook()\n\n    # Get extended forecast allergen information:\n    await client.allergens.extended()\n\n    # Get historic allergen information:\n    await client.allergens.historic()\n\n    # Get current asthma information:\n    await client.asthma.current()\n\n    # Get extended forecast asthma information:\n    await client.asthma.extended()\n\n    # Get historic asthma information:\n    await client.asthma.historic()\n\n    # Get current cold and flu information:\n    await client.disease.current()\n\n    # Get extended forecast cold and flu information:\n    await client.disease.extended()\n\n    # Get historic cold and flu information:\n    await client.disease.historic()\n\n\nasyncio.run(main())\n```\n\n## Retries\n\nBy default, `pyiqvia` will retry appropriate errors 4 times (with an exponentially\nincreasing delay in-between). This logic can be changed by passing a different value for\n`request_retries` to the `Client` constructor:\n\n```python\nimport asyncio\n\nfrom pyiqvia import Client\n\n\nasync def main():\n    client = Client(\"80012\", request_retries=5)\n\n    # ...\n\n\nasyncio.run(main())\n```\n\n## Connection Pooling\n\nBy default, the library creates a new connection to IQVIA with each coroutine. If you\nare calling a large number of coroutines (or merely want to squeeze out every second of\nruntime savings possible), an [`aiohttp`][aiohttp] `ClientSession` can be used for\nconnection pooling:\n\n```python\nimport asyncio\n\nfrom aiohttp import ClientSession\n\nfrom pyiqvia import Client\n\n\nasync def main() -\u003e None:\n    \"\"\"Run!\"\"\"\n    async with ClientSession() as session:\n        client = Client(\"80012\", session=session)\n\n        # ...\n\n\nasyncio.run(main())\n```\n\n# Contributing\n\nThanks to all of [our contributors][contributors] so far!\n\n1. [Check for open features/bugs][issues] or [initiate a discussion on one][new-issue].\n2. [Fork the repository][fork].\n3. (_optional, but highly recommended_) Create a virtual environment: `python3 -m venv .venv`\n4. (_optional, but highly recommended_) Enter the virtual environment: `source ./.venv/bin/activate`\n5. Install the dev environment: `script/setup`\n6. Code your new feature or bug fix on a new branch.\n7. Write tests that cover your new functionality.\n8. Run tests and ensure 100% code coverage: `poetry run pytest --cov pyiqvia tests`\n9. Update `README.md` with any new documentation.\n10. Submit a pull request!\n\n[aiohttp]: https://github.com/aio-libs/aiohttp\n[ci-badge]: https://img.shields.io/github/actions/workflow/status/bachya/pyiqvia/test.yml\n[ci]: https://github.com/bachya/pyiqvia/actions\n[codecov-badge]: https://codecov.io/gh/bachya/pyiqvia/branch/dev/graph/badge.svg\n[codecov]: https://codecov.io/gh/bachya/pyiqvia\n[contributors]: https://github.com/bachya/pyiqvia/graphs/contributors\n[flustar]: https://flustar.com\n[fork]: https://github.com/bachya/pyiqvia/fork\n[iqvia]: https://www.iqvia.com\n[issues]: https://github.com/bachya/pyiqvia/issues\n[license-badge]: https://img.shields.io/pypi/l/pyiqvia.svg\n[license]: https://github.com/bachya/pyiqvia/blob/main/LICENSE\n[maintainability-badge]: https://api.codeclimate.com/v1/badges/3bf37f9cabf73b5d991e/maintainability\n[maintainability]: https://codeclimate.com/github/bachya/pyiqvia/maintainability\n[new-issue]: https://github.com/bachya/pyiqvia/issues/new\n[new-issue]: https://github.com/bachya/pyiqvia/issues/new\n[pollen]: https://pollen.com\n[pypi-badge]: https://img.shields.io/pypi/v/pyiqvia.svg\n[pypi]: https://pypi.python.org/pypi/pyiqvia\n[version-badge]: https://img.shields.io/pypi/pyversions/pyiqvia.svg\n[version]: https://pypi.python.org/pypi/pyiqvia\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachya%2Fpyiqvia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachya%2Fpyiqvia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachya%2Fpyiqvia/lists"}