fhir-pyrate 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import ctypes
1
2
  import hashlib
2
3
  import io
3
4
  import logging
@@ -12,6 +13,7 @@ import tempfile
12
13
  import traceback
13
14
  import warnings
14
15
  from contextlib import contextmanager
16
+ from ctypes.util import find_library
15
17
  from functools import partial
16
18
  from types import TracebackType
17
19
  from typing import (
@@ -45,15 +47,12 @@ logger = logging.getLogger(__name__)
45
47
  # https://stackoverflow.com/questions/64674495/how-to-catch-simpleitk-warnings
46
48
  # https://github.com/hankcs/HanLP/blob/doc-zh/hanlp/utils/io_util.py
47
49
  try:
48
- import ctypes
49
- from ctypes.util import find_library
50
- except ImportError:
51
- libc = None
52
- else:
53
- try:
54
- libc = ctypes.cdll.msvcrt # Windows
55
- except OSError:
56
- libc = ctypes.cdll.LoadLibrary(find_library("c")) # type: ignore
50
+ # Windows succeeds, POSIX raises
51
+ libc: Optional[ctypes.CDLL] = ctypes.cdll.msvcrt # Windows
52
+ except (OSError, AttributeError):
53
+ # POSIX fallback — "libc.so.*" on Linux, "libc.dylib" on macOS
54
+ c_name = find_library("c")
55
+ libc = ctypes.CDLL(c_name) if c_name else None
57
56
 
58
57
 
59
58
  def flush(stream: TextIO) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fhir-pyrate
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: FHIR-PYrate is a package that provides a high-level API to query FHIR Servers for bundles of resources and return the structured information as pandas DataFrames. It can also be used to filter resources using RegEx and SpaCy and download DICOM studies and series.
5
5
  Home-page: https://github.com/UMEssen/FHIR-PYrate
6
6
  License: MIT
@@ -24,7 +24,7 @@ Requires-Dist: fhirpathpy (>=0.2.2,<0.3.0)
24
24
  Requires-Dist: numpy (>=2.0.0,<3.0.0)
25
25
  Requires-Dist: pandas (>=2.0.0,<3.0.0)
26
26
  Requires-Dist: pydicom (>=2.1.2,<3.0.0) ; extra == "downloader" or extra == "all"
27
- Requires-Dist: requests (>=2.28.0,<3.0.0)
27
+ Requires-Dist: requests (>=2.31.0,<3.0.0)
28
28
  Requires-Dist: requests-cache (>=0.9.7,<0.10.0)
29
29
  Requires-Dist: spacy (>=3.0.6,<4.0.0) ; extra == "miner" or extra == "all"
30
30
  Requires-Dist: tqdm (>=4.56.0,<5.0.0)
@@ -1,6 +1,6 @@
1
1
  fhir_pyrate/__init__.py,sha256=GrVFlghs2Q8pGCVLdNjD40R0Xt8ptvF5NhCtT1FUazk,864
2
2
  fhir_pyrate/ahoy.py,sha256=dOw94Khg3_4fXnJHAnZFlazxy_Tbb32Yi0HGOYVaHLU,5611
3
- fhir_pyrate/dicom_downloader.py,sha256=GNoOSlyt_pdykdcfvHS287iXMrVBHeyY1WIeegHnbvk,28215
3
+ fhir_pyrate/dicom_downloader.py,sha256=rI5H_DICqfLd4MHIgWxHuNnSdMhkwnsEKc_wtVxe72U,28303
4
4
  fhir_pyrate/miner.py,sha256=wydCL6zmVHSf4ctwz2760mZAfe9byVQciUWUQyRHVtQ,7331
5
5
  fhir_pyrate/pirate.py,sha256=xNqmz5g5EnB3-RLZM46JYXkoGISFVmYEQUg2M-bTcKA,70318
6
6
  fhir_pyrate/util/__init__.py,sha256=-P4jBpsH6XzQELrLAod2_P9oBocfaYUOWb_LQ-QjyKI,193
@@ -9,7 +9,7 @@ fhir_pyrate/util/fhirobj.py,sha256=nTkSUbsmOisgDDgD_cEggF8hlPVjm7CWVSrkA8dOq3E,9
9
9
  fhir_pyrate/util/imports.py,sha256=3s0hvuonX_susm5anw4fZORh7V3JMJ4hoLPBVSoj7Lw,4333
10
10
  fhir_pyrate/util/token_auth.py,sha256=mfLzlZxCnWbiOOMZh_IDYgREp_9fhI3FshB8mDULtaQ,7862
11
11
  fhir_pyrate/util/util.py,sha256=1qIdoriWNksD3DRYm7qSRCli5t9524wa3mVf21fETgs,1507
12
- fhir_pyrate-0.2.2.dist-info/LICENSE,sha256=1IS7y51_JRtpCVVbUpYyztTMj3A6FskEZJBQkAQ9w9o,1084
13
- fhir_pyrate-0.2.2.dist-info/METADATA,sha256=V5L-hgjfdmrikX1nmZNsBHbf1utdOj-zSsQfKeV6ybQ,29679
14
- fhir_pyrate-0.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
15
- fhir_pyrate-0.2.2.dist-info/RECORD,,
12
+ fhir_pyrate-0.2.3.dist-info/LICENSE,sha256=1IS7y51_JRtpCVVbUpYyztTMj3A6FskEZJBQkAQ9w9o,1084
13
+ fhir_pyrate-0.2.3.dist-info/METADATA,sha256=stZOx_28686b8toP0dBCI4WaFR2unpZnznPnCFafVSM,29679
14
+ fhir_pyrate-0.2.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
15
+ fhir_pyrate-0.2.3.dist-info/RECORD,,