pyplaykit 1.46.0__tar.gz → 1.47.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.
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/CHANGELOG.md +19 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/MANIFEST.in +2 -0
- {pyplaykit-1.46.0/pyplaykit.egg-info → pyplaykit-1.47.0}/PKG-INFO +3 -2
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/README.md +2 -1
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/devices.yaml +34 -2
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/demo/device_lab/README.md +17 -9
- pyplaykit-1.47.0/demo/dispensing_lab/README.md +72 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/_aliases.py +33 -6
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/http.py +3 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/mqtt.py +5 -2
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/host.py +4 -1
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twin.py +19 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0/pyplaykit.egg-info}/PKG-INFO +3 -2
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit.egg-info/SOURCES.txt +1 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyproject.toml +1 -1
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/.github/copilot-instructions.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/.github/prompts/review-execution-plan-and-implement-next-task.prompt.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/.github/prompts/run-unit-tests-and-coverage.prompt.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/.github/prompts/security-audit-and-consolidated-report.prompt.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/CHOOSE_YOUR_STRUCTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/CLAUDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/COLUMN_MAPPING_AND_IGNORE_FIELDS_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/COMMANDS_FOR_YOUR_PROJECTS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/COMMIT_SUMMARY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/CONTRIBUTING.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/CORRECTED_PROJECT_NAMES.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/DATABASE_IMPLEMENTATION_SUMMARY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/DELIVERABLES_SUMMARY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/ENTERPRISE_TEST_STRUCTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/FINAL_PROJECT_SETUP.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/GAP_TRACKER.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/HOW_TO_ACCESS_DOCS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/INIT_COMMAND_EXAMPLES.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/KEY_BASED_MATCHING_SOLUTION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/MIGRATION_COMPLETE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/MIGRATION_PLAN.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/PIP_INSTALL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/PYPLAYKIT_CLIENT_OVERVIEW.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/QUICK_DB_REFERENCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/QUICK_REFERENCE_COMPARISON_FEATURES.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/QUICK_START_QE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/STRUCTURE_COMPARISON.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/TEST_LOCATION_CHEATSHEET.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/VISUAL_COMPARISON.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/WINDOWS_INSTALL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/YOUR_PROJECTS_IMPLEMENTATION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/YOUR_SETUP_SUMMARY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/bin/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/components/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/config.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/data_comparison_profiles.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/environments.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/projects/customs_modernization.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/projects/device_lab.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/projects/dispatcho.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/config/projects/timelyquote.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/core/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/data_validation_dashboard.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/docker-compose.yml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/engineering_dashboard.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/executive_qe_dashboard.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/grafana-provisioning/dashboards/pyplaykit.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/prometheus.yml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/release_quality_dashboard.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/test_health_dashboard.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/demo/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/demo/functional/database/file_comparison/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/demo/functional/database/postgres_src_tgt/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/demo/reader_lab/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/dist_pkg/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/AGENT_AUTHORING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/API_TESTING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/ARCHITECTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/CI_INTEGRATION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/CLI_REFERENCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/COMPETITIVE_ANALYSIS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/COVERAGE_IMPROVEMENTS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/CUSTOMER_SCENARIOS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/DATABASE_SUPPORT.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/DATA_VALIDATION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/DELIVERABLES_INDEX.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/DEVICE_AUTOMATION_WBS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/EXAMPLE_TESTS_SUMMARY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/Enterprise-Framework-Assessment-REVISED.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/Enterprise-Readiness-Assessment.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/Example-Tests-Guide.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/Execution-Plan-Backlog-and-Closure-Tracker.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/FRAMEWORK_CONTRIBUTION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/01_ARCHITECTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/02_DEPLOYMENT_RUNBOOK.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/03_ACCESS_MATRIX.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/04_CLIENT_CONTACT_MATRIX.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/05_OPEN_RISKS_REGISTER.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/06_PENDING_ENHANCEMENTS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/07_PRODUCT_ROADMAP.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/08_ENVIRONMENT_DETAILS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/09_OPERATIONAL_SOPS.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/10_ESCALATION_MATRIX.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/11_KT_RECORDINGS_INDEX.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/12_REVERSE_KT_SIGNOFF.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/13_LEADERSHIP_SIGNOFF.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/KT/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/MCP_SERVER_DESIGN.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/MULTI_DB_VALIDATION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/MULTI_PROJECT_STRUCTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/OBSERVABILITY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/PIP_INSTALL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/PLUGIN_AUTHORING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/PyPlayKit-Framework-Overview.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/PyPlayKit-Usage-Scenarios.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENTS_CAPABILITY_INVENTORY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENTS_DESIGN.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENTS_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENTS_SPIKES.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENTS_THREAT_MODEL.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_AGENT_PLATFORM_EXPANSION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QE_VISUAL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/QUALITY_GATE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/RESILIENCE_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/RUN_TESTS_QUICK_REFERENCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/SECRETS_AND_GOVERNANCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/TEST_CREATION_PLAYGROUND.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/TEST_ORGANIZATION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/Usage-Scenarios-Feasibility-Analysis.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0001-sync-device-api-with-background-io.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0002-devices-subpackage-and-layering.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0003-dut-naming-for-cli-config-and-fixtures.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0004-optional-dependencies-and-import-guards.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0005-single-source-device-pytest-plugin.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0006-agent-runtime-transport.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0007-agent-autonomy-and-scm-boundaries.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0008-agent-contract-and-versioning.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0009-host-mediation-and-enforcement-model.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0010-target-stack-adapters-and-result-normalization.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0011-generation-capability-registry.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0012-regression-test-selection-safety.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0013-agent-telemetry-and-data-handling.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0014-agents-adopt-vs-build.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0015-agent-release-lifecycle-and-registry.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0016-review-driven-amendments.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0017-agent-evaluation-baseline-then-threshold.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0018-change-intelligence-without-product-source.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/0019-test-creation-from-test-cases-on-sandbox-branches.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/adr/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/device_automation/DESIGN.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/device_automation/GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/docs/device_automation/SPIKES.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/evals/conformance_fake/judges/summary_quality.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/integrations/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/mcp_server/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/orchestration/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pages/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/plugins/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/PIP_INSTALL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/__main__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/assignments.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/audit.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/budgets.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/RELEASES.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/_common.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/agent.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/agent.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/conformance.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/impact.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/prompts/change_semantics.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/prompts/regression_additions.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/risk.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/schemas/input.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/schemas/output.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/change_intelligence/selection.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/agent.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/agent.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/planning.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/schemas/input.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/execution_optimizer/schemas/output.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/agent.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/agent.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/assemble.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/layout.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/prompts/generate_tests.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/prompts/guide_api.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/prompts/guide_db.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/prompts/guide_device.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/prompts/guide_ui.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/schemas/input.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/schemas/output.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_creation/testcases.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/agent.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/agent.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/prompts/test_intent.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/rules.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/schemas/input.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/builtin/test_review/schemas/output.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/cli.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/agent.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/agent.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/conformance.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/schemas/input.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/fake_agent/schemas/output.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/conformance/suite.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/contract.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/enforcement.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/errors.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/evals/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/evals/dataset.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/evals/gate.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/evals/harness.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/evals/scorers.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/host_tools.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/impact_map.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/anthropic.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/base.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/cache.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/fake.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/ollama.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/openai_compat.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/pricing.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/recording.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/llm/routing.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/output.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/policy.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/read_tools.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/redaction.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/references.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/registry.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/release_checklist.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/releases.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/reports.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/runner.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/sandbox.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/schemas/1/agent-manifest.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/schemas/1/change-proposal.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/schemas/1/run-result.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/schemas/1/task-envelope.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/session.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/settings.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stacks/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stacks/base.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stacks/environment.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stacks/junit.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stacks/python_pytest.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stdio.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/stdio_runner.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/telemetry.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/agents/tools.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/cli.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/components/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/components/base_component.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/components/data_table.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/components/form_field.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/components/modal.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/config/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/config/config.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/config/devices.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/config/environments.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/constraints.txt +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/base_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/base_test.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/browser_factory.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/playwright_manager.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/core/quality_gate.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/_extras.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/assertions.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/buffer.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/candb.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/channel.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/clock.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/commands.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/components.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/config.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/console.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/demo_examples.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/device.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/editor.html +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/editor.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/errors.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/events.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/factory.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/fault_proxy.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/faults.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/fidelity.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/gatt.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/introspect.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/inventory.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/leasing.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/matching.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/messages.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/parsers.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/pool.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/power.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/provider.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/pytest_plugin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/recording.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/recovery.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/registers.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/ble.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/components.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/base.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/ble.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/can.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/modbus.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/serial.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/endpoints/ssh.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/modbus.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/replay.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/scheduler.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/seed.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/sensor_faults.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/serve.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/signals.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/subprocess_twin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/templating.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/badge_access.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/barcode_scanner.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/energy_meter.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/engine.dbc +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/engine_ecu.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/environment_sensor.yaml +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/fingerprint_scanner.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/heart_rate.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/payment_terminal.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/rfid_reader.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/smart_plug.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/twins/thermostat.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/sim/yaml_twin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/snmp.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/terminal.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/testing.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transcript.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transport.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/_async_bridge.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/adb.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/ble.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/can.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/coap.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/http.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/modbus.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/mqtt.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/serial.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/ssh.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/transports/telnet.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/waiting.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/devices/yamlutil.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/dist_pkg/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/dist_pkg/distribution.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/AGENT_AUTHORING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/API_TESTING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/ARCHITECTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/CI_INTEGRATION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/CLI_REFERENCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/DATABASE_SUPPORT.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/DATA_VALIDATION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/DEVICE_AUTOMATION_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/MCP_SERVER_DESIGN.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/MULTI_PROJECT_STRUCTURE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/OBSERVABILITY.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/PLUGIN_AUTHORING_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/QE_AGENTS_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/QE_VISUAL_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/QUICK_START_QE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/RESILIENCE_GUIDE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/RUN_TESTS_QUICK_REFERENCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/SECRETS_AND_GOVERNANCE.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/TEST_CREATION_PLAYGROUND.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/TEST_ORGANIZATION.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/api_posts.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/custom_columns.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/db_employees.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/device_thermostat.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/mixed_checkout.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/steps_per_row.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs/examples/testcases/ui_login.csv +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/docs_export.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/extras.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/integrations/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/integrations/adapters.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/_ast_utils.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/_config_utils.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/cli.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/server.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/agent_tools.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/device_tools.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/package_discovery.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/project_introspection.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/mcp_server/tools/project_state.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/orchestration/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/orchestration/enforcer.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/orchestration/planner.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/orchestration/selection.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/dashboard_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/login_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/orangehrm_login_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/saucedemo_inventory_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/pages/saucedemo_login_page.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/_observer.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/_reference.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/api_plugin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/base.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/data_plugin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/manifest.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/registry.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/plugins/security_plugin.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/resilience/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/resilience/locator_recovery.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/show_docs.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/api_client.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/api_test_helper.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/assertion_helper.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/auth_manager.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/comparison_config_loader.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/contract/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/contract/pact_consumer.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/dashboard.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/data_comparison_report.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/data_comparison_utils.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/data_loader.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/data_source.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/data_validator.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/database_clients.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_client.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/db2.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/informix.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/mongodb.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/mysql.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/oracle.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/snowflake.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/sqlite.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_drivers/sqlserver.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_factory.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_fixtures.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_pool.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/db_validation_helper.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/environment_validator.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/file_reader.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/governance.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/graphql_client.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/logger.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/observability.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/observability_report.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/org_governance.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/project_config.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/response_validator.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/screenshot_helper.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secret_redaction.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/aws_provider.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/azure_provider.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/base.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/env_provider.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/secrets/vault_provider.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/soap_client.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/tdm.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/telemetry.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/telemetry_schema.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/transformation_validator.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/ui_db_validator.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/version_checker.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit/utils/yaml_config_reader.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit.egg-info/dependency_links.txt +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit.egg-info/entry_points.txt +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit.egg-info/requires.txt +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/pyplaykit.egg-info/top_level.txt +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/resilience/__init__.py +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/setup.cfg +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/spikes/device_automation/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/spikes/qe_agents/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/api/ecom/auth_payloads.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/api/ecom/product_payloads.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/api_test_data.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/data_validation_test_data.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/login_test_data.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/orangehrm_login_data.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/pacts/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/test_data/ui_test_data.json +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/customs_modernization/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/demo/functional/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/demo/functional/api/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/demo/functional/database/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/demo/functional/ui/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/demo/integration/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/dispatcho/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/tests/projects/timelyquote/README.md +0 -0
- {pyplaykit-1.46.0 → pyplaykit-1.47.0}/utils/__init__.py +0 -0
|
@@ -11,6 +11,25 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## [1.47.0] — 2026-10-26
|
|
15
|
+
|
|
16
|
+
HTTP twins can now lose replies (`SimDevice.drop_http_replies`), for exactly-once and retry tests; `python -m` works again for the deprecated top-level module names; and a slow MQTT broker shutdown no longer fails a finished run. In the repository: a medication-dispensing demo with digital twins (the fictional FableCare Demo Pharmacy, synthetic data) in the Virtual Device Lab and the Device Lab Studio, and detailed Studio test suites for every device.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **`SimDevice.drop_http_replies(count=1, processed=True)`: lost HTTP replies.** A twin's HTTP endpoint closes the connection without answering the next `count` requests: with `processed=True` the twin acts first and only the reply is lost (a client that retries must not do the work twice), with `processed=False` the request never arrives. Channel faults act on byte streams and pass request-style HTTP through, so this is the way to test exactly-once behaviour and retries against an HTTP twin. `HttpReply` has a `dropped` flag for it.
|
|
21
|
+
- **Dispensing lab: medication dispensing with digital twins** (`demo/dispensing_lab`, a software-only, non-clinical demonstration at the fictional FableCare Demo Pharmacy with synthetic data). Two invented stations, the FableCab-Sim cabinet (fingerprint login) and the FableAnes-Sim anesthesia workstation (staff ID-card login), each a twin with its readers wired inside it (fingerprint in continuous identify mode, ID-card reader, barcode scanner), an HTTP API (session, patient context, orders, simulated confirmations, inventory, ledger, audit) and an MQTT audit stream. 28 tests: both journeys end to end, and rejected logins, unknown, wrong-encounter and no-orders patients, wrong items, duplicates and replays (exactly once), out of stock, lost replies, power cuts, idle timeout and user switches. Both stations are on the Virtual Device Lab's bench (now thirteen devices: inventory, readiness and roll-call in stage 1). The tests run in simulation (seeded, with transcripts and twin state on failure), in the Device Lab demo's stage 2, and in the Device Lab Studio, where the stations' panels are the presenter view (actor, patient, orders, stock, ledger, audit, reader I/O, buttons for every physical step) and each test runs with or without an injected fault.
|
|
22
|
+
- **Detailed Device Lab Studio tests for the thermostat, smart plug, energy meter and environment sensor** (`demo/device_lab/studio/test_studio_<device>.py`, 39 tests, suite "Devices in detail"), like the readers': a connection test, the happy paths, refusals and failures (unsafe targets, dead and stuck sensors, bad requests, over-current trips and surges) and a power cut, each one runnable from the page with or without a fault. They document what each twin keeps across a power cut: the thermostat's target and the plug's switch state survive, the meter's current limit does not. The Studio's test list now comes from the detailed files (107 tests); `--check` still runs the roll-call and behaviour suites.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **A slow MQTT broker shutdown no longer fails a finished run.** When a simulator host stopped, an embedded MQTT broker that took more than 10 s to shut down raised `DeviceTimeoutError` from the endpoint's `stop()`, so the Device Lab Studio's headless check failed in CI after every suite had passed. The endpoint now logs a warning and abandons the broker, and `SimulatorHost.stop()` keeps stopping the other twins if one cannot be stopped cleanly.
|
|
27
|
+
- **The Studio's energy meter could lag the heater plug.** The meter took the plug's draw into its load in a background loop every 0.2 s, so a reading right after the plug switched could still include it (the lab's "readings are consistent" test failed intermittently). It now takes the plug's draw at each measurement.
|
|
28
|
+
|
|
29
|
+
- **`python -m <old name>` works again for the deprecated top-level names.** Since 1.43.0 the old names (`mcp_server`, `utils`, ...) are aliases of `pyplaykit.*`, but running a module under its old name, for example `python -m mcp_server.cli`, failed with `'_AliasFinder' object has no attribute 'get_code'`: `runpy` asks the loader for the module's code instead of importing it. The alias loader now hands out the real module's code, file name and package flag, so it runs (with the deprecation warning) until 2.0. Imports under the old names still return the real module object.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
14
33
|
## [1.46.0] — 2026-10-26
|
|
15
34
|
|
|
16
35
|
The device automation guide is now part of the package (`pyplaykit docs devices`), and `pyplaykit init` scaffolds the five reader twins with an example test file for each. In the repository, the Device Lab Studio lists every test on the left and runs each one against its twin with or without an injected fault, and each reader has a detailed Studio suite.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyplaykit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.47.0
|
|
4
4
|
Summary: Enterprise Python + Playwright automation framework
|
|
5
5
|
Author-email: Shan Konduru <shankonduru@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -646,7 +646,7 @@ pytest -m device # against the twins
|
|
|
646
646
|
pytest -m device --pyplaykit-dut-mode hil # against real hardware (THERMOSTAT_PORT=COM7)
|
|
647
647
|
pyplaykit devices list | show thermostat | check # bench inventory and readiness
|
|
648
648
|
pyplaykit devices editor --serve # edit config/devices.yaml with forms
|
|
649
|
-
python demo/device_lab/run_demo.py # virtual device lab:
|
|
649
|
+
python demo/device_lab/run_demo.py # virtual device lab: thirteen twins, six protocols
|
|
650
650
|
pytest demo/reader_lab -o addopts= # reader lab: barcode, RFID, fingerprint, badge, card
|
|
651
651
|
```
|
|
652
652
|
|
|
@@ -1036,6 +1036,7 @@ Each project config includes:
|
|
|
1036
1036
|
- v1.44.3: the device extras require `filelock>=4.2.1`; new advisories covered the releases `>=3.20.3` admitted
|
|
1037
1037
|
- v1.45.0: five reader twins (barcode, RFID, fingerprint, employee badge, payment card), the reader lab, and the readers in the Virtual Device Lab and the Studio
|
|
1038
1038
|
- v1.46.0: the device automation guide in `pyplaykit docs devices`; `pyplaykit init` scaffolds the reader twins and an example test file per reader; Studio test list with runs with or without a fault
|
|
1039
|
+
- v1.47.0: lost HTTP replies for twins (`SimDevice.drop_http_replies`); `python -m` for the deprecated module names; a slow MQTT broker shutdown no longer fails a run; dispensing demo and detailed Studio suites in the repository
|
|
1039
1040
|
- v1.36.0: agent governance and safety — policy through org governance, redaction, audit log, tool tiers, enforcement model
|
|
1040
1041
|
- v1.35.0: agent observability — GenAI traces, `agent.*` events and `pyplaykit_agent_*` metrics, run log and reports
|
|
1041
1042
|
- v1.34.0: LLM layer — provider-neutral requests, Anthropic / OpenAI-compatible / Ollama adapters, fake and record/replay clients, model tiers with fallback and retries, budgets, cost and a response cache. No built-in agents ship yet.
|
|
@@ -471,7 +471,7 @@ pytest -m device # against the twins
|
|
|
471
471
|
pytest -m device --pyplaykit-dut-mode hil # against real hardware (THERMOSTAT_PORT=COM7)
|
|
472
472
|
pyplaykit devices list | show thermostat | check # bench inventory and readiness
|
|
473
473
|
pyplaykit devices editor --serve # edit config/devices.yaml with forms
|
|
474
|
-
python demo/device_lab/run_demo.py # virtual device lab:
|
|
474
|
+
python demo/device_lab/run_demo.py # virtual device lab: thirteen twins, six protocols
|
|
475
475
|
pytest demo/reader_lab -o addopts= # reader lab: barcode, RFID, fingerprint, badge, card
|
|
476
476
|
```
|
|
477
477
|
|
|
@@ -861,6 +861,7 @@ Each project config includes:
|
|
|
861
861
|
- v1.44.3: the device extras require `filelock>=4.2.1`; new advisories covered the releases `>=3.20.3` admitted
|
|
862
862
|
- v1.45.0: five reader twins (barcode, RFID, fingerprint, employee badge, payment card), the reader lab, and the readers in the Virtual Device Lab and the Studio
|
|
863
863
|
- v1.46.0: the device automation guide in `pyplaykit docs devices`; `pyplaykit init` scaffolds the reader twins and an example test file per reader; Studio test list with runs with or without a fault
|
|
864
|
+
- v1.47.0: lost HTTP replies for twins (`SimDevice.drop_http_replies`); `python -m` for the deprecated module names; a slow MQTT broker shutdown no longer fails a run; dispensing demo and detailed Studio suites in the repository
|
|
864
865
|
- v1.36.0: agent governance and safety — policy through org governance, redaction, audit log, tool tiers, enforcement model
|
|
865
866
|
- v1.35.0: agent observability — GenAI traces, `agent.*` events and `pyplaykit_agent_*` metrics, run log and reports
|
|
866
867
|
- v1.34.0: LLM layer — provider-neutral requests, Anthropic / OpenAI-compatible / Ollama adapters, fake and record/replay clients, model tiers with fallback and retries, budgets, cost and a response cache. No built-in agents ship yet.
|
|
@@ -142,15 +142,47 @@ devices:
|
|
|
142
142
|
sim:
|
|
143
143
|
twin: pyplaykit.devices.sim.twins:PaymentTerminalTwin
|
|
144
144
|
|
|
145
|
+
# ── Dispensing lab (demo/dispensing_lab): FableCare Demo Pharmacy, a fictional site ─────────────────
|
|
146
|
+
# Software-only, synthetic data, no real medication system or dispensing. The stations' readers (fingerprint
|
|
147
|
+
# or ID card, barcode) are part of each station's twin; the tests act on them through the twin (sim) or
|
|
148
|
+
# through the Device Lab Studio (hil against the Studio's twins).
|
|
149
|
+
dispense-cabinet:
|
|
150
|
+
class: demo.dispensing_lab.station_device:DispensingStation
|
|
151
|
+
description: FableCab-Sim medication cabinet (fictional) - fingerprint login, barcode scanner
|
|
152
|
+
capabilities: [http, mqtt, dispensing, cabinet]
|
|
153
|
+
channels:
|
|
154
|
+
api: {type: http, base_url: "${DISPENSE_CABINET_URL}", retries: 0} # retries are the test's decision
|
|
155
|
+
audit: {type: mqtt, host: "${DISPENSE_CABINET_MQTT_HOST}", port: "${DISPENSE_CABINET_MQTT_PORT}",
|
|
156
|
+
subscribe: ["fablecare/#"]}
|
|
157
|
+
sim:
|
|
158
|
+
twin: demo.dispensing_lab.station:DispensingStationTwin
|
|
159
|
+
args: {station: FABLECAB-SIM-01}
|
|
160
|
+
|
|
161
|
+
dispense-workstation:
|
|
162
|
+
class: demo.dispensing_lab.station_device:DispensingStation
|
|
163
|
+
description: FableAnes-Sim anesthesia workstation (fictional) - ID-card login, barcode scanner
|
|
164
|
+
capabilities: [http, mqtt, dispensing, workstation]
|
|
165
|
+
channels:
|
|
166
|
+
api: {type: http, base_url: "${DISPENSE_WORKSTATION_URL}", retries: 0}
|
|
167
|
+
audit: {type: mqtt, host: "${DISPENSE_WORKSTATION_MQTT_HOST}", port: "${DISPENSE_WORKSTATION_MQTT_PORT}",
|
|
168
|
+
subscribe: ["fablecare/#"]}
|
|
169
|
+
sim:
|
|
170
|
+
twin: demo.dispensing_lab.station:DispensingStationTwin
|
|
171
|
+
args: {station: FABLEANES-SIM-01}
|
|
172
|
+
|
|
145
173
|
benches:
|
|
146
174
|
demo: {duts: [demo-thermostat], description: Demo bench (simulated)}
|
|
175
|
+
dispensing-lab:
|
|
176
|
+
description: FableCare Demo Pharmacy (fictional) - FableCab-Sim cabinet and FableAnes-Sim workstation
|
|
177
|
+
duts: [dispense-cabinet, dispense-workstation]
|
|
147
178
|
reader-lab:
|
|
148
179
|
description: Identification and payment readers - barcode, RFID, fingerprint, employee badge, payment card
|
|
149
180
|
duts: [reader-barcode, reader-rfid, reader-fingerprint, reader-badge, reader-payment]
|
|
150
181
|
device-lab:
|
|
151
|
-
description: Virtual device lab -
|
|
182
|
+
description: Virtual device lab - thirteen devices over serial, HTTP, MQTT, Modbus, CAN and BLE
|
|
152
183
|
duts: [lab-thermostat, lab-env-sensor, lab-smart-plug, lab-energy-meter, lab-engine-ecu, lab-heart-rate,
|
|
153
|
-
reader-barcode, reader-rfid, reader-fingerprint, reader-badge, reader-payment
|
|
184
|
+
reader-barcode, reader-rfid, reader-fingerprint, reader-badge, reader-payment,
|
|
185
|
+
dispense-cabinet, dispense-workstation]
|
|
154
186
|
live-lab:
|
|
155
187
|
description: The lab's network and serial devices, served as separate processes (hil mode)
|
|
156
188
|
duts: [lab-thermostat, lab-smart-plug, lab-energy-meter, reader-barcode, reader-payment]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Virtual Device Lab
|
|
2
2
|
|
|
3
|
-
A one-command showcase of the device automation framework:
|
|
3
|
+
A one-command showcase of the device automation framework: thirteen simulated devices on six protocols,
|
|
4
4
|
tested the way a real product team would test them, ending on a results page with a release decision.
|
|
5
5
|
No hardware is needed.
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ bash scripts/run_device_studio.sh # Linux / macOS / Git Bash
|
|
|
31
31
|
python demo/device_lab/studio/studio.py --speed 30 # directly; --check runs every suite headless (CI)
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The Studio runs the
|
|
34
|
+
The Studio runs the thirteen devices live, with device time 60x faster than real time (a speed selector goes
|
|
35
35
|
from 1x to 120x), and animates each one: the thermostat dial and heater, the plug's power bar, the
|
|
36
36
|
meter's gauges and contactor, the ECU's tachometer, the heart-rate monitor's pulse, the sensor's charts,
|
|
37
37
|
and under **Readers** the barcode scanner, RFID reader, fingerprint scanner, badge reader door and card
|
|
@@ -42,11 +42,14 @@ terminal screen.
|
|
|
42
42
|
- **Inject faults at any moment:** power cut, brownout, sensor dropout or drift, a current surge, and on
|
|
43
43
|
the network devices a slow or cut link (through a fault proxy between the tests and the device).
|
|
44
44
|
- **Tests on the left, the twin on the right:** the left column lists every test that runs in hardware mode
|
|
45
|
-
against these devices (
|
|
46
|
-
set (`studio/test_studio_<
|
|
47
|
-
employee ID card reader a valid card, a newly issued, expired, not-yet-valid,
|
|
48
|
-
card, a card that is not an employee card, office hours, lockdown, the access log, a
|
|
49
|
-
powered-off reader.
|
|
45
|
+
against these devices (107), grouped by device; click a device to open its tests. Every device has a full
|
|
46
|
+
set (`studio/test_studio_<device>.py`): a connection test, the happy paths, every refusal and failure, and
|
|
47
|
+
a power cut. For the employee ID card reader: a valid card, a newly issued, expired, not-yet-valid,
|
|
48
|
+
deactivated or revoked card, a card that is not an employee card, office hours, lockdown, the access log, a
|
|
49
|
+
forced door and a powered-off reader. For the thermostat: heating to a target, stopping, unsafe targets,
|
|
50
|
+
mode off, a dead and a stuck temperature sensor, the room cooling, and the target kept across a power cut.
|
|
51
|
+
The smart plug, energy meter and environment sensor are covered the same way. These tests act out the
|
|
52
|
+
physical side through the Studio themselves. Pick one and the right side shows its twin with its fault
|
|
50
53
|
buttons, and a run bar: **Run without fault**, or **Run with fault** with a fault chosen for that device
|
|
51
54
|
(power cut, brownout, slow link, cut link, a sensor dropout). The Studio injects the fault for the run -
|
|
52
55
|
a brownout or a cut link lands a second into the test - and clears it afterwards, so the next run starts
|
|
@@ -55,6 +58,11 @@ terminal screen.
|
|
|
55
58
|
buttons while a test runs. *Hub shuts heating down on an over-current trip* waits 15 s for you to press
|
|
56
59
|
**Surge** on the meter. The CAN engine ECU and BLE heart-rate monitor have no tests here: their buses
|
|
57
60
|
live inside the Studio, so a separate pytest process cannot reach them.
|
|
61
|
+
- **Dispensing (fictional FableCare Demo Pharmacy, synthetic data):** the FableCab-Sim cabinet and the
|
|
62
|
+
FableAnes-Sim workstation from the [dispensing lab](../dispensing_lab). Each panel is a presenter view -
|
|
63
|
+
actor, patient, orders with status and stock, simulated transactions, audit trail, what the readers sent -
|
|
64
|
+
with buttons for the nurse's finger, the anesthesiologist's card, wristband and package scans, the touch
|
|
65
|
+
screen and a lost network reply. The scenario's 28 tests are listed on the left.
|
|
58
66
|
- **Smart home scene:** meter → heater plug → heater, thermostat and hub on one diagram, with current
|
|
59
67
|
flowing when the heater is on. Turn on the hub automation, raise the target, then surge the meter.
|
|
60
68
|
- **Act out the readers:** scan a label (or a torn or misprinted one), roll a tagged pallet through the
|
|
@@ -94,7 +102,7 @@ objects and their suites live in the reader lab, [`demo/reader_lab`](../reader_l
|
|
|
94
102
|
|
|
95
103
|
| # | Stage | What runs | What the audience sees |
|
|
96
104
|
|---|---|---|---|
|
|
97
|
-
| 1 | The bench | `pyplaykit devices --bench device-lab list` / `check` |
|
|
105
|
+
| 1 | The bench | `pyplaykit devices --bench device-lab list` / `check` | Thirteen devices, their protocols and capabilities; each connects and answers |
|
|
98
106
|
| 2 | Devices at work | [`test_01`](test_01_bench_inventory.py)–[`test_04`](test_04_faults_and_recovery.py) and the [reader lab](../reader_lab) suites | Device behaviour; a [home-automation hub](home_hub.py) coordinating three devices; injected faults; readers scanning, matching fingerprints, opening doors, taking payments |
|
|
99
107
|
| 3 | Shared devices | [`test_05_device_pool.py`](test_05_device_pool.py) with 3 parallel workers | Leasing, waiting for a free unit, a faulty meter quarantined ([`config/projects/device_lab.yaml`](../../config/projects/device_lab.yaml)) |
|
|
100
108
|
| 4 | Live lab | Five twins (thermostat, plug, meter, barcode scanner, card terminal) as separate processes; tests in `hil` mode; then in `sim`; fidelity score | The same test code against "real" devices on real sockets, and proof the simulator answers the same |
|
|
@@ -104,7 +112,7 @@ objects and their suites live in the reader lab, [`demo/reader_lab`](../reader_l
|
|
|
104
112
|
|
|
105
113
|
1. **The problem.** Device teams wait for hardware, share a few boards, and cannot reproduce the rare
|
|
106
114
|
faults that cause field failures. Every stage below runs without hardware.
|
|
107
|
-
2. **The bench (stage 1).** "
|
|
115
|
+
2. **The bench (stage 1).** "Thirteen devices, six protocols, one configuration file." Point at the
|
|
108
116
|
readiness column: the framework connects to each one before any test runs.
|
|
109
117
|
3. **Devices at work (stage 2).** Open the results page. Call out:
|
|
110
118
|
- *Smart plug meters one hour of heating* ran in about two seconds: waits use virtual time.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Dispensing lab: medication dispensing with digital twins
|
|
2
|
+
|
|
3
|
+
A **software-only, non-clinical demonstration** at the fictional **FableCare Demo Pharmacy**. **FableCab-Sim**
|
|
4
|
+
(a medication cabinet) and **FableAnes-Sim** (an anesthesia workstation) are invented products. Every user,
|
|
5
|
+
patient, encounter, order, item and barcode is synthetic ([`fixtures.yaml`](fixtures.yaml)); item names are
|
|
6
|
+
deliberately non-clinical ("Demo item A") and quantities are test units. No real medication, patient record,
|
|
7
|
+
clinical system or dispensing equipment is involved, no transaction dispenses anything, and no integration
|
|
8
|
+
with a real pharmacy or vendor product is implied. The scenario brief is
|
|
9
|
+
[`../Digital Twin Lab Medication Dispensing Scenario.md`](../Digital%20Twin%20Lab%20Medication%20Dispensing%20Scenario.md).
|
|
10
|
+
|
|
11
|
+
## What is simulated
|
|
12
|
+
|
|
13
|
+
| Component | Twin | Interface |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| FableCab-Sim cabinet, FableAnes-Sim workstation | `DispensingStationTwin` ([`station.py`](station.py)): session, patient context, orders, inventory, a simulated dispense ledger, audit trail | HTTP API + MQTT audit stream (`fablecare/<station>/audit`) |
|
|
16
|
+
| Fingerprint reader (cabinet) | `AutoIdentifyFingerprint`: the reference fingerprint twin in continuous identify mode | serial, inside the station |
|
|
17
|
+
| Staff ID-card reader (workstation) | `IdCardReaderTwin`: sends `CARD id=<card>` | serial, inside the station |
|
|
18
|
+
| Barcode scanner (both) | the reference `BarcodeScannerTwin` | serial, inside the station |
|
|
19
|
+
| Encounter / order service | a stub inside the station, from `fixtures.yaml` | - |
|
|
20
|
+
|
|
21
|
+
The readers are wired into the station as a cabinet's USB readers are: a test acts on a reader (a finger, a
|
|
22
|
+
card, a scan) and the station reacts to what the reader sends. Device objects: [`station_device.py`](station_device.py).
|
|
23
|
+
The DUTs are `dispense-cabinet` and `dispense-workstation` in `config/devices.yaml` (bench `dispensing-lab`).
|
|
24
|
+
|
|
25
|
+
## The scenarios
|
|
26
|
+
|
|
27
|
+
[`test_scenario_a_fablecab_nurse.py`](test_scenario_a_fablecab_nurse.py) (16 tests) - nurse `NURSE-042` logs in
|
|
28
|
+
with a fingerprint, scans patient `PT-1007`, reviews the due list, scans and confirms each item (simulated
|
|
29
|
+
administration), logs off. Then: unrecognised and fake fingerprints, scans before login, an unknown patient, a
|
|
30
|
+
patient with nothing due, the wrong item, another patient's item, a duplicate scan, an out-of-stock item, a
|
|
31
|
+
lost reply retried (recorded once), a power cut after a scan, an idle session timing out, a second nurse
|
|
32
|
+
taking over.
|
|
33
|
+
|
|
34
|
+
[`test_scenario_b_fableanes_anesthesia.py`](test_scenario_b_fableanes_anesthesia.py) (12 tests) - anesthesiologist
|
|
35
|
+
`ANES-018` logs in with an ID card, scans patient `PT-2044` in operating-room encounter `OR-2026-0088`, scans the
|
|
36
|
+
ordered item, confirms one simulated transaction, logs off. Then: invalid, expired and unauthorized cards, a
|
|
37
|
+
patient from another encounter, an item not on the order, a replayed and a second confirmation (exactly once),
|
|
38
|
+
a disconnect during confirmation (status checked before the retry), a user switch and a log-off with a
|
|
39
|
+
transaction open (audited as incomplete).
|
|
40
|
+
|
|
41
|
+
## Run it
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
python -m pytest demo/dispensing_lab -o addopts= -q # simulation, seeded, about a minute
|
|
45
|
+
python demo/device_lab/studio/studio.py # live: open "Dispensing" in the Studio
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
In simulation the tests act through the twin; every run prints its seed (`PYPLAYKIT_SIM_SEED` replays it) and
|
|
49
|
+
a failure leaves the device I/O transcript and the twin's state (including the session, ledger and audit
|
|
50
|
+
trail) under `reports/devices/<test>/`. The Device Lab demo (`demo/device_lab/run_demo.py`) runs both suites in
|
|
51
|
+
its stage 2.
|
|
52
|
+
|
|
53
|
+
In the **Device Lab Studio** the two stations run live under **Dispensing**. The page is the presenter view:
|
|
54
|
+
the actor, the patient, the orders with their status and stock, the simulated transactions, the audit trail
|
|
55
|
+
and what each reader sent, plus buttons for every physical step (fingers, cards, wristbands, packages), the
|
|
56
|
+
touch screen (confirm, log off), a lost reply and a scenario reset. The same 28 tests are listed on the left
|
|
57
|
+
and run in hardware mode against these live stations, acting through the Studio, each with or without an
|
|
58
|
+
injected fault (power cut, brownout, slow or cut link).
|
|
59
|
+
|
|
60
|
+
## Against the brief
|
|
61
|
+
|
|
62
|
+
| Brief | Here |
|
|
63
|
+
|---|---|
|
|
64
|
+
| WP1 target boundary | Generic simulated stations; no vendor model, UI or protocol |
|
|
65
|
+
| WP2 event contract | The HTTP API and audit events in `station.py` (login, patient, scan, confirm, logoff, incomplete, refusals) |
|
|
66
|
+
| WP3 synthetic fixtures | `fixtures.yaml`: roles, patients, encounters, orders, barcodes, inventory, a fixed start time |
|
|
67
|
+
| WP4 twin and tests | Both journeys with their negative, duplicate, timeout and recovery cases (28 tests) |
|
|
68
|
+
| WP5 presenter view | The Studio's station panels |
|
|
69
|
+
| WP6 promotion path | Not started: only with an approved interface and a safe bench (`hands` skips on real hardware) |
|
|
70
|
+
| Acceptance: repeatable from a seeded clean state | Each test starts with a scenario reset; runs repeat from their seed |
|
|
71
|
+
| Acceptance: no real system, no dispensing | Twins only; the tests talk to local endpoints the simulator serves |
|
|
72
|
+
| Acceptance: evidence per run | Seed, outcome, transcript, twin state and audit trail on failure |
|
|
@@ -29,24 +29,51 @@ REMOVED_IN = "2.0"
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
class _AliasFinder(importlib.abc.MetaPathFinder, importlib.abc.Loader):
|
|
32
|
-
"""Resolves ``<old>.<sub>`` to the already-importable ``pyplaykit.<old>.<sub>`` module.
|
|
32
|
+
"""Resolves ``<old>.<sub>`` to the already-importable ``pyplaykit.<old>.<sub>`` module.
|
|
33
|
+
|
|
34
|
+
An import returns the real module object. ``python -m <old>.<sub>`` (runpy) does not import: it asks the
|
|
35
|
+
loader for the module's code and runs it as ``__main__``, so the loader also hands out the real module's
|
|
36
|
+
code (:meth:`get_code`) and says whether it is a package (:meth:`is_package`, for ``python -m <old>``).
|
|
37
|
+
"""
|
|
33
38
|
|
|
34
39
|
def __init__(self) -> None:
|
|
35
40
|
self.active: set[str] = set()
|
|
36
41
|
|
|
42
|
+
@staticmethod
|
|
43
|
+
def _real_name(fullname: str) -> str:
|
|
44
|
+
top, _, rest = fullname.partition(".")
|
|
45
|
+
return f"{ALIASES[top]}.{rest}"
|
|
46
|
+
|
|
47
|
+
def _real_spec(self, fullname: str): # noqa: ANN202 - importlib.machinery.ModuleSpec | None
|
|
48
|
+
return importlib.util.find_spec(self._real_name(fullname))
|
|
49
|
+
|
|
37
50
|
def find_spec(self, fullname: str, path=None, target=None): # noqa: ANN001 - importlib signature
|
|
38
51
|
top, dot, _rest = fullname.partition(".")
|
|
39
|
-
if dot and top in self.active:
|
|
40
|
-
return
|
|
41
|
-
|
|
52
|
+
if not (dot and top in self.active):
|
|
53
|
+
return None
|
|
54
|
+
real = self._real_spec(fullname)
|
|
55
|
+
if real is None:
|
|
56
|
+
return None # no such module under pyplaykit either: a normal ModuleNotFoundError
|
|
57
|
+
return importlib.util.spec_from_loader(fullname, self, origin=real.origin,
|
|
58
|
+
is_package=real.submodule_search_locations is not None)
|
|
42
59
|
|
|
43
60
|
def create_module(self, spec) -> ModuleType: # noqa: ANN001 - importlib signature
|
|
44
|
-
|
|
45
|
-
return importlib.import_module(f"{ALIASES[top]}.{rest}")
|
|
61
|
+
return importlib.import_module(self._real_name(spec.name))
|
|
46
62
|
|
|
47
63
|
def exec_module(self, module: ModuleType) -> None:
|
|
48
64
|
"""The module is the real one, already executed."""
|
|
49
65
|
|
|
66
|
+
# runpy (python -m) ------------------------------------------------------------------------------
|
|
67
|
+
def get_code(self, fullname: str): # noqa: ANN201 - types.CodeType | None
|
|
68
|
+
real = self._real_spec(fullname)
|
|
69
|
+
return real.loader.get_code(real.name)
|
|
70
|
+
|
|
71
|
+
def is_package(self, fullname: str) -> bool:
|
|
72
|
+
return self._real_spec(fullname).submodule_search_locations is not None
|
|
73
|
+
|
|
74
|
+
def get_filename(self, fullname: str) -> str:
|
|
75
|
+
return self._real_spec(fullname).origin
|
|
76
|
+
|
|
50
77
|
|
|
51
78
|
_FINDER = _AliasFinder()
|
|
52
79
|
|
|
@@ -74,6 +74,9 @@ class HttpEndpoint(Endpoint):
|
|
|
74
74
|
endpoint.logger.exception("%s: twin raised on %s %s", endpoint.label, request.method, request.path)
|
|
75
75
|
reply = HttpReply(500, json.dumps({"error": f"SIM-ERROR {type(exc).__name__}: {exc}"}).encode(),
|
|
76
76
|
{"Content-Type": "application/json"})
|
|
77
|
+
if reply.dropped: # a lost reply (SimDevice.drop_http_replies): close without answering
|
|
78
|
+
self.close_connection = True
|
|
79
|
+
return
|
|
77
80
|
self.send_response(reply.status)
|
|
78
81
|
for name, value in reply.headers.items():
|
|
79
82
|
self.send_header(name, value)
|
|
@@ -21,7 +21,7 @@ from typing import Any
|
|
|
21
21
|
from urllib.parse import urlparse
|
|
22
22
|
|
|
23
23
|
from pyplaykit.devices._extras import require_extra
|
|
24
|
-
from pyplaykit.devices.errors import DeviceConfigError, DeviceNotAvailableError
|
|
24
|
+
from pyplaykit.devices.errors import DeviceConfigError, DeviceNotAvailableError, DeviceTimeoutError
|
|
25
25
|
from pyplaykit.devices.messages import Message
|
|
26
26
|
from pyplaykit.devices.sim.endpoints.base import Endpoint
|
|
27
27
|
from pyplaykit.devices.transports._async_bridge import get_bridge
|
|
@@ -88,7 +88,10 @@ class MqttEndpoint(Endpoint):
|
|
|
88
88
|
client.loop_stop()
|
|
89
89
|
broker, self._broker = self._broker, None
|
|
90
90
|
if broker is not None:
|
|
91
|
-
|
|
91
|
+
try:
|
|
92
|
+
get_bridge().run(broker.shutdown(), timeout=10)
|
|
93
|
+
except DeviceTimeoutError: # a slow broker shutdown must not fail a finished run
|
|
94
|
+
self.logger.warning("%s: embedded broker did not shut down within 10 s; abandoning it", self.label)
|
|
92
95
|
|
|
93
96
|
def ready(self) -> bool:
|
|
94
97
|
return self._client is not None and self._connected.is_set()
|
|
@@ -167,7 +167,10 @@ class SimulatorHost:
|
|
|
167
167
|
return
|
|
168
168
|
self._stopped = True
|
|
169
169
|
for name in list(self.twins):
|
|
170
|
-
|
|
170
|
+
try:
|
|
171
|
+
self.remove(name)
|
|
172
|
+
except Exception: # one endpoint that will not stop must not leave the other twins running
|
|
173
|
+
self.logger.exception("simulator host: could not stop twin %s cleanly", name)
|
|
171
174
|
self.scheduler.stop()
|
|
172
175
|
self.logger.info("simulator host stopped (seed=%s)", self.seed)
|
|
173
176
|
|
|
@@ -109,6 +109,8 @@ class HttpReply:
|
|
|
109
109
|
status: int = 200
|
|
110
110
|
body: bytes = b""
|
|
111
111
|
headers: Mapping[str, str] = field(default_factory=dict)
|
|
112
|
+
#: no reply at all: the HTTP endpoint closes the connection (see :meth:`SimDevice.drop_http_replies`)
|
|
113
|
+
dropped: bool = False
|
|
112
114
|
|
|
113
115
|
@classmethod
|
|
114
116
|
def of(cls, value: Any) -> "HttpReply":
|
|
@@ -213,6 +215,7 @@ class SimDevice:
|
|
|
213
215
|
self._frames = self._collect_frames()
|
|
214
216
|
self._bus_senders: dict[str, list[FrameSender]] = {}
|
|
215
217
|
self.commands_seen: list[tuple[str, str]] = []
|
|
218
|
+
self._http_drops: list[bool] = [] # one entry per HTTP request to drop: True = acted on before the drop
|
|
216
219
|
|
|
217
220
|
# ── handler discovery ────────────────────────────────────────────────────
|
|
218
221
|
def _collect_handlers(self):
|
|
@@ -518,11 +521,27 @@ class SimDevice:
|
|
|
518
521
|
with self.lock:
|
|
519
522
|
if not self.powered:
|
|
520
523
|
return HttpReply.of((503, {"error": "device is powered off"}))
|
|
524
|
+
if self._http_drops:
|
|
525
|
+
if self._http_drops.pop(0):
|
|
526
|
+
try:
|
|
527
|
+
self._dispatch_request(channel, request) # the device acts; its reply is lost
|
|
528
|
+
except SensorDropout:
|
|
529
|
+
pass
|
|
530
|
+
return HttpReply(dropped=True)
|
|
521
531
|
try:
|
|
522
532
|
return self._dispatch_request(channel, request)
|
|
523
533
|
except SensorDropout as exc:
|
|
524
534
|
return HttpReply.of((503, {"error": str(exc)}))
|
|
525
535
|
|
|
536
|
+
def drop_http_replies(self, count: int = 1, *, processed: bool = True) -> None:
|
|
537
|
+
"""Drop the next ``count`` HTTP requests the way a failing link does: the connection closes with no
|
|
538
|
+
reply. ``processed=True``: the device acts on the request and the reply is lost on the way back (a
|
|
539
|
+
client that retries must not do the work twice); ``processed=False``: the request never arrives."""
|
|
540
|
+
if count < 1:
|
|
541
|
+
raise ValueError("count must be >= 1")
|
|
542
|
+
with self.lock:
|
|
543
|
+
self._http_drops.extend([processed] * count)
|
|
544
|
+
|
|
526
545
|
def _dispatch_request(self, channel: str, request: HttpRequest) -> HttpReply:
|
|
527
546
|
self.commands_seen.append((channel, f"{request.method} {request.path}"))
|
|
528
547
|
method_mismatch = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyplaykit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.47.0
|
|
4
4
|
Summary: Enterprise Python + Playwright automation framework
|
|
5
5
|
Author-email: Shan Konduru <shankonduru@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -646,7 +646,7 @@ pytest -m device # against the twins
|
|
|
646
646
|
pytest -m device --pyplaykit-dut-mode hil # against real hardware (THERMOSTAT_PORT=COM7)
|
|
647
647
|
pyplaykit devices list | show thermostat | check # bench inventory and readiness
|
|
648
648
|
pyplaykit devices editor --serve # edit config/devices.yaml with forms
|
|
649
|
-
python demo/device_lab/run_demo.py # virtual device lab:
|
|
649
|
+
python demo/device_lab/run_demo.py # virtual device lab: thirteen twins, six protocols
|
|
650
650
|
pytest demo/reader_lab -o addopts= # reader lab: barcode, RFID, fingerprint, badge, card
|
|
651
651
|
```
|
|
652
652
|
|
|
@@ -1036,6 +1036,7 @@ Each project config includes:
|
|
|
1036
1036
|
- v1.44.3: the device extras require `filelock>=4.2.1`; new advisories covered the releases `>=3.20.3` admitted
|
|
1037
1037
|
- v1.45.0: five reader twins (barcode, RFID, fingerprint, employee badge, payment card), the reader lab, and the readers in the Virtual Device Lab and the Studio
|
|
1038
1038
|
- v1.46.0: the device automation guide in `pyplaykit docs devices`; `pyplaykit init` scaffolds the reader twins and an example test file per reader; Studio test list with runs with or without a fault
|
|
1039
|
+
- v1.47.0: lost HTTP replies for twins (`SimDevice.drop_http_replies`); `python -m` for the deprecated module names; a slow MQTT broker shutdown no longer fails a run; dispensing demo and detailed Studio suites in the repository
|
|
1039
1040
|
- v1.36.0: agent governance and safety — policy through org governance, redaction, audit log, tool tiers, enforcement model
|
|
1040
1041
|
- v1.35.0: agent observability — GenAI traces, `agent.*` events and `pyplaykit_agent_*` metrics, run log and reports
|
|
1041
1042
|
- v1.34.0: LLM layer — provider-neutral requests, Anthropic / OpenAI-compatible / Ollama adapters, fake and record/replay clients, model tiers with fallback and retries, budgets, cost and a response cache. No built-in agents ship yet.
|
|
@@ -56,6 +56,7 @@ dashboards/test_health_dashboard.json
|
|
|
56
56
|
dashboards/grafana-provisioning/dashboards/pyplaykit.yaml
|
|
57
57
|
demo/README.md
|
|
58
58
|
demo/device_lab/README.md
|
|
59
|
+
demo/dispensing_lab/README.md
|
|
59
60
|
demo/functional/database/file_comparison/README.md
|
|
60
61
|
demo/functional/database/postgres_src_tgt/README.md
|
|
61
62
|
demo/reader_lab/README.md
|
|
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
|
|
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
|
{pyplaykit-1.46.0 → pyplaykit-1.47.0}/dashboards/grafana-provisioning/dashboards/pyplaykit.yaml
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
|