A Python implementation of the DICOM networking protocol based on pydicom. Available at PyPi and GitHub. Provides a library to write DICOM networking applications, and example applications for the supported DICOM Service Class Users (SCUs) and Service Class Providers (SCPs), such as FindSCU/FindSCP, MoveSCP/MoveSCU etc.
More information is available in the official documentation.
Questions tagged [pynetdicom]
21 questions
0
votes
0 answers
Run 2 servers in single Python Script in Docker, pynetdicom & flask
I'm interested in running 2 servers within a single Python script running in a Docker container. The initial dev setup that I have is with pynetdicom (see mpps-scp as an example. The main thing of interest there is the line that starts up the…

SScotti
- 2,158
- 4
- 23
- 41
0
votes
0 answers
Getting back the StudyInstanceUID when association sudenlly is aborted
I am writing a sample DICOM SCP Store. I simulate a transfer of many DCM folders (from another computer connected to my LAN) using SCU Store command. 3 transfers are simulated at the same time. for unkonwn reason, one of the transfer is aborted. I a…

Didou Abdidou
- 11
- 4
0
votes
2 answers
Best way to validate DICOM connection request with pynetdicom
What is the preferred way to validate requested DICOM connection against a list of known hosts?
I can connect to the EVT_CONN_OPEN event. But in that, the event.assoc.requestor.info.ae_title element is always empty (b'').
I see from a TCP network…

Johannes Bretscher
- 11
- 5
0
votes
2 answers
Get value from variable instead of command line in argparse
I am using pynetdicom script to fetch the data from the dcm4chee.
to run the script I need to pass the arguments from the command line.
But I already have that value in some variable or in other object and I need to use from there but I am not…

Jeenit khatri
- 318
- 4
- 19
-1
votes
1 answer
How to invoke C-STORE when trying to query from SCP
I've been using the following code, which is from the pynetdicom library to query and store some images from a remote server SCP, on my machine(SCU).
"""
Query/Retrieve SCU AE example.
This demonstrates a simple application entity that support the…

Samimoti
- 19
- 5