fhirpy
FHIR client for python
Decision gist · record as of 2026-08-14
Yes, if you are building against a FHIR server and need a Python client. The package is stable (Production/Stable classifier), supports current Python versions (3.9–3.12), has no known vulnerabilities, and offers both async and sync modes. Caveat: verify the license terms in the repository before use, and note that maintenance is aging (311 days since last release); if active development is critical, confirm the project's roadmap with the maintainers.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- A running FHIR server endpoint is needed to connect to.
- Low install friction with a pure-Python wheel and four common runtime dependencies (requests, aiohttp, pytz, typing-extensions).
License · maintenance · safety
(unclear) — License treatment is unclear; no SPDX identifier or raw license text is recorded in the package metadata. Verify the actual license terms in the repository before adopting in proprietary or restricted-license projects.
last release 2025-10-07 (311 days) · last repo commit 2026-01-13 · 212 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,124,621 downloads/mo, #4,329 on PyPI
Alternatives
Verify before relying
pip install fhirpy
from fhirpy import AsyncFHIRClient
import asyncio
async def main():
client = AsyncFHIRClient('http://fhir-server/', authorization='Bearer TOKEN')
patients = await client.resources('Patient').search(name='John').fetch()
print(patients)
asyncio.run(main())- What is the actual license of fhirpy? The package metadata does not declare it.
- How actively is the project maintained? Last release was 311 days ago; confirm whether this reflects a stable, feature-complete state or reduced activity.
- Does the package support all FHIR versions, or is it tied to a specific FHIR release (e.g., R4, R5)?
What it is and what it does
fhirpy is a dual-mode HTTP client for the FHIR (Fast Healthcare Interoperability Resources) standard, offering both async (via aiohttp) and sync (via requests) interfaces. It abstracts FHIR resource operations—create, read, update, patch, delete—into a Python object model, and provides a fluent search API with support for FHIR query parameters, chained searches, date filtering, and result pagination.
The library is aimed at healthcare developers building integrations with FHIR servers. It handles resource instantiation, serialization, reference resolution, and conditional operations, letting you work with FHIR data as Python objects rather than raw JSON. The async variant is suitable for concurrent server interactions; the sync variant integrates into traditional blocking codebases.
Use it for
- Query a FHIR server for patient records by name, birthdate, or other search criteria and iterate over paginated results.
- Create or update clinical resources (Patient, Observation, Condition) programmatically and save them back to a FHIR server.
- Build healthcare data pipelines that fetch, transform, and persist FHIR resources in bulk operations.
- Resolve FHIR references (e.g., a patient's general practitioner) and fetch related resources in a single operation.
- Validate FHIR resources against server-side rules before persisting them using the $validate operation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building against a FHIR server and need a Python client.
The package is stable (Production/Stable classifier), supports current Python versions (3.9–3.12), has no known vulnerabilities, and offers both async and sync modes. Caveat: verify the license terms in the repository before use, and note that maintenance is aging (311 days since last release); if active development is critical, confirm the project's roadmap with the maintainers.
Install
fhirpy on PyPI
Before you install
Low install friction with a pure-Python wheel and four common runtime dependencies (requests, aiohttp, pytz, typing-extensions). Maintenance status is aging—last release was 311 days ago—but the repository remains active and unarchived with modest community engagement (212 stars).
Requires Python 3.9 or later. A running FHIR server endpoint is needed to connect to.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is recorded in the package metadata. Verify the actual license terms in the repository before adopting in proprietary or restricted-license projects.
Quickstart
pip install fhirpy
from fhirpy import AsyncFHIRClient
import asyncio
async def main():
client = AsyncFHIRClient('http://fhir-server/', authorization='Bearer TOKEN')
patients = await client.resources('Patient').search(name='John').fetch()
print(patients)
asyncio.run(main())
Verify before relying
- What is the actual license of fhirpy? The package metadata does not declare it.
- How actively is the project maintained? Last release was 311 days ago; confirm whether this reflects a stable, feature-complete state or reduced activity.
- Does the package support all FHIR versions, or is it tied to a specific FHIR release (e.g., R4, R5)?
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesrequestsaiohttppytztyping-extensions |
| Maintenance | Aging 311 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,124,621 / month, #4,329 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules |
Evidence: fhirpy-2.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fhir client python”
- fhirpyAsync/sync FHIR client for Python that provides CRUD operations over…
- fhirclientA Python client library for connecting to FHIR servers and working…
- fhir.resourcesProvides Python classes and validation for all FHIR resource types…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also fhir.resources · fhirclient · carelytics · fhir-core · aioopenexchangerates · stackit-resourcemanager · pydantic-mongo · chargebee · fastcrud · shazamio