labfreed 1.0.0a8__tar.gz → 1.0.0a9__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.0a8 → labfreed-1.0.0a9}/PKG-INFO +1 -1
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/__init__.py +1 -1
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/attribute_server_factory.py +2 -2
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/.github/workflows/pypi-publish.yml +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/.github/workflows/run-tests.yml +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/CHANGELOG.md +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/LICENSE +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/README.md +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/app_infrastructure.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/formatted_print.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/html_renderer/external-link.svg +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/html_renderer/macros.jinja.html +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac-info-style.css +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac_info.jinja.html +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/html_renderer/pac_info_card.jinja.html +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_extended/app/pac_info/pac_info.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/labfreed_infrastructure.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/api_data_models/request.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/api_data_models/response.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/api_data_models/server_capabilities_response.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/client/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/client/attribute_cache.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/client/client.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/excel_attribute_data_source.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/py_attributes.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/py_dict_data_source.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/server/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/server/attribute_data_sources.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/server/server.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/server/translation_data_sources.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/well_knonw_attribute_keys.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_cat/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_cat/category_base.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_cat/pac_cat.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_cat/predefined_categories.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/extension.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/id_segment.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/pac_id.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/url_parser.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id/url_serializer.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/cit_common.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/cit_v1.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/cit_v2.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/resolver.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_id_resolver/services.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/qr/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/qr/generate_qr.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/pythonic/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/pythonic/data_table.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/pythonic/pyTREX.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/pythonic/quantity.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/table_segment.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/trex.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/trex_base_models.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/trex/value_segments.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/utilities/base36.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/utilities/ensure_utc_time.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/utilities/translations.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_extensions/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_extensions/default_extension_interpreters.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_extensions/display_name_extension.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_extensions/trex_extension.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/gs1/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/gs1/gs1_ai_enum_sorted.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/labfreed/well_known_keys.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/unece/UneceUnits.json +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/unece/__init__.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/well_known_keys/unece/unece_units.py +0 -0
- {labfreed-1.0.0a8 → labfreed-1.0.0a9}/pyproject.toml +0 -0
{labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/attribute_server_factory.py
RENAMED
|
@@ -93,7 +93,7 @@ class AttributeFlaskApp(Flask):
|
|
|
93
93
|
def capabilities():
|
|
94
94
|
doc_text = current_app.config.get('DOC_TEXT', "")
|
|
95
95
|
capabilities = request_handler.capabilities()
|
|
96
|
-
authentication_required = bool(current_app.config
|
|
96
|
+
authentication_required = bool(current_app.config.get('AUTHENTICATOR'))
|
|
97
97
|
example_request = AttributeRequestPayload(pac_ids=['HTTPS://PAC.METTORIUS.COM/EXAMPLE'], language_preferences=['fr', 'de']).model_dump_json(indent=2, exclude_none=True, exclude_unset=True)
|
|
98
98
|
server_address = request.url.rstrip('/')
|
|
99
99
|
response = f'''
|
|
@@ -109,7 +109,7 @@ class AttributeFlaskApp(Flask):
|
|
|
109
109
|
<h2>How to use</h2>
|
|
110
110
|
Make a <b>POST</b> request to <a href="{server_address}">{server_address}</a> with the following body:
|
|
111
111
|
<pre>{example_request}</pre>
|
|
112
|
-
Consult
|
|
112
|
+
Consult <a href="https://github.com/ApiniLabs/PAC-Attributes"> the specification </a> for details. <br>
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
{'This server <b> requires authentication </b> ' if authentication_required else ''}
|
|
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.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/pythonic/py_dict_data_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a8 → labfreed-1.0.0a9}/labfreed/pac_attributes/server/attribute_data_sources.py
RENAMED
|
File without changes
|
|
File without changes
|
{labfreed-1.0.0a8 → labfreed-1.0.0a9}/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
|
|
File without changes
|
{labfreed-1.0.0a8 → labfreed-1.0.0a9}/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
|