Skip to main content

Grassroots DICOM runtime libraries

Project description

Python version PyPI version python-gdcm Downloads Last Month Downloads

Python-GDCM

Unofficial GDCM packages for Python 3 on Linux, Windows and MacOS (both Intel and Apple Silicon).

Grassroots DiCoM is a C++ library for DICOM medical files that can be wrapped for Python using SWIG. It supports datasets encoded using native, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntaxes. It also comes with Parts 3, 6 & 7 of the DICOM Standard as XML files.

Installation

Using pip

pip install -U python-gdcm

From source

Install dependencies

  • Compiler for you platform (GCC, Clang, MSVC)
  • CMake
  • SWIG
  • patchelf will also be needed on Linux
  • Git to get the source code

Setup environment

If the cmake or swig executables aren't in $PATH, either add them or create CMAKE_EXE and SWIG_EXE envars:

export CMAKE_EXE="path/to/cmake/executable"
export SWIG_EXE="path/to/swig/executable"

Clone source

git clone --recurse-submodules https://github.com/tfmoraes/python-gdcm

Build and install

# Note the trailing slash!
pip install python-gdcm/

Test installed package

python -c "import gdcm; print(gdcm.GDCM_VERSION)"

If you get a ModuleNotFoundError: No module named '_gdcm.gdcmswig' error then make sure your current working directory doesn't contain a _gdcm folder.

Usage

Reading a DICOM image file

import gdcm
reader = gdcm.ImageReader()
reader.SetFileName("dicom_image_file.dcm")
ret = reader.Read()
if not ret:
    print("It was not possible to read your DICOM file")

Other Examples

See here https://github.com/malaterre/GDCM/tree/master/Examples/Python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_gdcm-3.2.6.tar.gz (3.4 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_gdcm-3.2.6-cp314-cp314-win_amd64.whl (34.8 MB view details)

Uploaded CPython 3.14Windows x86-64

python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

python_gdcm-3.2.6-cp314-cp314-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

python_gdcm-3.2.6-cp314-cp314-macosx_10_15_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

python_gdcm-3.2.6-cp313-cp313-win_amd64.whl (34.2 MB view details)

Uploaded CPython 3.13Windows x86-64

python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

python_gdcm-3.2.6-cp313-cp313-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

python_gdcm-3.2.6-cp313-cp313-macosx_10_13_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

python_gdcm-3.2.6-cp312-cp312-win_amd64.whl (34.2 MB view details)

Uploaded CPython 3.12Windows x86-64

python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

python_gdcm-3.2.6-cp312-cp312-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

python_gdcm-3.2.6-cp312-cp312-macosx_10_13_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

python_gdcm-3.2.6-cp311-cp311-win_amd64.whl (34.2 MB view details)

Uploaded CPython 3.11Windows x86-64

python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

python_gdcm-3.2.6-cp311-cp311-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

python_gdcm-3.2.6-cp311-cp311-macosx_10_9_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

python_gdcm-3.2.6-cp310-cp310-win_amd64.whl (34.2 MB view details)

Uploaded CPython 3.10Windows x86-64

python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (12.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

python_gdcm-3.2.6-cp310-cp310-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

python_gdcm-3.2.6-cp310-cp310-macosx_10_9_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file python_gdcm-3.2.6.tar.gz.

File metadata

  • Download URL: python_gdcm-3.2.6.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for python_gdcm-3.2.6.tar.gz
Algorithm Hash digest
SHA256 2f16eaea7a8c736279492f829d7f95002237a7fb2ea9c3ae85175498e1cd3dad
MD5 a88e1a950771cbbab53a72512b968a2d
BLAKE2b-256 c19983550191a6bd7278c13c623270d69b0ee99b8b998e81e10f6924dce130c6

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9ea4e0d723137ae1af1d5283301b609c00087844906ef75efcfacaafe98f90e7
MD5 98a928433fdf2acfa1fbfdc7f20de10f
BLAKE2b-256 e547a5d1495584b7e849de777185a45cdc38454fb2a9b656cbc465dfe8a32838

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aea109691afe754ae317909b9776a7547859bdb4340e512e5733eec16bf8b0ba
MD5 ed698e01092b61cc9caaf25b7263bb6a
BLAKE2b-256 a48660798cdb1d5aa7e9ac886ab273b10eff2c1f187b64b5c948f427451614a2

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f44cf5ea4acdaacb465dede71842096c0ede26718f4fd8ceae8efb64a94c2d75
MD5 c060e06946e063c972243c786d2f6142
BLAKE2b-256 105884c9dc52bdc9f4abd96f6cf2548299afafc52507d5fa01f6cd885d778055

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d514d840028c30786e729ba0946470612eee3854e1faf2ae767f6ee83c19aa6e
MD5 953212143247830ec9b9e233b89f599f
BLAKE2b-256 11cdc1d3aed4c28d476116f80057c77b2fabd9217e48e2b88bdafd24973b3b87

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c0525c26c5ab59d4e93119d097ea44cb045af339bbd4ef4ee4a5edee260bf424
MD5 3be77408bee30692a71d59199201f436
BLAKE2b-256 6900b1ddc555a0b9e7e03620393dc425c3844403b0acc5993526688e81094aa8

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b2025a8a06a4363f25e4a8ebec8741d8ddf0376dc78f87b7b88b83f625a5f22f
MD5 6500c24b8cea49d33b6e356d5b92a4f2
BLAKE2b-256 879b6c13656b9ff9f460ea707b447739ed404f3e4a12ac1dfc14f1011a75ad54

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 69c987d3f1b3a2a9936288f312f1ea2192e39fa6c0be28159b06a1906b8d56ed
MD5 02eb7b81eaf722acd26986dcfa46719c
BLAKE2b-256 30ba52fa278ff973ae2932ffdde98e9bdeaa248abda39c1c74e39caa969d543e

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aaf96a75beb20403e7d1b66a6cbc307327fcbf6b0bd848a6290e2b7968e49598
MD5 1b33b6180182944b99af18bf41f2b1f7
BLAKE2b-256 b3b720047a8e8d5fb4ef6b22ec705ae567538b2f01ae0d6f6f62b5000c627092

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec2912f4cf10e2a415141351d16c96a288a227450d4bc92fa89aef1c633c998e
MD5 dfc63d9522943aa3b6cdf994be3ffa08
BLAKE2b-256 b7f0c3aa78ccdf50cc7d2351e6cf86aa68133608e4674b1df29efaaecaf8ee08

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 43517d1a7615319e5140c73b412ee903a612d90e91f9ead379b0ede15dc69a31
MD5 170477d379c74dc0277e95db0c2a8ab3
BLAKE2b-256 d037b332cb2d9aa20d8c12b175b167caa813fa5ba894a2d09a95e135e794fbdd

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3ad86fffde082e068a9ebef940be21079c5d80dae30787eaaccf822ecaac964d
MD5 beef981b9718a7a54f56be3758a12dde
BLAKE2b-256 7cde4ee4d1022fcf6519471d84aa662beadcc2e3b656f28a566a8688a727f4d6

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 512d0d903e12c5ad389939a257817bf182ce288431b3d474d62cb0c0833b8b56
MD5 af9c92ce908f6f40d007eabd1561cc9e
BLAKE2b-256 c75675f9518a0a8401295a55a11220700e4e6a36d01d65a12be71aa306ecf959

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7623ef789b1ba5bff0d3dfa5486e1afa27b9a33d9a81d15b4bb05c01a2570db0
MD5 64670e0f47f86da311f7d21e49fd61c9
BLAKE2b-256 11925b0de49b2d18ec7c5a055aa9535c976cee965294847e2edb06a704ed23b2

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec91dd1a7bab0c235d3dcdfe0c7a4703a684a1e16cd8b092e609c4269565c76a
MD5 21589ac4a480d0c44abf185be0eba42d
BLAKE2b-256 71a194e89d94d2d679c09db17425bb0b690bcf18adb387ac063c7a35f54806c9

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cd32d810ff1500fde0554ef06a2f46c6bcfcbf05fdb673c62dfd40eaf611fef4
MD5 f8e6e3be81d3c3156ac702fc110688a4
BLAKE2b-256 07a8b97fb0dd5e44232f2f2ca1800a0ded0c05ae9c00bddf968c1c9e1bd689d2

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c752d94d92239c6bda313a514edd8bd5a17167c751d4ab1bdad82c6b559c5213
MD5 a2e67bccd0b325cf292ea62cf600dfed
BLAKE2b-256 952387bf04e52112e6eb3ef6e95417cb508bea77332c3312197d3a9a59574ac4

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 716e8a20de03e6a90035ee4575b19bb4b204e219a428509b686c1c28ef6de2d9
MD5 913bca8e6b309591cbf16a7f46dec708
BLAKE2b-256 2c33b925a15ac7597ff24f1601830a0cd8dd8f488348bdf208cf613fe2bc2fe8

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d6033cc01b62e96b928eb8e35b520f2f7a640919f3a569b043c1e64010de0c7
MD5 d43543a2ba6434f3c630697eb31c16de
BLAKE2b-256 d139d512c0aec6379eea36f17e8ae4f0d2877bfaae32efe0a47d610c20f04036

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a68bb0f582294cf21297b45856e0a20c7742fdedfa5ba4d313d226b6b5e6c36a
MD5 97942713fd95dfb878de0bb3147f4fbc
BLAKE2b-256 68588b5cc3c650555ed6ac4f8bcb540f31fecf077832a521f7df142196bef320

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b22521413ee0b61acdf7f8ea7fe3d51ba7173d4754eb1f62d29b782059877ac6
MD5 4da4a3e5667df305eab76ef208d847fb
BLAKE2b-256 700d4dea3029176dc0d1cc2a7229668c92a0ee391e3736c028498b55af45d5c0

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f11b5938d96a6866ead9547fdeffcbf254301dbbf35173923ada72d2e348907
MD5 67d9c75d4df9b9bcca64ebf3fcb94173
BLAKE2b-256 b09dfa7100fc25a51f6c2022270ec18b830866a37d15773accc0112107681bb7

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c335886556712b6d1965f1d22f253962ce8ee020511917ee8908f07ae7291252
MD5 71a580e2e2777e367ae3259d9be39ec7
BLAKE2b-256 1578ec6737f529cf324e25d663d19a813e4413441d89520c939b530cd3741c2a

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2d5733a7efd21911b844a0d437547717af05f082b69235619efb3cc7691274ee
MD5 23859549de70111c17fc0a31da4ef0f9
BLAKE2b-256 9d985ed2a5c7dd453a71e486701fd10e977d900e6a7562c966745b1971028a9f

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f42c4edcfeeb3c9627d6960754cbc20defa19303d490274d446444146998a22
MD5 43e45ae4424dfc6a59eaab76cf435330
BLAKE2b-256 0e3c793c6c25c91cfe0d05e4c11b27726163e989a531cede338608390e1507ea

See more details on using hashes here.

File details

Details for the file python_gdcm-3.2.6-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_gdcm-3.2.6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36589fdbea8585769a86a248cd7463e71963ce46f281d95441fe8be9062f3009
MD5 a747b9503d58764272fa07c1db8f4756
BLAKE2b-256 b7e4c5103cff93c7ffe3797cd0e0e8ebabe3731a51a6a7e46cef9393bf4f83bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page