iris-pex-embedded-python 4.0.0b15__tar.gz → 4.0.1b2__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.
- {iris_pex_embedded_python-4.0.0b15/src/iris_pex_embedded_python.egg-info → iris_pex_embedded_python-4.0.1b2}/PKG-INFO +30 -6
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/README.md +29 -5
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/agents-template.md +23 -2
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/ai-coding.md +8 -6
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/command-line.md +10 -1
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/component-interaction.md +44 -27
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/add-polling-service.md +4 -2
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/code-index.md +23 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/hello-world-production.md +2 -1
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/index.md +5 -1
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/example.md +32 -17
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/getting-started/first-steps.md +5 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/getting-started/register-component.md +11 -3
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/production-graph.md +2 -1
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/python-api.md +36 -24
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/settings.md +59 -9
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/pyproject.toml +1 -1
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/__init__.py +2 -2
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/business_service.py +12 -16
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/migration/utils.py +43 -17
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2/src/iris_pex_embedded_python.egg-info}/PKG-INFO +30 -6
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/AGENTS.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/LICENSE +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/MANIFEST.in +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/benchmarks.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/changelog.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/code-of-conduct.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/contributing.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/add-business-operation.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/add-business-process.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/fhir-submission-python-client.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/hl7v2-native-input.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/hl7v2-to-fhir-with-fhir-converter.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/production-settings-and-targets.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/remote-migration.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/credits.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/debug.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/dtl.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/getting-started/installation.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/healthcare-ai-coding.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/index.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/logging.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/prod-settings.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/production-change-workflow.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/rest-api.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/useful-links.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/venv.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/wrapper.md +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/mkdocs.yml +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/setup.cfg +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/__main__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cli/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cli/formatting.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cli/main.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cli/parser.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cli/types.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/BusinessOperation.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/BusinessProcess.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/BusinessService.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Common.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Director.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Duplex/Operation.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Duplex/Process.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Duplex/Service.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Generator/Message/Ack.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Generator/Message/Poll.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Generator/Message/Start.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Generator/Message/StartPickle.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Generator/Message/Stop.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/InboundAdapter.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Message/JSONSchema.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Message.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/OutboundAdapter.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PickleMessage.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PrivateSession/Duplex.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PrivateSession/Message/Ack.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PrivateSession/Message/Poll.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PrivateSession/Message/Start.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/PrivateSession/Message/Stop.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Projection.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Service/Remote/Handler.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Service/Remote/Rest/v1.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Test.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Utils.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/cls/IOP/Wrapper.cls +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/async_request.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/business_host.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/business_operation.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/business_process.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/common.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/debugpy.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/generator_request.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/inbound_adapter.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/log_manager.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/outbound_adapter.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/polling_business_service.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/private_session_duplex.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/private_session_process.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/components/settings.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/base.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/decorators.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/dispatch.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/persistent.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/serialization.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/messages/validation.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/migration/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/migration/io.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/migration/manifest.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/migration/plans.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/actions.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/common.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/component.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/declarations.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/declarative.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/diff.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/import_.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/inspection.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/model.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/planning.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/reconstruction.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/rendering.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/runtime.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/source_inference.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/types.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/production/validation.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/director.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/environment.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/iris.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/local.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/protocol.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/__init__.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/client.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/director.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/migration.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/settings.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iop/runtime/remote/setup.py +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iris_pex_embedded_python.egg-info/SOURCES.txt +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iris_pex_embedded_python.egg-info/dependency_links.txt +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iris_pex_embedded_python.egg-info/entry_points.txt +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iris_pex_embedded_python.egg-info/requires.txt +0 -0
- {iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/src/iris_pex_embedded_python.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: iris_pex_embedded_python
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.1b2
|
|
4
4
|
Summary: Iris Interoperability based on Embedded Python
|
|
5
5
|
Author-email: grongier <guillaume.rongier@intersystems.com>
|
|
6
6
|
License: MIT License
|
|
@@ -69,14 +69,38 @@ For application repositories, start from the [reusable AGENTS.md template](https
|
|
|
69
69
|
|
|
70
70
|
## Example
|
|
71
71
|
|
|
72
|
-
Here's a
|
|
72
|
+
Here's a tiny Python-authored production:
|
|
73
73
|
|
|
74
74
|
```python
|
|
75
|
-
from
|
|
75
|
+
from dataclasses import dataclass
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
from iop import BusinessOperation, Message, PollingBusinessService, Production, target
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@dataclass
|
|
81
|
+
class HelloRequest(Message):
|
|
82
|
+
text: str = "Hello World"
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class HelloService(PollingBusinessService):
|
|
86
|
+
Output = target()
|
|
87
|
+
|
|
88
|
+
def on_poll(self):
|
|
89
|
+
self.send_request_async(self.Output, HelloRequest())
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class HelloOperation(BusinessOperation):
|
|
93
|
+
def on_message(self, request: HelloRequest):
|
|
94
|
+
self.log_info(request.text)
|
|
95
|
+
return request
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
prod = Production("HelloWorld.Production", testing_enabled=True)
|
|
99
|
+
service = prod.service("HelloService", HelloService)
|
|
100
|
+
operation = prod.operation("HelloOperation", HelloOperation)
|
|
101
|
+
prod.connect(service.Output, operation)
|
|
102
|
+
|
|
103
|
+
PRODUCTIONS = [prod]
|
|
80
104
|
```
|
|
81
105
|
|
|
82
106
|
## Installation
|
|
@@ -15,14 +15,38 @@ For application repositories, start from the [reusable AGENTS.md template](https
|
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
|
-
Here's a
|
|
18
|
+
Here's a tiny Python-authored production:
|
|
19
19
|
|
|
20
20
|
```python
|
|
21
|
-
from
|
|
21
|
+
from dataclasses import dataclass
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
from iop import BusinessOperation, Message, PollingBusinessService, Production, target
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass
|
|
27
|
+
class HelloRequest(Message):
|
|
28
|
+
text: str = "Hello World"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class HelloService(PollingBusinessService):
|
|
32
|
+
Output = target()
|
|
33
|
+
|
|
34
|
+
def on_poll(self):
|
|
35
|
+
self.send_request_async(self.Output, HelloRequest())
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class HelloOperation(BusinessOperation):
|
|
39
|
+
def on_message(self, request: HelloRequest):
|
|
40
|
+
self.log_info(request.text)
|
|
41
|
+
return request
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
prod = Production("HelloWorld.Production", testing_enabled=True)
|
|
45
|
+
service = prod.service("HelloService", HelloService)
|
|
46
|
+
operation = prod.operation("HelloOperation", HelloOperation)
|
|
47
|
+
prod.connect(service.Output, operation)
|
|
48
|
+
|
|
49
|
+
PRODUCTIONS = [prod]
|
|
26
50
|
```
|
|
27
51
|
|
|
28
52
|
## Installation
|
{iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/agents-template.md
RENAMED
|
@@ -53,6 +53,21 @@ Update this list for the local project:
|
|
|
53
53
|
- `tests/`: local test suite.
|
|
54
54
|
- `data/` or `samples/`: example payloads.
|
|
55
55
|
|
|
56
|
+
## settings.py Import Rules
|
|
57
|
+
|
|
58
|
+
- Treat the directory containing `settings.py` as the project import root for
|
|
59
|
+
migration.
|
|
60
|
+
- Import production graph, message, and component modules from paths reachable
|
|
61
|
+
relative to `settings.py`.
|
|
62
|
+
- If `production.py` is next to `settings.py`, use
|
|
63
|
+
`from production import prod`.
|
|
64
|
+
- If the application is packaged under a directory next to `settings.py`, use
|
|
65
|
+
package imports such as `from myapp.production import prod`.
|
|
66
|
+
- Do not ask users to set `PYTHONPATH` to make migration imports work.
|
|
67
|
+
- Do not patch `os.environ["PYTHONPATH"]` or global `sys.path` in application
|
|
68
|
+
code to hide import problems.
|
|
69
|
+
- Fix import errors by changing the project layout or import statements.
|
|
70
|
+
|
|
56
71
|
## IoP Rules
|
|
57
72
|
|
|
58
73
|
- Prefer a Python `Production` object exported through `PRODUCTIONS`.
|
|
@@ -64,8 +79,8 @@ Update this list for the local project:
|
|
|
64
79
|
- Use `@dataclass` on regular `Message` classes. Do not decorate
|
|
65
80
|
`PydanticMessage` classes with `@dataclass`.
|
|
66
81
|
- Use `PersistentMessage` only when IRIS needs a native persistent message body.
|
|
67
|
-
-
|
|
68
|
-
graph.
|
|
82
|
+
- Put new graph components in `PRODUCTIONS`; avoid raw `CLASSES` entries for
|
|
83
|
+
components already declared in the production graph.
|
|
69
84
|
- Keep executable sample code behind `if __name__ == "__main__":` when it lives
|
|
70
85
|
in a migration file.
|
|
71
86
|
|
|
@@ -76,6 +91,8 @@ Update this list for the local project:
|
|
|
76
91
|
`submit_order(self, request: OrderRequest)`.
|
|
77
92
|
- Use `@handler(MessageType)` when the handler should be explicit or the type
|
|
78
93
|
annotation is not enough.
|
|
94
|
+
- Avoid explicit `DISPATCH` entries in new code; treat them as legacy or
|
|
95
|
+
advanced compatibility hooks.
|
|
79
96
|
- Avoid duplicate handlers for the same message type unless the intended
|
|
80
97
|
precedence is clear.
|
|
81
98
|
|
|
@@ -115,6 +132,10 @@ iop --migrate settings.py --dry-run
|
|
|
115
132
|
iop --migrate settings.py
|
|
116
133
|
```
|
|
117
134
|
|
|
135
|
+
Do not use `iop --test` as the normal way to test Business Services. Test
|
|
136
|
+
services through the runtime director or production runtime API so the deployed
|
|
137
|
+
production context, component settings, and configured targets are used.
|
|
138
|
+
|
|
118
139
|
If this repository uses Docker or Compose, add the exact command here:
|
|
119
140
|
|
|
120
141
|
```bash
|
|
@@ -10,24 +10,26 @@ Ask the tool to read the project guidance before it writes code:
|
|
|
10
10
|
```text
|
|
11
11
|
You are helping me build an IoP application.
|
|
12
12
|
Read these files first:
|
|
13
|
-
- AGENTS.md
|
|
13
|
+
- local AGENTS.md, if this application repository has one
|
|
14
14
|
- docs/ai-coding.md
|
|
15
15
|
- docs/cookbooks/index.md
|
|
16
|
+
- docs/cookbooks/code-index.md, when starting from source code
|
|
16
17
|
- docs/getting-started/first-steps.md
|
|
17
18
|
- docs/getting-started/register-component.md
|
|
18
19
|
- docs/production-graph.md
|
|
19
20
|
|
|
20
21
|
Use the Python Production graph workflow for new applications.
|
|
21
22
|
Do not put component startup logic in __init__(); use on_init().
|
|
23
|
+
Treat the directory containing settings.py as the project import root.
|
|
24
|
+
Import production modules relative to settings.py; do not modify PYTHONPATH.
|
|
25
|
+
Do not use iop --test to test Business Services; use the runtime director.
|
|
22
26
|
Use the relevant cookbook for the task.
|
|
23
27
|
Show the migration and verification commands.
|
|
24
28
|
```
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
For your own IoP application repository, copy the
|
|
30
|
+
The IoP framework repository root `AGENTS.md` is for framework source
|
|
31
|
+
development, not application guidance. For your own IoP application repository,
|
|
32
|
+
copy the
|
|
31
33
|
[reusable AGENTS.md template](agents-template.md) into the project root and
|
|
32
34
|
adapt it to the local production. For healthcare projects, also read
|
|
33
35
|
[Healthcare AI-assisted coding](healthcare-ai-coding.md).
|
|
@@ -209,6 +209,10 @@ The plan uses the same sections as the migration file: `CLASSES`, `SCHEMAS`,
|
|
|
209
209
|
components or `PersistentMessage` classes. Migration output includes the mode,
|
|
210
210
|
namespace, and a final `Migration succeeded` line when the migration completes.
|
|
211
211
|
|
|
212
|
+
For new Python-authored production components, prefer `Production` objects in
|
|
213
|
+
`PRODUCTIONS`; use `CLASSES` for standalone bindings, native
|
|
214
|
+
`PersistentMessage` classes, and legacy migration files.
|
|
215
|
+
|
|
212
216
|
Production validation warns by default. Pass `--strict-production-validation`
|
|
213
217
|
to fail the dry-run or migration when validation reports an issue:
|
|
214
218
|
|
|
@@ -377,7 +381,12 @@ python3 -m pip install "iris-persistence>=0.1.0"
|
|
|
377
381
|
|
|
378
382
|
## test
|
|
379
383
|
|
|
380
|
-
The test command
|
|
384
|
+
The test command is a low-level helper for testing IoP components. You can
|
|
385
|
+
optionally specify a test name, classname, and body.
|
|
386
|
+
|
|
387
|
+
Do not use `iop --test` as the normal way to test Business Services. Test
|
|
388
|
+
services through the runtime director or production runtime API so the deployed
|
|
389
|
+
production context, component settings, and configured targets are used.
|
|
381
390
|
|
|
382
391
|
Basic test:
|
|
383
392
|
```bash
|
{iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/component-interaction.md
RENAMED
|
@@ -27,6 +27,11 @@ To exchange messages between components, you can use the following methods:
|
|
|
27
27
|
- `send_multi_request_sync`: This method is used to send multiple requests synchronously. It will wait for all responses before continuing.
|
|
28
28
|
- `send_generator_request`: This method is used to send a request synchronously and return a generator.
|
|
29
29
|
|
|
30
|
+
For new Python-authored productions, pass a `target()` attribute such as
|
|
31
|
+
`self.Output` to these methods and connect it in the `Production` graph with
|
|
32
|
+
`prod.connect(...)`. Hard-coded target component names are mainly for legacy or
|
|
33
|
+
manual code.
|
|
34
|
+
|
|
30
35
|
## send_request_sync
|
|
31
36
|
|
|
32
37
|
This method is used to send a request synchronously. It will wait for a response before continuing.
|
|
@@ -34,12 +39,12 @@ This method is used to send a request synchronously. It will wait for a response
|
|
|
34
39
|
### Function signature
|
|
35
40
|
|
|
36
41
|
```python
|
|
37
|
-
def send_request_sync(self, target: str, request: Union[Message, Any],
|
|
42
|
+
def send_request_sync(self, target: str | TargetSettingRef, request: Union[Message, Any],
|
|
38
43
|
timeout: int = -1, description: Optional[str] = None) -> Any:
|
|
39
44
|
"""Send message synchronously to target component.
|
|
40
45
|
|
|
41
46
|
Args:
|
|
42
|
-
target:
|
|
47
|
+
target: Target setting reference such as self.Output, or a target component name for legacy/manual code
|
|
43
48
|
request: Message to send
|
|
44
49
|
timeout: Timeout in seconds, -1 means wait forever
|
|
45
50
|
description: Optional description for logging
|
|
@@ -56,15 +61,16 @@ def send_request_sync(self, target: str, request: Union[Message, Any],
|
|
|
56
61
|
### Example usage
|
|
57
62
|
|
|
58
63
|
```python
|
|
59
|
-
from iop import BusinessProcess
|
|
64
|
+
from iop import BusinessProcess, target
|
|
60
65
|
from msg import MyMessage
|
|
61
66
|
|
|
62
67
|
class MyBP(BusinessProcess):
|
|
68
|
+
Output = target()
|
|
63
69
|
|
|
64
70
|
def on_message(self, request):
|
|
65
71
|
msg = MyMessage(message="Hello World")
|
|
66
72
|
# Send a synchronous request to the target component
|
|
67
|
-
response = self.send_request_sync(
|
|
73
|
+
response = self.send_request_sync(self.Output, msg)
|
|
68
74
|
self.log_info(f"Received response: {response}")
|
|
69
75
|
```
|
|
70
76
|
|
|
@@ -75,12 +81,12 @@ This method is used to send a request asynchronously. It will not wait for a res
|
|
|
75
81
|
### Function signature (for BusinessService and BusinessOperation)
|
|
76
82
|
|
|
77
83
|
```python
|
|
78
|
-
def send_request_async(self, target: str, request: Union[Message, Any],
|
|
84
|
+
def send_request_async(self, target: str | TargetSettingRef, request: Union[Message, Any],
|
|
79
85
|
description: Optional[str] = None) -> None:
|
|
80
86
|
"""Send message asynchronously to target component.
|
|
81
87
|
|
|
82
88
|
Args:
|
|
83
|
-
target:
|
|
89
|
+
target: Target setting reference such as self.Output, or a target component name for legacy/manual code
|
|
84
90
|
request: Message to send
|
|
85
91
|
description: Optional description for logging
|
|
86
92
|
|
|
@@ -93,15 +99,16 @@ def send_request_async(self, target: str, request: Union[Message, Any],
|
|
|
93
99
|
### Example usage (for BusinessService and BusinessOperation)
|
|
94
100
|
|
|
95
101
|
```python
|
|
96
|
-
from iop import BusinessService
|
|
102
|
+
from iop import BusinessService, target
|
|
97
103
|
from msg import MyMessage
|
|
98
104
|
|
|
99
105
|
class MyBS(BusinessService):
|
|
106
|
+
Output = target()
|
|
100
107
|
|
|
101
108
|
def on_message(self, request):
|
|
102
109
|
msg = MyMessage(message="Hello World")
|
|
103
110
|
# Send an asynchronous request to the target component
|
|
104
|
-
self.send_request_async(
|
|
111
|
+
self.send_request_async(self.Output, msg)
|
|
105
112
|
self.log_info("Request sent asynchronously")
|
|
106
113
|
```
|
|
107
114
|
|
|
@@ -111,11 +118,11 @@ directly. For regular message-driven services, prefer `on_message()`.
|
|
|
111
118
|
### Function signature (for BusinessProcess)
|
|
112
119
|
|
|
113
120
|
```python
|
|
114
|
-
def send_request_async(self, target: str, request: Any, description: Optional[str]=None, completion_key: Optional[str]=None, response_required: bool=True) -> None:
|
|
121
|
+
def send_request_async(self, target: str | TargetSettingRef, request: Any, description: Optional[str]=None, completion_key: Optional[str]=None, response_required: bool=True) -> None:
|
|
115
122
|
"""Send the specified message to the target business process or business operation asynchronously.
|
|
116
123
|
|
|
117
124
|
Args:
|
|
118
|
-
target:
|
|
125
|
+
target: Target setting reference such as self.Output, or a target component name for legacy/manual code
|
|
119
126
|
request: The message to send to the target
|
|
120
127
|
description: An optional description property in the message header
|
|
121
128
|
completion_key: A token to identify the completion of the request
|
|
@@ -130,17 +137,18 @@ def send_request_async(self, target: str, request: Any, description: Optional[st
|
|
|
130
137
|
### Example usage (for BusinessProcess)
|
|
131
138
|
|
|
132
139
|
```python
|
|
133
|
-
from iop import BusinessProcess
|
|
140
|
+
from iop import BusinessProcess, target
|
|
134
141
|
from msg import MyMessage
|
|
135
142
|
|
|
136
143
|
class MyBP(BusinessProcess):
|
|
144
|
+
Output = target()
|
|
137
145
|
|
|
138
146
|
def on_message(self, request):
|
|
139
147
|
msg_one = MyMessage(message="Message1")
|
|
140
148
|
msg_two = MyMessage(message="Message2")
|
|
141
149
|
|
|
142
|
-
self.send_request_async(
|
|
143
|
-
self.send_request_async(
|
|
150
|
+
self.send_request_async(self.Output, msg_one, completion_key="1")
|
|
151
|
+
self.send_request_async(self.Output, msg_two, completion_key="2")
|
|
144
152
|
|
|
145
153
|
def on_response(self, request, response, call_request, call_response, completion_key):
|
|
146
154
|
if completion_key == "1":
|
|
@@ -160,12 +168,12 @@ This method is used to send a request asynchronously using an asyncio implementa
|
|
|
160
168
|
### Function signature
|
|
161
169
|
|
|
162
170
|
```python
|
|
163
|
-
async def send_request_async_ng(self, target: str, request: Union[Message, Any],
|
|
171
|
+
async def send_request_async_ng(self, target: str | TargetSettingRef, request: Union[Message, Any],
|
|
164
172
|
timeout: int = -1, description: Optional[str] = None) -> Any:
|
|
165
173
|
"""Send message asynchronously to target component with asyncio.
|
|
166
174
|
|
|
167
175
|
Args:
|
|
168
|
-
target:
|
|
176
|
+
target: Target setting reference such as self.Output, or a target component name for legacy/manual code
|
|
169
177
|
request: Message to send
|
|
170
178
|
timeout: Timeout in seconds, -1 means wait forever
|
|
171
179
|
description: Optional description for logging
|
|
@@ -182,11 +190,12 @@ async def send_request_async_ng(self, target: str, request: Union[Message, Any],
|
|
|
182
190
|
import asyncio
|
|
183
191
|
import random
|
|
184
192
|
|
|
185
|
-
from iop import BusinessProcess
|
|
193
|
+
from iop import BusinessProcess, target
|
|
186
194
|
from msg import MyMessage
|
|
187
195
|
|
|
188
196
|
|
|
189
197
|
class MyAsyncNGBP(BusinessProcess):
|
|
198
|
+
Output = target()
|
|
190
199
|
|
|
191
200
|
def on_message(self, request):
|
|
192
201
|
|
|
@@ -201,8 +210,12 @@ class MyAsyncNGBP(BusinessProcess):
|
|
|
201
210
|
# create 1 to 10 messages
|
|
202
211
|
tasks = []
|
|
203
212
|
for i in range(random.randint(1, 10)):
|
|
204
|
-
tasks.append(
|
|
205
|
-
|
|
213
|
+
tasks.append(
|
|
214
|
+
self.send_request_async_ng(
|
|
215
|
+
self.Output,
|
|
216
|
+
MyMessage(message=f"Message {i}"),
|
|
217
|
+
)
|
|
218
|
+
)
|
|
206
219
|
|
|
207
220
|
return await asyncio.gather(*tasks)
|
|
208
221
|
|
|
@@ -215,12 +228,12 @@ This method is used to send multiple requests synchronously. It will wait for al
|
|
|
215
228
|
### Function signature
|
|
216
229
|
|
|
217
230
|
```python
|
|
218
|
-
def send_multi_request_sync(self, target_request: List[Tuple[str, Union[Message, Any]]],
|
|
231
|
+
def send_multi_request_sync(self, target_request: List[Tuple[str | TargetSettingRef, Union[Message, Any]]],
|
|
219
232
|
timeout: int = -1, description: Optional[str] = None) -> List[Tuple[str, Union[Message, Any], Any, int]]:
|
|
220
233
|
"""Send multiple messages synchronously to target components.
|
|
221
234
|
|
|
222
235
|
Args:
|
|
223
|
-
target_request: List of tuples (target, request) to send
|
|
236
|
+
target_request: List of tuples (target setting reference or legacy target name, request) to send
|
|
224
237
|
timeout: Timeout in seconds, -1 means wait forever
|
|
225
238
|
description: Optional description for logging
|
|
226
239
|
|
|
@@ -237,18 +250,21 @@ def send_multi_request_sync(self, target_request: List[Tuple[str, Union[Message,
|
|
|
237
250
|
### Example usage
|
|
238
251
|
|
|
239
252
|
```python
|
|
240
|
-
from iop import BusinessProcess
|
|
253
|
+
from iop import BusinessProcess, target
|
|
241
254
|
from msg import MyMessage
|
|
242
255
|
|
|
243
256
|
|
|
244
257
|
class MyMultiBP(BusinessProcess):
|
|
258
|
+
Output = target()
|
|
245
259
|
|
|
246
260
|
def on_message(self, request):
|
|
247
261
|
msg_one = MyMessage(message="Message1")
|
|
248
262
|
msg_two = MyMessage(message="Message2")
|
|
249
263
|
|
|
250
|
-
tuple_responses = self.send_multi_request_sync([
|
|
251
|
-
|
|
264
|
+
tuple_responses = self.send_multi_request_sync([
|
|
265
|
+
(self.Output, msg_one),
|
|
266
|
+
(self.Output, msg_two),
|
|
267
|
+
])
|
|
252
268
|
|
|
253
269
|
self.log_info("All requests have been processed")
|
|
254
270
|
for target,request,response,status in tuple_responses:
|
|
@@ -262,11 +278,11 @@ This method is used to send a request synchronously and return a generator.
|
|
|
262
278
|
### Function signature
|
|
263
279
|
|
|
264
280
|
```python
|
|
265
|
-
def send_generator_request(self, target: str, request: Union[Message, Any],
|
|
281
|
+
def send_generator_request(self, target: str | TargetSettingRef, request: Union[Message, Any],
|
|
266
282
|
timeout: int = -1, description: Optional[str] = None) -> _GeneratorRequest:
|
|
267
283
|
"""Send message as a generator request to target component.
|
|
268
284
|
Args:
|
|
269
|
-
target:
|
|
285
|
+
target: Target setting reference such as self.Output, or a target component name for legacy/manual code
|
|
270
286
|
request: Message to send
|
|
271
287
|
timeout: Timeout in seconds, -1 means wait forever
|
|
272
288
|
description: Optional description for logging
|
|
@@ -282,15 +298,16 @@ This method is used to send a request synchronously and return a generator.
|
|
|
282
298
|
|
|
283
299
|
```python
|
|
284
300
|
from typing import Any
|
|
285
|
-
from iop import BusinessProcess,
|
|
301
|
+
from iop import BusinessOperation, BusinessProcess, target
|
|
286
302
|
|
|
287
303
|
from msg import MyGenerator,MyGeneratorResponse
|
|
288
304
|
|
|
289
305
|
class MyGeneratorProcess(BusinessProcess):
|
|
306
|
+
Output = target()
|
|
290
307
|
|
|
291
308
|
def on_request(self, request: Any) -> Any:
|
|
292
309
|
gen = self.send_generator_request(
|
|
293
|
-
target=
|
|
310
|
+
target=self.Output,
|
|
294
311
|
request=MyGenerator(my_string="Hello, World!"),
|
|
295
312
|
timeout=10,
|
|
296
313
|
description="My generator request")
|
|
@@ -31,6 +31,8 @@ Implementation requirements:
|
|
|
31
31
|
- Do not put startup code in __init__(); use on_init() only if required.
|
|
32
32
|
- Update settings.py to add the service and connect service.Output to the
|
|
33
33
|
destination component.
|
|
34
|
+
- Do not use iop --test to test the service; use the runtime director or
|
|
35
|
+
production runtime API for service tests.
|
|
34
36
|
- Include migration dry-run and verification commands.
|
|
35
37
|
```
|
|
36
38
|
|
|
@@ -68,7 +70,8 @@ iop --migrate settings.py
|
|
|
68
70
|
- Dry-run migration shows the service, target setting, and destination
|
|
69
71
|
component.
|
|
70
72
|
- Unit tests cover any pure Python polling decisions or message construction.
|
|
71
|
-
- Runtime verification confirms `on_poll()` emits the expected message
|
|
73
|
+
- Runtime verification confirms `on_poll()` emits the expected message through
|
|
74
|
+
the deployed production context.
|
|
72
75
|
|
|
73
76
|
## Common Mistakes
|
|
74
77
|
|
|
@@ -76,4 +79,3 @@ iop --migrate settings.py
|
|
|
76
79
|
services.
|
|
77
80
|
- Forgetting to connect `service.Output` to the destination.
|
|
78
81
|
- Putting long-lived connection setup in `__init__()` instead of `on_init()`.
|
|
79
|
-
|
{iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/code-index.md
RENAMED
|
@@ -31,6 +31,8 @@ the fuller cookbook workflows.
|
|
|
31
31
|
| `src/iop/messages/base.py` | Python-only message contracts |
|
|
32
32
|
| `src/iop/messages/persistent.py` | Native persistent IRIS message contracts |
|
|
33
33
|
| `src/iop/messages/dispatch.py` | `@handler`, typed method dispatch, fallback `on_message()` |
|
|
34
|
+
| `src/iop/components/common.py` | component lifecycle hooks such as `on_init()` and `on_tear_down()` |
|
|
35
|
+
| `src/iop/components/business_host.py` | shared `send_request_sync(...)` and `send_request_async(...)` helpers |
|
|
34
36
|
| `src/iop/components/business_process.py` | process runtime hooks and request helpers |
|
|
35
37
|
| `src/iop/components/business_operation.py` | operation runtime dispatch |
|
|
36
38
|
| `src/iop/components/business_service.py` | service `on_message()` and `on_process_input()` hooks |
|
|
@@ -48,6 +50,10 @@ to:
|
|
|
48
50
|
Use `@handler(MessageType)` when the handler must be explicit. Use typed
|
|
49
51
|
one-argument methods when annotations are enough.
|
|
50
52
|
|
|
53
|
+
Explicit `DISPATCH` entries are still supported for legacy and advanced code,
|
|
54
|
+
but new application code should prefer `@handler(MessageType)` or typed
|
|
55
|
+
one-argument methods.
|
|
56
|
+
|
|
51
57
|
## Message Quick Reference
|
|
52
58
|
|
|
53
59
|
Use `@dataclass` with regular `Message` classes:
|
|
@@ -70,6 +76,23 @@ When starting from source code, build applications through public imports from
|
|
|
70
76
|
`iop` and a `Production` graph. Do not copy internal runtime classes such as
|
|
71
77
|
`_BusinessHost` into application code; use them only to understand behavior.
|
|
72
78
|
|
|
79
|
+
## settings.py Import Quick Reference
|
|
80
|
+
|
|
81
|
+
Treat the directory containing `settings.py` as the project import root for
|
|
82
|
+
migration. Import the production graph, messages, and components from modules
|
|
83
|
+
reachable relative to that file, such as `from production import prod` or
|
|
84
|
+
`from myapp.production import prod`.
|
|
85
|
+
|
|
86
|
+
Do not set `PYTHONPATH`, patch `os.environ["PYTHONPATH"]`, or mutate global
|
|
87
|
+
`sys.path` in application code to make migration imports pass. Fix the package
|
|
88
|
+
layout or import statements instead.
|
|
89
|
+
|
|
90
|
+
## Runtime Test Quick Reference
|
|
91
|
+
|
|
92
|
+
Do not use `iop --test` as the normal way to test Business Services. Test
|
|
93
|
+
services through the runtime director or production runtime API so the deployed
|
|
94
|
+
production context, component settings, and configured targets are used.
|
|
95
|
+
|
|
73
96
|
## Healthcare Add-on
|
|
74
97
|
|
|
75
98
|
If the code or task mentions HL7v2, FHIR, Health Connect, FHIR bundles, MLLP,
|
|
@@ -28,6 +28,8 @@ Requirements:
|
|
|
28
28
|
the operation.
|
|
29
29
|
- Export PRODUCTIONS = [prod].
|
|
30
30
|
- Do not use __init__() for component startup.
|
|
31
|
+
- Do not use iop --test to test HelloService; use the runtime director or
|
|
32
|
+
production runtime API for service tests.
|
|
31
33
|
- Show the migration dry-run command and the command to run the production
|
|
32
34
|
migration.
|
|
33
35
|
```
|
|
@@ -99,4 +101,3 @@ iop --migrate settings.py
|
|
|
99
101
|
`Production` graph.
|
|
100
102
|
- Calling `HelloOperation` directly from `HelloService` instead of sending a
|
|
101
103
|
message through the production target.
|
|
102
|
-
|
{iris_pex_embedded_python-4.0.0b15 → iris_pex_embedded_python-4.0.1b2}/docs/cookbooks/index.md
RENAMED
|
@@ -7,9 +7,13 @@ Before using a cookbook, give the assistant this context:
|
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
9
|
You are helping me build an IoP application.
|
|
10
|
-
Read AGENTS.md, settings.py, and the
|
|
10
|
+
Read local AGENTS.md if this application has one, settings.py, and the
|
|
11
|
+
relevant cookbook before changing code.
|
|
11
12
|
Use the Python Production graph workflow for new applications.
|
|
12
13
|
Do not put component startup logic in __init__(); use on_init().
|
|
14
|
+
Treat the directory containing settings.py as the project import root.
|
|
15
|
+
Import production modules relative to settings.py; do not modify PYTHONPATH.
|
|
16
|
+
Do not use iop --test to test Business Services; use the runtime director.
|
|
13
17
|
Show the migration and verification commands.
|
|
14
18
|
```
|
|
15
19
|
|