labfreed 1.0.0a4__tar.gz → 1.0.0a5__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.
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/PKG-INFO +1 -1
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/__init__.py +1 -1
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_cat/predefined_categories.py +53 -4
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/.github/workflows/pypi-publish.yml +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/.github/workflows/run-tests.yml +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/CHANGELOG.md +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/LICENSE +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/README.md +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/app_infrastructure.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/formatted_print.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/html_renderer/external-link.svg +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/html_renderer/macros.jinja.html +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac-info-style.css +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac_info.jinja.html +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac_info_card.jinja.html +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_extended/app/pac_info/pac_info.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/labfreed_infrastructure.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/api_data_models/request.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/api_data_models/response.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/api_data_models/server_capabilities_response.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/client/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/client/attribute_cache.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/client/client.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/attribute_server_factory.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/excel_attribute_data_source.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/py_attributes.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/py_dict_data_source.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/attribute_data_sources.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/server.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/translation_data_sources.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/well_knonw_attribute_keys.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_cat/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_cat/category_base.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_cat/pac_cat.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/extension.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/id_segment.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/pac_id.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/url_parser.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id/url_serializer.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/cit_common.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/cit_v1.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/cit_v2.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/resolver.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_id_resolver/services.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/qr/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/qr/generate_qr.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/pythonic/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/pythonic/data_table.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/pythonic/pyTREX.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/pythonic/quantity.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/table_segment.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/trex.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/trex_base_models.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/trex/value_segments.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/utilities/base36.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/utilities/ensure_utc_time.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/utilities/translations.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_extensions/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_extensions/default_extension_interpreters.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_extensions/display_name_extension.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_extensions/trex_extension.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/gs1/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/gs1/gs1_ai_enum_sorted.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/labfreed/well_known_keys.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/unece/UneceUnits.json +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/unece/__init__.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_keys/unece/unece_units.py +0 -0
- {labfreed-1.0.0a4 → labfreed-1.0.0a5}/pyproject.toml +0 -0
|
@@ -116,9 +116,9 @@ class Material_Consumable(PredefinedCategory):
|
|
|
116
116
|
return self
|
|
117
117
|
|
|
118
118
|
class Material_Misc(Material_Consumable):
|
|
119
|
-
'''Represents the -
|
|
119
|
+
'''Represents the -MX category'''
|
|
120
120
|
# same fields as Consumable
|
|
121
|
-
key: str = Field(default='-
|
|
121
|
+
key: str = Field(default='-MX', frozen=True)
|
|
122
122
|
product_number:str|None = Field( alias='240')
|
|
123
123
|
batch_number:str|None = Field(default=None, alias='10')
|
|
124
124
|
packaging_size:str|None = Field(default=None, alias='20')
|
|
@@ -187,15 +187,64 @@ class Data_Static(Data_Abstract):
|
|
|
187
187
|
additional_segments: list[IDSegment] = Field(default_factory=list, exclude=True)
|
|
188
188
|
''' Category segments, which are not defined in the specification'''
|
|
189
189
|
|
|
190
|
+
class Data_Misc(Data_Abstract):
|
|
191
|
+
'''Represents the -DX category'''
|
|
192
|
+
key: str = Field(default='-DX', frozen=True)
|
|
193
|
+
id:str|None = Field( alias='21')
|
|
194
|
+
additional_segments: list[IDSegment] = Field(default_factory=list, exclude=True)
|
|
195
|
+
''' Category segments, which are not defined in the specification'''
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class Processor_Abstract(PredefinedCategory, ABC):
|
|
201
|
+
'''@private'''
|
|
202
|
+
key: str
|
|
203
|
+
processor_instance:str|None = Field( alias='21')
|
|
204
|
+
processor_code:str|None = Field( alias='240')
|
|
205
|
+
|
|
206
|
+
additional_segments: list[IDSegment] = Field(default_factory=list, exclude=True)
|
|
207
|
+
''' Category segments, which are not defined in the specification'''
|
|
208
|
+
|
|
209
|
+
@model_validator(mode='after')
|
|
210
|
+
def _validate_mandatory_fields(self):
|
|
211
|
+
if not self.id:
|
|
212
|
+
self._add_validation_message(
|
|
213
|
+
source=f"Category {self.key}",
|
|
214
|
+
level = ValidationMsgLevel.ERROR,
|
|
215
|
+
msg=f"Category key {self.key} is missing mandatory field 'processor instance'",
|
|
216
|
+
highlight_pattern = f"{self.key}"
|
|
217
|
+
)
|
|
218
|
+
return self
|
|
219
|
+
|
|
220
|
+
class Processor_Software(Processor_Abstract):
|
|
221
|
+
'''Represents the -PS category'''
|
|
222
|
+
key: str = Field(default='-PS', frozen=True)
|
|
223
|
+
processor_instance:str|None = Field( alias='21')
|
|
224
|
+
processor_code:str|None = Field( alias='240')
|
|
225
|
+
additional_segments: list[IDSegment] = Field(default_factory=list, exclude=True)
|
|
226
|
+
''' Category segments, which are not defined in the specification'''
|
|
227
|
+
|
|
228
|
+
class Processor_Misc(Processor_Abstract):
|
|
229
|
+
'''Represents the -PX category'''
|
|
230
|
+
key: str = Field(default='-PX', frozen=True)
|
|
231
|
+
processor_instance:str|None = Field( alias='21')
|
|
232
|
+
processor_code:str|None = Field( alias='240')
|
|
233
|
+
additional_segments: list[IDSegment] = Field(default_factory=list, exclude=True)
|
|
234
|
+
''' Category segments, which are not defined in the specification'''
|
|
235
|
+
|
|
190
236
|
|
|
191
237
|
category_key_to_class_map = {
|
|
192
238
|
'-MD': Material_Device,
|
|
193
239
|
'-MS': Material_Substance,
|
|
194
240
|
'-MC': Material_Consumable,
|
|
195
|
-
'-
|
|
241
|
+
'-MX': Material_Misc,
|
|
196
242
|
'-DM': Data_Method,
|
|
197
243
|
'-DR': Data_Result,
|
|
198
244
|
'-DC': Data_Calibration,
|
|
199
245
|
'-DP': Data_Progress,
|
|
200
|
-
'-DS': Data_Static
|
|
246
|
+
'-DS': Data_Static,
|
|
247
|
+
'-DX': Data_Misc,
|
|
248
|
+
'-PS': Processor_Software,
|
|
249
|
+
'-PX': Processor_Misc
|
|
201
250
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/attribute_server_factory.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/pythonic/py_dict_data_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/attribute_data_sources.py
RENAMED
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/pac_attributes/server/translation_data_sources.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a4 → labfreed-1.0.0a5}/labfreed/well_known_extensions/display_name_extension.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|