data_pipeline_api 0.6.0__tar.gz

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.
Files changed (112) hide show
  1. data_pipeline_api-0.6.0/.gitignore +18 -0
  2. data_pipeline_api-0.6.0/.pylintrc +588 -0
  3. data_pipeline_api-0.6.0/.travis.yml +62 -0
  4. data_pipeline_api-0.6.0/LICENSE +29 -0
  5. data_pipeline_api-0.6.0/PKG-INFO +10 -0
  6. data_pipeline_api-0.6.0/README.md +112 -0
  7. data_pipeline_api-0.6.0/conda/meta.yaml +33 -0
  8. data_pipeline_api-0.6.0/contributing.md +29 -0
  9. data_pipeline_api-0.6.0/data_pipeline_api/__init__.py +0 -0
  10. data_pipeline_api-0.6.0/data_pipeline_api/file_api.py +267 -0
  11. data_pipeline_api-0.6.0/data_pipeline_api/file_formats/object_file.py +213 -0
  12. data_pipeline_api-0.6.0/data_pipeline_api/file_formats/parameter_file.py +115 -0
  13. data_pipeline_api-0.6.0/data_pipeline_api/metadata.py +47 -0
  14. data_pipeline_api-0.6.0/data_pipeline_api/metadata_store.py +59 -0
  15. data_pipeline_api-0.6.0/data_pipeline_api/overrides.py +33 -0
  16. data_pipeline_api-0.6.0/data_pipeline_api/registry/README.md +98 -0
  17. data_pipeline_api-0.6.0/data_pipeline_api/registry/__init__.py +0 -0
  18. data_pipeline_api-0.6.0/data_pipeline_api/registry/access_upload.py +523 -0
  19. data_pipeline_api-0.6.0/data_pipeline_api/registry/common.py +370 -0
  20. data_pipeline_api-0.6.0/data_pipeline_api/registry/download.py +353 -0
  21. data_pipeline_api-0.6.0/data_pipeline_api/registry/templates/data_product.yaml +35 -0
  22. data_pipeline_api-0.6.0/data_pipeline_api/registry/upload.py +144 -0
  23. data_pipeline_api-0.6.0/data_pipeline_api/registry/upload_data_product.py +169 -0
  24. data_pipeline_api-0.6.0/data_pipeline_api/standard_api.py +277 -0
  25. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/PKG-INFO +10 -0
  26. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/SOURCES.txt +110 -0
  27. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/dependency_links.txt +1 -0
  28. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/entry_points.txt +8 -0
  29. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/requires.txt +13 -0
  30. data_pipeline_api-0.6.0/data_pipeline_api.egg-info/top_level.txt +1 -0
  31. data_pipeline_api-0.6.0/environment.yml +24 -0
  32. data_pipeline_api-0.6.0/examples/example_configs/simple_network_sim_config.yaml +27 -0
  33. data_pipeline_api-0.6.0/examples/example_configs/simple_network_sim_upload.yaml +117 -0
  34. data_pipeline_api-0.6.0/examples/standard_api_usage.py +61 -0
  35. data_pipeline_api-0.6.0/java_api/build.gradle +5 -0
  36. data_pipeline_api-0.6.0/java_api/file_api/build.gradle +53 -0
  37. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessEntry.java +20 -0
  38. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessLog.java +35 -0
  39. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessLogWriter.java +18 -0
  40. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessLogger.java +11 -0
  41. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessLoggerFactory.java +40 -0
  42. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/AccessLoggerImpl.java +80 -0
  43. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/access/NoImplAccessLogger.java +20 -0
  44. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/api/FileApi.java +155 -0
  45. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/config/Config.java +73 -0
  46. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/config/ConfigFactory.java +16 -0
  47. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/config/ConfigReader.java +28 -0
  48. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/file/CleanableFileChannel.java +166 -0
  49. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/file/FileDirectoryNormaliser.java +23 -0
  50. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/file/FileReader.java +16 -0
  51. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/hash/HashMetadataAppender.java +31 -0
  52. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/hash/Hasher.java +14 -0
  53. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/hash/Sha1Hasher.java +9 -0
  54. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/IssueItem.java +24 -0
  55. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/MatchingMetadataSelector.java +21 -0
  56. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/MetaDataReader.java +29 -0
  57. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/MetadataFactory.java +23 -0
  58. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/MetadataItem.java +173 -0
  59. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/MetadataSelector.java +5 -0
  60. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/ReadOnlyRunMetadata.java +7 -0
  61. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/RunMetadata.java +23 -0
  62. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/metadata/WriteOnlyRunMetadata.java +7 -0
  63. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/overrides/OverridesApplier.java +67 -0
  64. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/yaml/BaseYamlReader.java +20 -0
  65. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/yaml/BaseYamlWriter.java +33 -0
  66. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/yaml/YamlFactory.java +11 -0
  67. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/yaml/YamlReader.java +8 -0
  68. data_pipeline_api-0.6.0/java_api/file_api/src/main/java/uk/ramp/yaml/YamlWriter.java +7 -0
  69. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/access/AccessLoggerTest.java +115 -0
  70. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/api/FileApiIntegrationTest.java +125 -0
  71. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/file/CleanableFileChannelIntegrationTest.java +77 -0
  72. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/file/FileDirectoryNormaliserTest.java +28 -0
  73. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/hash/HashMetadataAppenderTest.java +52 -0
  74. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/hash/Sha1HasherTest.java +18 -0
  75. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/metadata/MatchingMetadataSelectorTest.java +52 -0
  76. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/metadata/MetadataItemTest.java +146 -0
  77. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/metadata/MetadataItemVersionComparisonTest.java +44 -0
  78. data_pipeline_api-0.6.0/java_api/file_api/src/test/java/uk/ramp/yaml/BaseYamlWriterTest.java +26 -0
  79. data_pipeline_api-0.6.0/java_api/file_api/src/test/resources/config.yaml +23 -0
  80. data_pipeline_api-0.6.0/java_api/file_api/src/test/resources/folder/data/metadata.yaml +25 -0
  81. data_pipeline_api-0.6.0/java_api/file_api/src/test/resources/folder/data/parameter/example1.toml +33 -0
  82. data_pipeline_api-0.6.0/java_api/gradle/wrapper/gradle-wrapper.jar +0 -0
  83. data_pipeline_api-0.6.0/java_api/gradle/wrapper/gradle-wrapper.properties +6 -0
  84. data_pipeline_api-0.6.0/java_api/gradlew +185 -0
  85. data_pipeline_api-0.6.0/java_api/gradlew.bat +104 -0
  86. data_pipeline_api-0.6.0/java_api/settings.gradle +4 -0
  87. data_pipeline_api-0.6.0/java_api/standard_api/build.gradle +14 -0
  88. data_pipeline_api-0.6.0/java_api/standard_api/src/main/java/uk/ramp/api/StandardApi.java +5 -0
  89. data_pipeline_api-0.6.0/scripts/convert_access_to_config.py +65 -0
  90. data_pipeline_api-0.6.0/scripts/release.sh +35 -0
  91. data_pipeline_api-0.6.0/setup.cfg +4 -0
  92. data_pipeline_api-0.6.0/setup.py +55 -0
  93. data_pipeline_api-0.6.0/tests/__init__.py +0 -0
  94. data_pipeline_api-0.6.0/tests/conftest.py +6 -0
  95. data_pipeline_api-0.6.0/tests/data/config.yaml +9 -0
  96. data_pipeline_api-0.6.0/tests/data/demographics.h5 +0 -0
  97. data_pipeline_api-0.6.0/tests/data/metadata.yaml +50 -0
  98. data_pipeline_api-0.6.0/tests/data/object/example-v2.h5 +0 -0
  99. data_pipeline_api-0.6.0/tests/data/object/example.h5 +0 -0
  100. data_pipeline_api-0.6.0/tests/data/parameter/example-v2.toml +13 -0
  101. data_pipeline_api-0.6.0/tests/data/parameter/example.toml +13 -0
  102. data_pipeline_api-0.6.0/tests/file_formats/test_object_file.py +39 -0
  103. data_pipeline_api-0.6.0/tests/file_formats/test_parameter_file.py +79 -0
  104. data_pipeline_api-0.6.0/tests/registry/__init__.py +0 -0
  105. data_pipeline_api-0.6.0/tests/registry/test_access_upload.py +60 -0
  106. data_pipeline_api-0.6.0/tests/registry/test_common.py +314 -0
  107. data_pipeline_api-0.6.0/tests/registry/test_download.py +204 -0
  108. data_pipeline_api-0.6.0/tests/registry/test_upload.py +168 -0
  109. data_pipeline_api-0.6.0/tests/test_file_api.py +126 -0
  110. data_pipeline_api-0.6.0/tests/test_metadata_store.py +32 -0
  111. data_pipeline_api-0.6.0/tests/test_overrides.py +26 -0
  112. data_pipeline_api-0.6.0/tests/test_standard_api.py +150 -0
@@ -0,0 +1,18 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+ # test output
6
+ .coverage
7
+ .pytest_cache/*
8
+
9
+ # data
10
+ repos/*
11
+
12
+ # IDE
13
+ .idea
14
+ *.sw[po]
15
+ .vscode
16
+
17
+ # sphinx / readthedocs
18
+ doc/build/*
@@ -0,0 +1,588 @@
1
+ [MASTER]
2
+
3
+ # A comma-separated list of package or module names from where C extensions may
4
+ # be loaded. Extensions are loading into the active Python interpreter and may
5
+ # run arbitrary code.
6
+ extension-pkg-whitelist=
7
+
8
+ # Add files or directories to the blacklist. They should be base names, not
9
+ # paths.
10
+ ignore=CVS
11
+
12
+ # Add files or directories matching the regex patterns to the blacklist. The
13
+ # regex matches against base names, not paths.
14
+ ignore-patterns=
15
+
16
+ # Python code to execute, usually for sys.path manipulation such as
17
+ # pygtk.require().
18
+ #init-hook=
19
+
20
+ # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
21
+ # number of processors available to use.
22
+ jobs=1
23
+
24
+ # Control the amount of potential inferred values when inferring a single
25
+ # object. This can help the performance when dealing with large functions or
26
+ # complex, nested conditions.
27
+ limit-inference-results=100
28
+
29
+ # List of plugins (as comma separated values of python module names) to load,
30
+ # usually to register additional checkers.
31
+ load-plugins=
32
+
33
+ # Pickle collected data for later comparisons.
34
+ persistent=yes
35
+
36
+ # Specify a configuration file.
37
+ #rcfile=
38
+
39
+ # When enabled, pylint would attempt to guess common misconfiguration and emit
40
+ # user-friendly hints instead of false-positive error messages.
41
+ suggestion-mode=yes
42
+
43
+ # Allow loading of arbitrary C extensions. Extensions are imported into the
44
+ # active Python interpreter and may run arbitrary code.
45
+ unsafe-load-any-extension=no
46
+
47
+
48
+ [MESSAGES CONTROL]
49
+
50
+ # Only show warnings with the listed confidence levels. Leave empty to show
51
+ # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
52
+ confidence=
53
+
54
+ # Disable the message, report, category or checker with the given id(s). You
55
+ # can either give multiple identifiers separated by comma (,) or put this
56
+ # option multiple times (only on the command line, not in the configuration
57
+ # file where it should appear only once). You can also use "--disable=all" to
58
+ # disable everything first and then reenable specific checks. For example, if
59
+ # you want to run only the similarities checker, you can use "--disable=all
60
+ # --enable=similarities". If you want to run only the classes checker, but have
61
+ # no Warning level messages displayed, use "--disable=all --enable=classes
62
+ # --disable=W".
63
+ disable=print-statement,
64
+ parameter-unpacking,
65
+ unpacking-in-except,
66
+ old-raise-syntax,
67
+ backtick,
68
+ long-suffix,
69
+ old-ne-operator,
70
+ old-octal-literal,
71
+ import-star-module-level,
72
+ non-ascii-bytes-literal,
73
+ raw-checker-failed,
74
+ bad-inline-option,
75
+ locally-disabled,
76
+ file-ignored,
77
+ suppressed-message,
78
+ useless-suppression,
79
+ deprecated-pragma,
80
+ use-symbolic-message-instead,
81
+ apply-builtin,
82
+ basestring-builtin,
83
+ buffer-builtin,
84
+ cmp-builtin,
85
+ coerce-builtin,
86
+ execfile-builtin,
87
+ file-builtin,
88
+ long-builtin,
89
+ raw_input-builtin,
90
+ reduce-builtin,
91
+ standarderror-builtin,
92
+ unicode-builtin,
93
+ xrange-builtin,
94
+ coerce-method,
95
+ delslice-method,
96
+ getslice-method,
97
+ setslice-method,
98
+ no-absolute-import,
99
+ old-division,
100
+ dict-iter-method,
101
+ dict-view-method,
102
+ next-method-called,
103
+ metaclass-assignment,
104
+ indexing-exception,
105
+ raising-string,
106
+ reload-builtin,
107
+ oct-method,
108
+ hex-method,
109
+ nonzero-method,
110
+ cmp-method,
111
+ input-builtin,
112
+ round-builtin,
113
+ intern-builtin,
114
+ unichr-builtin,
115
+ map-builtin-not-iterating,
116
+ zip-builtin-not-iterating,
117
+ range-builtin-not-iterating,
118
+ filter-builtin-not-iterating,
119
+ using-cmp-argument,
120
+ eq-without-hash,
121
+ div-method,
122
+ idiv-method,
123
+ rdiv-method,
124
+ exception-message-attribute,
125
+ invalid-str-codec,
126
+ sys-max-int,
127
+ bad-python3-import,
128
+ deprecated-string-function,
129
+ deprecated-str-translate-call,
130
+ deprecated-itertools-function,
131
+ deprecated-types-field,
132
+ next-method-defined,
133
+ dict-items-not-iterating,
134
+ dict-keys-not-iterating,
135
+ dict-values-not-iterating,
136
+ deprecated-operator-function,
137
+ deprecated-urllib-function,
138
+ xreadlines-attribute,
139
+ deprecated-sys-function,
140
+ exception-escape,
141
+ comprehension-escape,
142
+ invalid-name, # Custom rule exceptions begin
143
+ line-too-long,
144
+ missing-function-docstring,
145
+ missing-module-docstring,
146
+ import-error,
147
+ too-few-public-methods,
148
+ bad-continuation
149
+
150
+ # Enable the message, report, category or checker with the given id(s). You can
151
+ # either give multiple identifier separated by comma (,) or put this option
152
+ # multiple time (only on the command line, not in the configuration file where
153
+ # it should appear only once). See also the "--disable" option for examples.
154
+ enable=c-extension-no-member
155
+
156
+
157
+ [REPORTS]
158
+
159
+ # Python expression which should return a score less than or equal to 10. You
160
+ # have access to the variables 'error', 'warning', 'refactor', and 'convention'
161
+ # which contain the number of messages in each category, as well as 'statement'
162
+ # which is the total number of statements analyzed. This score is used by the
163
+ # global evaluation report (RP0004).
164
+ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
165
+
166
+ # Template used to display messages. This is a python new-style format string
167
+ # used to format the message information. See doc for all details.
168
+ #msg-template=
169
+
170
+ # Set the output format. Available formats are text, parseable, colorized, json
171
+ # and msvs (visual studio). You can also give a reporter class, e.g.
172
+ # mypackage.mymodule.MyReporterClass.
173
+ output-format=text
174
+
175
+ # Tells whether to display a full report or only the messages.
176
+ reports=no
177
+
178
+ # Activate the evaluation score.
179
+ score=yes
180
+
181
+
182
+ [REFACTORING]
183
+
184
+ # Maximum number of nested blocks for function / method body
185
+ max-nested-blocks=5
186
+
187
+ # Complete name of functions that never returns. When checking for
188
+ # inconsistent-return-statements if a never returning function is called then
189
+ # it will be considered as an explicit return statement and no message will be
190
+ # printed.
191
+ never-returning-functions=sys.exit
192
+
193
+
194
+ [BASIC]
195
+
196
+ # Naming style matching correct argument names.
197
+ argument-naming-style=snake_case
198
+
199
+ # Regular expression matching correct argument names. Overrides argument-
200
+ # naming-style.
201
+ #argument-rgx=
202
+
203
+ # Naming style matching correct attribute names.
204
+ attr-naming-style=snake_case
205
+
206
+ # Regular expression matching correct attribute names. Overrides attr-naming-
207
+ # style.
208
+ #attr-rgx=
209
+
210
+ # Bad variable names which should always be refused, separated by a comma.
211
+ bad-names=foo,
212
+ bar,
213
+ baz,
214
+ toto,
215
+ tutu,
216
+ tata
217
+
218
+ # Naming style matching correct class attribute names.
219
+ class-attribute-naming-style=any
220
+
221
+ # Regular expression matching correct class attribute names. Overrides class-
222
+ # attribute-naming-style.
223
+ #class-attribute-rgx=
224
+
225
+ # Naming style matching correct class names.
226
+ class-naming-style=PascalCase
227
+
228
+ # Regular expression matching correct class names. Overrides class-naming-
229
+ # style.
230
+ #class-rgx=
231
+
232
+ # Naming style matching correct constant names.
233
+ const-naming-style=UPPER_CASE
234
+
235
+ # Regular expression matching correct constant names. Overrides const-naming-
236
+ # style.
237
+ #const-rgx=
238
+
239
+ # Minimum line length for functions/classes that require docstrings, shorter
240
+ # ones are exempt.
241
+ docstring-min-length=-1
242
+
243
+ # Naming style matching correct function names.
244
+ function-naming-style=snake_case
245
+
246
+ # Regular expression matching correct function names. Overrides function-
247
+ # naming-style.
248
+ #function-rgx=
249
+
250
+ # Good variable names which should always be accepted, separated by a comma.
251
+ good-names=i,
252
+ j,
253
+ k,
254
+ ex,
255
+ Run,
256
+ _
257
+
258
+ # Include a hint for the correct naming format with invalid-name.
259
+ include-naming-hint=no
260
+
261
+ # Naming style matching correct inline iteration names.
262
+ inlinevar-naming-style=any
263
+
264
+ # Regular expression matching correct inline iteration names. Overrides
265
+ # inlinevar-naming-style.
266
+ #inlinevar-rgx=
267
+
268
+ # Naming style matching correct method names.
269
+ method-naming-style=snake_case
270
+
271
+ # Regular expression matching correct method names. Overrides method-naming-
272
+ # style.
273
+ #method-rgx=
274
+
275
+ # Naming style matching correct module names.
276
+ module-naming-style=snake_case
277
+
278
+ # Regular expression matching correct module names. Overrides module-naming-
279
+ # style.
280
+ #module-rgx=
281
+
282
+ # Colon-delimited sets of names that determine each other's naming style when
283
+ # the name regexes allow several styles.
284
+ name-group=
285
+
286
+ # Regular expression which should only match function or class names that do
287
+ # not require a docstring.
288
+ no-docstring-rgx=^_
289
+
290
+ # List of decorators that produce properties, such as abc.abstractproperty. Add
291
+ # to this list to register other decorators that produce valid properties.
292
+ # These decorators are taken in consideration only for invalid-name.
293
+ property-classes=abc.abstractproperty
294
+
295
+ # Naming style matching correct variable names.
296
+ variable-naming-style=snake_case
297
+
298
+ # Regular expression matching correct variable names. Overrides variable-
299
+ # naming-style.
300
+ #variable-rgx=
301
+
302
+
303
+ [FORMAT]
304
+
305
+ # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
306
+ expected-line-ending-format=
307
+
308
+ # Regexp for a line that is allowed to be longer than the limit.
309
+ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
310
+
311
+ # Number of spaces of indent required inside a hanging or continued line.
312
+ indent-after-paren=4
313
+
314
+ # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
315
+ # tab).
316
+ indent-string=' '
317
+
318
+ # Maximum number of characters on a single line.
319
+ max-line-length=100
320
+
321
+ # Maximum number of lines in a module.
322
+ max-module-lines=1000
323
+
324
+ # List of optional constructs for which whitespace checking is disabled. `dict-
325
+ # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
326
+ # `trailing-comma` allows a space between comma and closing bracket: (a, ).
327
+ # `empty-line` allows space-only lines.
328
+ no-space-check=trailing-comma,
329
+ dict-separator
330
+
331
+ # Allow the body of a class to be on the same line as the declaration if body
332
+ # contains single statement.
333
+ single-line-class-stmt=no
334
+
335
+ # Allow the body of an if to be on the same line as the test if there is no
336
+ # else.
337
+ single-line-if-stmt=no
338
+
339
+
340
+ [LOGGING]
341
+
342
+ # Format style used to check logging format string. `old` means using %
343
+ # formatting, `new` is for `{}` formatting,and `fstr` is for f-strings.
344
+ logging-format-style=old
345
+
346
+ # Logging modules to check that the string format arguments are in logging
347
+ # function parameter format.
348
+ logging-modules=logging
349
+
350
+
351
+ [MISCELLANEOUS]
352
+
353
+ # List of note tags to take in consideration, separated by a comma.
354
+ notes=FIXME,
355
+ XXX,
356
+ TODO
357
+
358
+
359
+ [SIMILARITIES]
360
+
361
+ # Ignore comments when computing similarities.
362
+ ignore-comments=yes
363
+
364
+ # Ignore docstrings when computing similarities.
365
+ ignore-docstrings=yes
366
+
367
+ # Ignore imports when computing similarities.
368
+ ignore-imports=no
369
+
370
+ # Minimum lines number of a similarity.
371
+ min-similarity-lines=4
372
+
373
+
374
+ [SPELLING]
375
+
376
+ # Limits count of emitted suggestions for spelling mistakes.
377
+ max-spelling-suggestions=4
378
+
379
+ # Spelling dictionary name. Available dictionaries: none. To make it work,
380
+ # install the python-enchant package.
381
+ spelling-dict=
382
+
383
+ # List of comma separated words that should not be checked.
384
+ spelling-ignore-words=
385
+
386
+ # A path to a file that contains the private dictionary; one word per line.
387
+ spelling-private-dict-file=
388
+
389
+ # Tells whether to store unknown words to the private dictionary (see the
390
+ # --spelling-private-dict-file option) instead of raising a message.
391
+ spelling-store-unknown-words=no
392
+
393
+
394
+ [STRING]
395
+
396
+ # This flag controls whether the implicit-str-concat-in-sequence should
397
+ # generate a warning on implicit string concatenation in sequences defined over
398
+ # several lines.
399
+ check-str-concat-over-line-jumps=no
400
+
401
+
402
+ [TYPECHECK]
403
+
404
+ # List of decorators that produce context managers, such as
405
+ # contextlib.contextmanager. Add to this list to register other decorators that
406
+ # produce valid context managers.
407
+ contextmanager-decorators=contextlib.contextmanager
408
+
409
+ # List of members which are set dynamically and missed by pylint inference
410
+ # system, and so shouldn't trigger E1101 when accessed. Python regular
411
+ # expressions are accepted.
412
+ generated-members=
413
+
414
+ # Tells whether missing members accessed in mixin class should be ignored. A
415
+ # mixin class is detected if its name ends with "mixin" (case insensitive).
416
+ ignore-mixin-members=yes
417
+
418
+ # Tells whether to warn about missing members when the owner of the attribute
419
+ # is inferred to be None.
420
+ ignore-none=yes
421
+
422
+ # This flag controls whether pylint should warn about no-member and similar
423
+ # checks whenever an opaque object is returned when inferring. The inference
424
+ # can return multiple potential results while evaluating a Python object, but
425
+ # some branches might not be evaluated, which results in partial inference. In
426
+ # that case, it might be useful to still emit no-member and other checks for
427
+ # the rest of the inferred objects.
428
+ ignore-on-opaque-inference=yes
429
+
430
+ # List of class names for which member attributes should not be checked (useful
431
+ # for classes with dynamically set attributes). This supports the use of
432
+ # qualified names.
433
+ ignored-classes=optparse.Values,thread._local,_thread._local
434
+
435
+ # List of module names for which member attributes should not be checked
436
+ # (useful for modules/projects where namespaces are manipulated during runtime
437
+ # and thus existing member attributes cannot be deduced by static analysis). It
438
+ # supports qualified module names, as well as Unix pattern matching.
439
+ ignored-modules=
440
+
441
+ # Show a hint with possible names when a member name was not found. The aspect
442
+ # of finding the hint is based on edit distance.
443
+ missing-member-hint=yes
444
+
445
+ # The minimum edit distance a name should have in order to be considered a
446
+ # similar match for a missing member name.
447
+ missing-member-hint-distance=1
448
+
449
+ # The total number of similar names that should be taken in consideration when
450
+ # showing a hint for a missing member.
451
+ missing-member-max-choices=1
452
+
453
+ # List of decorators that change the signature of a decorated function.
454
+ signature-mutators=
455
+
456
+
457
+ [VARIABLES]
458
+
459
+ # List of additional names supposed to be defined in builtins. Remember that
460
+ # you should avoid defining new builtins when possible.
461
+ additional-builtins=
462
+
463
+ # Tells whether unused global variables should be treated as a violation.
464
+ allow-global-unused-variables=yes
465
+
466
+ # List of strings which can identify a callback function by name. A callback
467
+ # name must start or end with one of those strings.
468
+ callbacks=cb_,
469
+ _cb
470
+
471
+ # A regular expression matching the name of dummy variables (i.e. expected to
472
+ # not be used).
473
+ dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
474
+
475
+ # Argument names that match this expression will be ignored. Default to name
476
+ # with leading underscore.
477
+ ignored-argument-names=_.*|^ignored_|^unused_
478
+
479
+ # Tells whether we should check for unused import in __init__ files.
480
+ init-import=no
481
+
482
+ # List of qualified module names which can have objects that can redefine
483
+ # builtins.
484
+ redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
485
+
486
+
487
+ [CLASSES]
488
+
489
+ # List of method names used to declare (i.e. assign) instance attributes.
490
+ defining-attr-methods=__init__,
491
+ __new__,
492
+ setUp,
493
+ __post_init__
494
+
495
+ # List of member names, which should be excluded from the protected access
496
+ # warning.
497
+ exclude-protected=_asdict,
498
+ _fields,
499
+ _replace,
500
+ _source,
501
+ _make
502
+
503
+ # List of valid names for the first argument in a class method.
504
+ valid-classmethod-first-arg=cls
505
+
506
+ # List of valid names for the first argument in a metaclass class method.
507
+ valid-metaclass-classmethod-first-arg=cls
508
+
509
+
510
+ [DESIGN]
511
+
512
+ # Maximum number of arguments for function / method.
513
+ max-args=5
514
+
515
+ # Maximum number of attributes for a class (see R0902).
516
+ max-attributes=7
517
+
518
+ # Maximum number of boolean expressions in an if statement (see R0916).
519
+ max-bool-expr=5
520
+
521
+ # Maximum number of branch for function / method body.
522
+ max-branches=12
523
+
524
+ # Maximum number of locals for function / method body.
525
+ max-locals=15
526
+
527
+ # Maximum number of parents for a class (see R0901).
528
+ max-parents=7
529
+
530
+ # Maximum number of public methods for a class (see R0904).
531
+ max-public-methods=20
532
+
533
+ # Maximum number of return / yield for function / method body.
534
+ max-returns=6
535
+
536
+ # Maximum number of statements in function / method body.
537
+ max-statements=50
538
+
539
+ # Minimum number of public methods for a class (see R0903).
540
+ min-public-methods=2
541
+
542
+
543
+ [IMPORTS]
544
+
545
+ # List of modules that can be imported at any level, not just the top level
546
+ # one.
547
+ allow-any-import-level=
548
+
549
+ # Allow wildcard imports from modules that define __all__.
550
+ allow-wildcard-with-all=no
551
+
552
+ # Analyse import fallback blocks. This can be used to support both Python 2 and
553
+ # 3 compatible code, which means that the block might have code that exists
554
+ # only in one or another interpreter, leading to false positives when analysed.
555
+ analyse-fallback-blocks=no
556
+
557
+ # Deprecated modules which should not be used, separated by a comma.
558
+ deprecated-modules=optparse,tkinter.tix
559
+
560
+ # Create a graph of external dependencies in the given file (report RP0402 must
561
+ # not be disabled).
562
+ ext-import-graph=
563
+
564
+ # Create a graph of every (i.e. internal and external) dependencies in the
565
+ # given file (report RP0402 must not be disabled).
566
+ import-graph=
567
+
568
+ # Create a graph of internal dependencies in the given file (report RP0402 must
569
+ # not be disabled).
570
+ int-import-graph=
571
+
572
+ # Force import order to recognize a module as part of the standard
573
+ # compatibility libraries.
574
+ known-standard-library=
575
+
576
+ # Force import order to recognize a module as part of a third party library.
577
+ known-third-party=enchant
578
+
579
+ # Couples of modules and preferred modules, separated by a comma.
580
+ preferred-modules=
581
+
582
+
583
+ [EXCEPTIONS]
584
+
585
+ # Exceptions that will emit a warning when being caught. Defaults to
586
+ # "BaseException, Exception".
587
+ overgeneral-exceptions=BaseException,
588
+ Exception
@@ -0,0 +1,62 @@
1
+ language: generic
2
+
3
+ git:
4
+ depth: false
5
+
6
+ env:
7
+ global:
8
+ # The secure keys below were generated by running
9
+ #
10
+ # travis encrypt [ENVIRONMENT VARIABLE]=[secret]
11
+ #
12
+ # We have one secret per environment variable. Read more about travis
13
+ # secrets at: https://docs.travis-ci.com/user/encryption-keys#usage
14
+
15
+ # ANACONDA_TOKEN
16
+ # This token was obtained from: https://anaconda.org/ScottishCovidResponse/settings/access
17
+ #
18
+ # The conda access token expires in 07/03/21. After that, a new one needs
19
+ # to be issued. If it is not, the build will still succeed, but it won't be
20
+ # possible to make new conda releases.
21
+ - secure: ainXhSLEW/D8LYJlmil36SeNfVAP1l9LLVewL/1xhSUgX8eP5MMiFbeaQB0qMNYYP3PKn2xNYuQRxTgmRGvvnDte6OXHv1Zs9LbFlTeZQm5sVEOt37Ey7hJxv+m7AHw7HHyB/tEdnY2NBk4LSLh8ZwFmP4bNhAsoGz0O0dpvnsd9ZNubATEAmsQGZd7wJIvKVq854xaiquS2sbU2kvAnH+DKHcy7Lmr3HQWnWFGPgVOTdR6VS9yxx+a+hJtFxGy+Zp6/t8hEtpF6JQyOglXWctTm8j9O8IDFOizIak+rbwq/5R946SBr82SUrLtsuJh8lVapa0E45hnvfcmbSG3JrPYstWxOl2V+rR1clPjvHieQHYlZ9Ix4skZK79bqRnd9mr4Go+uPx9v5KxAiP2T6aj9XEm2hTWdaUSITpWymMhPiJItHrbllftYPHTQSW9yPnnfqoyApeF4QY0U1tCjfZUypni0UWMl15vekfsBMT53rzNlrDTbfKvMHG0cUbD9EJE+LycVcQ/6MmuJDaZDZk8yVWpoCU5CenmooC+py4PiUnAfSPXQwRAtGplFbV746p3Ofe8sb54gVSKJPwqSExx9ccq89w9nMt06M1KX/r+OC6d94MnnuZknYGDOCoAkpYmHhnLZwwOA0H3rtC1LrjkNodkzH89Nde0aOTJQW0qs=
22
+
23
+ # TWINE_PASSWORD
24
+ # This token was obtained from: https://pypi.org/manage/project/data-pipeline-api/settings
25
+ #
26
+ # TODO: create a service account based on scrc@glasgow.ac.uk to hold the
27
+ # token, rather than using someone else's acocunt for this
28
+ # (https://pypi.org/user/almeidaraf/ currently)
29
+ - secure: ZkM0H4YRKOB6poRDH6/sJjS3C4L3+AE9Vwwt/7y2S9ApN+r2UGDKxXpd9sY+VPqk9s0IdmeI22pQNhyMLm+KuMuObNNZJR1KTxeDDy3fEGh1K5bEPl6N8MVHdOj5/S1Xvu8TKl2x7ODCxGwjwTArdOsTtrDUTsxI3x2C+vpzYNP5f1ztAkiNbi74U5ws2g7xPxlvSKOVCC6e0/m6r8/NSAMXA910wZaovb07JsfRWOA2nIityI8ezTJCZyK1esquzOzRjDYm5xCoZoKUFGOxCQBjNEJP60y5QGjAXPFh2y9r+Ll/klUWiml/Kd0W1ZWLY1v21QCYj3YOmtYk1Gbq73UJBd9LnpE3/+G617gyBRo2yWFNgCT7/TBUDqxjcc29FmmQls+Jzd4dkEwckLII58MPlXf+U6SbCmEj+nNyZGsDvsf8euBcziB4Vy1GrGNj61wfOfjp/8+P1efHzpdMmk24BQvz2ywXWvL5EH3NbsQi1eOIuCF/d2upsigMIVqlgZ8yGT2NUXZJoY2/dYH59i93BPavJkdLB+86eUUzA39zmcF/S39yFwtDHAKmq15v8czTR6xK0ctPmRs4y72GGUui0A6fppwgoUPAMHctNO7kdhTrsU4Ux/bzIQ6RQ1/E0kfAiuFMif/oq4wHHuECh1+kMTBdsLxr1lOG4ai+8Lo=
30
+
31
+ matrix:
32
+ include:
33
+ - name: 'Conda Python with .yml-file'
34
+ language: python
35
+ install:
36
+ - sudo apt-get update && sudo apt-get install -y wget
37
+ - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
38
+ - bash miniconda.sh -b -p $HOME/miniconda
39
+ - source "$HOME/miniconda/etc/profile.d/conda.sh"
40
+ - hash -r
41
+ - conda config --set always_yes yes --set changeps1 no
42
+ - conda update -q conda
43
+ - conda env create environment.yml
44
+ - conda activate data_pipeline_api
45
+ script:
46
+ - pytest --cov=data_pipeline_api || travis_terminate 1
47
+ - conda install setuptools_scm pkginfo conda-build anaconda-client twine
48
+ - python setup.py bdist_wheel
49
+ - python setup.py sdist
50
+ - scripts/release.sh
51
+ after_success:
52
+ - coverage xml
53
+ - bash <(curl -s https://codecov.io/bash)
54
+
55
+ - name: 'Java API build and publish'
56
+ before_script:
57
+ - "cd java_api"
58
+ jdk: openjdk11
59
+ language: java
60
+ script: "./gradlew build"
61
+ after_success: "./gradlew publish"
62
+
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2020, SCRC
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 1.0
2
+ Name: data_pipeline_api
3
+ Version: 0.6.0
4
+ Summary: Interacts with SCRC data pipeline
5
+ Home-page: UNKNOWN
6
+ Author: SCRC
7
+ Author-email: scrc@glasgow.ac.uk
8
+ License: UNKNOWN
9
+ Description: UNKNOWN
10
+ Platform: UNKNOWN