$npx skillfedfor your agent

pydicom

A pure Python package for reading and writing DICOM data

Worth itPyPI LibrariesReleased Mar 20265.5M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pydicom-3.0.2-py3-none-any.whl
v3.0.2 · released 2026-03-19 · Python >=3.10

Yes. Pydicom is the standard Python library for DICOM file I/O, actively maintained, permissively licensed, and has zero required dependencies. Install it if you work with medical imaging data, DICOM files, or healthcare IT systems. The only caveat is that advanced pixel data decompression (JPEG, JPEG 2000) requires optional libraries, but basic read/write and NumPy integration work out of the box.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • NumPy is optional but recommended if you need to work with pixel data as arrays; decompressing JPEG, JPEG-LS, or JPEG 2000 compressed pixel data requires additional libraries.
  • Low friction: pure Python package with no required runtime dependencies and a wheel distribution.
  • Active maintenance with recent commits and a stable release history since 2014.

License · maintenance · safety

permissive license (permissive) — Permissive license (MIT) means you can use, modify, and distribute pydicom freely in commercial and private projects with minimal restrictions.

last release 2026-03-19 (148 days) · last repo commit 2026-08-03 · 2,193 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,521,040 downloads/mo, #2,083 on PyPI

Verify before relying

pip install pydicom

from pydicom import dcmread
ds = dcmread('/path/to/file.dcm')
ds.PatientID = '12345678'
ds.save_as('/path/to/file_updated.dcm')
  • Performance characteristics when handling large DICOM files or batch processing workflows
  • Completeness of support for all DICOM SOP classes and transfer syntaxes
  • Specific version requirements for optional compression libraries (pyjpegls, pylibjpeg, gdcm)
Same gist for agents: .md · .json

What it is and what it does

Pydicom is a pure Python framework for reading, modifying, and writing DICOM files—the standard format for medical imaging data. It provides a pythonic interface to DICOM datasets, allowing you to access and edit individual elements like patient IDs, study descriptions, and pixel data. Since it has no required dependencies beyond Python itself, it runs anywhere Python runs, making it portable across platforms and environments.

Pixel data handling is flexible: you can always read and write compressed or uncompressed pixel data as raw bytes, and if you install NumPy, you can convert pixel data to arrays for numerical processing. The package is intentionally general-purpose and does not attempt to handle specifics of individual DICOM SOP classes or networking; other libraries in the pydicom organization (like pynetdicom for DICOM networking or deid for anonymization) build on top of pydicom for specialized tasks.

Use it for

  • Extract and modify patient identifiers or study metadata in DICOM files for data management workflows
  • Convert DICOM pixel data to NumPy arrays for image analysis, visualization, or machine learning pipelines
  • Batch process medical imaging datasets to standardize tags, anonymize records, or validate DICOM compliance
  • Read DICOM headers to extract acquisition parameters, modality, or imaging geometry for research
  • Write new DICOM files programmatically from raw image data or modified datasets

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Pydicom is the standard Python library for DICOM file I/O, actively maintained, permissively licensed, and has zero required dependencies. Install it if you work with medical imaging data, DICOM files, or healthcare IT systems. The only caveat is that advanced pixel data decompression (JPEG, JPEG 2000) requires optional libraries, but basic read/write and NumPy integration work out of the box.

Install

pydicom on PyPI

Before you install

Low friction: pure Python package with no required runtime dependencies and a wheel distribution. Active maintenance with recent commits and a stable release history since 2014.

NumPy is optional but recommended if you need to work with pixel data as arrays; decompressing JPEG, JPEG-LS, or JPEG 2000 compressed pixel data requires additional libraries.

License in practice

Permissive license (MIT) means you can use, modify, and distribute pydicom freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pydicom

from pydicom import dcmread
ds = dcmread('/path/to/file.dcm')
ds.PatientID = '12345678'
ds.save_as('/path/to/file_updated.dcm')

Verify before relying

  • Performance characteristics when handling large DICOM files or batch processing workflows
  • Completeness of support for all DICOM SOP classes and transfer syntaxes
  • Specific version requirements for optional compression libraries (pyjpegls, pylibjpeg, gdcm)

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 148 days since the last release
Last repo commit
First released
Downloads5,521,040 / month, #2,083 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Healthcare IndustryIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Scientific/Engineering :: Medical Science Apps.Topic :: Scientific/Engineering :: PhysicsTopic :: Software Development :: Libraries

Evidence: pydicom-3.0.2-py3-none-any.whl

Tags

Capabilities
read write dicom filesmedical imaging pythondicom dataset manipulationhealthcare data processingct mri scan filesdicom pixel datamedical image format
Topics
medical-imagingdicom-formathealthcare-data
PyPI keywords
dicompythonmedicalimaging

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 › “read write dicom files”

  • pydicomPydicom reads, modifies, and writes DICOM medical imaging files in…
  • python-gdcmPython wrapper for GDCM (Grassroots DICOM), a C++ library that reads,…
  • itk-ioitk-io provides Python bindings for reading and writing medical and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also dicom2nifti · fabio · highdicom · pylibjpeg · python-gdcm · pylibjpeg-libjpeg · pylibjpeg-openjpeg · dicomweb-client · pynrrd · pyheif