for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import sys
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
import os
os
import argparse
import getpass
import logging
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
def DICOMMonitor():
DICOMMonitor
(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
'''
Monitor the DICOM folders of Orthanc output.
:
logger = logging.getLogger('DICOMMonitor')
logger
default_locations = "example path"
default_locations
default_monitoring_duration = 60 #seconds
default_monitoring_duration
default_DCMTK = "DCMTK path"
default_DCMTK
default_os = "ubuntu"
default_os
#Check for all the new batch if they contain any of the known existing DICOM string.
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
parser
(([A-Z_][A-Z0-9_]*)|(__.*__))$
parser.add_argument('-u', '--user', dest='email', type=str, help='Username/Email used for login')
This check looks for lines that are too long. You can specify the maximum line length.
parser.add_argument('-p', '--production', dest='production', action='store_true', help='Example of boolean arg')
parser.add_argument('-o', '--option', dest='option', type=str, help='Example of str arg')
parser.add_argument('file', metavar='file', type=str, help='Example of a positional argument')
args = parser.parse_args()
args
logger.info('--------------')
# Never ask for a password in command-line. Manually ask for it here
password = getpass.getpass()
password
logger.info('Hello World!')
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.