Completed
Push — master ( e4617d...4b6b67 )
by Jasper
10s
created

Context.search()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 3
rs 10
c 2
b 0
f 0
1
from niprov.dependencies import Dependencies
2
from niprov.config import Configuration
3
import niprov
4
5
6
class Context(object):
7
8
    def __init__(self):
9
        self.config = Configuration()
10
        self.deps = Dependencies(self.config)
11
12
    def add(self, filepath, **kwargs):
13
        """See :py:mod:`niprov.config`  """
14
        return niprov.adding.add(filepath, dependencies=self.deps, **kwargs)
15
16
    def compare(self, file1, file2):
17
        """See :py:mod:`niprov.comparing`  """
18
        return niprov.comparing.compare(file1, file2, dependencies=self.deps)
19
20
    def discover(self, root):
21
        """See :py:mod:`niprov.discovery`  """
22
        return niprov.discovery.discover(root, dependencies=self.deps)
23
24
    def get(self):
25
        """See :py:mod:`niprov.querying`  """
26
        return self.deps.getQuery()
27
28
    def inspect(self, location):
29
        """See :py:mod:`niprov.inspection`  """
30
        return niprov.inspection.inspect(location, dependencies=self.deps)
31
32
    def log(self, *args, **kwargs):
33
        """See :py:mod:`niprov.logging`  """
34
        return niprov.logging.log(*args, dependencies=self.deps, **kwargs)
35
36
    def markForApproval(self, files):
37
        """See :py:mod:`niprov.approval`  """
38
        return niprov.approval.markForApproval(files, dependencies=self.deps)
39
40
    def markedForApproval(self):
41
        """See :py:mod:`niprov.approval`  """
42
        return niprov.approval.markedForApproval(dependencies=self.deps)
43
44
    def approve(self, filepath):
45
        """See :py:mod:`niprov.approval`  """
46
        return niprov.approval.approve(filepath, dependencies=self.deps)
47
48
    def selectApproved(self, files):
49
        """See :py:mod:`niprov.approval`  """
50
        return niprov.approval.selectApproved(files, dependencies=self.deps)
51
52
    def renameDicoms(self, dicomdir):
53
        """See :py:mod:`niprov.renaming`  """
54
        return niprov.renaming.renameDicoms(dicomdir, dependencies=self.deps)
55
56
    def record(self, *args, **kwargs):
57
        """See :py:mod:`niprov.recording`  """
58
        return niprov.recording.record(*args, dependencies=self.deps, **kwargs)
59
60
    def search(self, text):
61
        """See :py:mod:`niprov.searching`  """
62
        return niprov.searching.search(text, dependencies=self.deps)
63
64
    def export(self, *args, **kwargs):
65
        """See :py:mod:`niprov.exporting`  """
66
        return niprov.exporting.export(*args, dependencies=self.deps, **kwargs)
67
68
    def print_(self, *args, **kwargs):
69
        """See :py:mod:`niprov.exporting`  """
70
        return niprov.exporting.print_(*args, dependencies=self.deps, **kwargs)
71
72
    def backup(self, *args, **kwargs):
73
        """See :py:mod:`niprov.exporting`  """
74
        return niprov.exporting.backup(*args, dependencies=self.deps, **kwargs)
75
76
    def importp(self, *args, **kwargs):
77
        """See :py:mod:`niprov.importing`  """
78
        return niprov.importing.importp(*args, dependencies=self.deps, **kwargs)
79
80
    def view(self, *args, **kwargs):
81
        """See :py:mod:`niprov.exporting`  """
82
        return niprov.exporting.view(*args, dependencies=self.deps, **kwargs)
83