$npx skillfedfor your agent

fhirpy

FHIR client for python

With conditionsPyPI Python ModulesReleased Oct 20251.1M downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fhirpy-2.2.0-py3-none-any.whl
v2.2.0 · released 2025-10-07 · Python >=3.9 · 4 runtime deps: requests, aiohttp, pytz, typing-extensions

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

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)?
Same gist for agents: .md · .json

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.

With conditions

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

LicenseNot declared unclear
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
requestsaiohttppytztyping-extensions
MaintenanceAging 311 days since the last release
Last repo commit
First released
Downloads1,124,621 / month, #4,329 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
fhir client pythonfhir api wrapperhealthcare interoperabilityasync fhir operationsfhir resource managementfhir search and crudfhir server client
Topics
healthcare-interopfhir-standardasync-ready
PyPI keywords
fhir

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also fhir.resources · fhirclient · carelytics · fhir-core · aioopenexchangerates · stackit-resourcemanager · pydantic-mongo · chargebee · fastcrud · shazamio