lx-annotate 1.2.4__tar.gz → 1.2.6__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.
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/PKG-INFO +3 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/__init__.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/admin.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/api_urls.py +14 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/asgi.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/dtypes_api_urls.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_audit.py +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_jobs.py +2 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_state.py +25 -4
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/dispatch_hub_export_recovery.py +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/monitoring_status.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/start_filewatcher.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/middleware/__init__.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/middleware/lookup_tracker.py +0 -1
- lx_annotate-1.2.6/lx_annotate/migrations/0008_aidatasetsplitplan.py +50 -0
- lx_annotate-1.2.6/lx_annotate/migrations/max_migration.txt +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/models.py +33 -0
- lx_annotate-1.2.6/lx_annotate/schemas/__init__.py +1 -0
- lx_annotate-1.2.6/lx_annotate/schemas/ai_dataset_splits.py +91 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/serializers.py +3 -0
- lx_annotate-1.2.6/lx_annotate/services/ai_dataset_splits.py +128 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/services/report_llm.py +24 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/config.py +3 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/secret_key.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/settings_test.py +4 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/urls.py +2 -0
- lx_annotate-1.2.6/lx_annotate/views/ai_dataset_splits.py +102 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/monitoring.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/quarantine.py +4 -5
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/wsgi.py +2 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/pyproject.toml +3 -3
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/.vite/manifest.json +10 -4
- lx_annotate-1.2.6/staticfiles/AboutUs.js +1 -0
- lx_annotate-1.2.6/staticfiles/AdministrationPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/AdministrationPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/AiDatasetBucketsPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/AiDatasetBucketsPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/AiDatasetSettingsPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/AiDatasetSettingsPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnnotationDashboard.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnnotationDashboard.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnnotationDashboard2.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationCorrectionComponent.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationCorrectionComponent.js +51 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationEvaluation.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationEvaluation.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationMetrics.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationMetrics.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationOverview.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationOverview.js +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationValidationComponent.css +1 -0
- lx_annotate-1.2.6/staticfiles/AnonymizationValidationComponent.js +1 -0
- lx_annotate-1.2.6/staticfiles/ApplicationSettingsPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/ApplicationSettingsPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/CaseResolutionPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/CaseSetupPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/CaseSetupPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/Dashboard.js +1 -0
- lx_annotate-1.2.6/staticfiles/Documentation.css +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/Documentation.js +1 -1
- lx_annotate-1.2.6/staticfiles/Export.css +1 -0
- lx_annotate-1.2.6/staticfiles/Export.js +1 -0
- lx_annotate-1.2.6/staticfiles/FinalizedResultPage.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/FindingsCapturePage.css +1 -1
- lx_annotate-1.2.6/staticfiles/FindingsCapturePage.js +1 -0
- lx_annotate-1.2.6/staticfiles/FrameAnnotation.css +1 -0
- lx_annotate-1.2.6/staticfiles/FrameAnnotation.js +1 -0
- lx_annotate-1.2.6/staticfiles/FrameSelectorPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/FrameSelectorPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/HubExport.css +1 -0
- lx_annotate-1.2.6/staticfiles/HubExport.js +1 -0
- lx_annotate-1.2.6/staticfiles/ModelTrainingPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/ModelTrainingPage.js +2 -0
- lx_annotate-1.2.6/staticfiles/MonitoringPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/MonitoringPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/PageOverview.css +1 -0
- lx_annotate-1.2.6/staticfiles/PageOverview.js +1 -0
- lx_annotate-1.2.6/staticfiles/PatientDocumentsPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/PatientDocumentsPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/PatientMedicationPage.css +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/PatientMedicationPage.js +1 -1
- lx_annotate-1.2.6/staticfiles/PatientOverview.css +1 -0
- lx_annotate-1.2.6/staticfiles/PatientOverview.js +1 -0
- lx_annotate-1.2.6/staticfiles/Profile.js +1 -0
- lx_annotate-1.2.6/staticfiles/ReportEditorPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/ReportEditorPage.js +6 -0
- lx_annotate-1.2.6/staticfiles/ReportExportPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/ReportExportPage.js +3 -0
- lx_annotate-1.2.6/staticfiles/ReportTemplateBuilderPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/ReportTemplateBuilderPage.js +11 -0
- lx_annotate-1.2.6/staticfiles/ReportingShell.css +1 -0
- lx_annotate-1.2.6/staticfiles/ReportingShell.js +1 -0
- lx_annotate-1.2.6/staticfiles/ReportingWorklistPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/StudyCohortPage.css +1 -0
- lx_annotate-1.2.6/staticfiles/StudyCohortPage.js +1 -0
- lx_annotate-1.2.6/staticfiles/Timeline.css +1 -0
- lx_annotate-1.2.6/staticfiles/Timeline.js +2 -0
- lx_annotate-1.2.6/staticfiles/VideoExamination.css +1 -0
- lx_annotate-1.2.6/staticfiles/VideoExamination.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/administrationApi.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/aiDatasetApi.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/annotationPrincipal.js +1 -1
- lx_annotate-1.2.6/staticfiles/anonymizationValidationPresentation.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/applicationSettingsApi.js +1 -1
- lx_annotate-1.2.6/staticfiles/casesApi.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/SETUP_GUIDE.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/documentation_options.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/api/index.html +2 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/genindex.html +32 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/ai-training-data-export.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/anonymization-validation-correction-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/asset-deployment.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/core-concept-contract.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/core-concept-readiness-verdict.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/core-concept-type-matrix.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/deployment-strategy.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/dtypes-findings-migration.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/encrypted-model-weights-inference.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/encrypted-storage-process.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/frame-annotation-availability.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/general-documentation.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/hub-export-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/hub-storage-load-balancing.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/openapi-type-generation.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/pypi.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/reporting-shell-aaa-testing.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/reporting-template-requirements-page.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/runtime-environment-contract-test.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/secure-backup-disaster-recovery.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/segment-annotation-workflow.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/terminology-delivery.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/guides/wheel-deployment.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/index.html +1 -1
- lx_annotate-1.2.6/staticfiles/docs/objects.inv +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/py-modindex.html +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/search.html +1 -1
- lx_annotate-1.2.6/staticfiles/docs/searchindex.js +1 -0
- lx_annotate-1.2.6/staticfiles/examinationStore.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/frameStreams.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/knowledgeBaseGraphApi.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/main.css +1 -1
- lx_annotate-1.2.6/staticfiles/main.js +39 -0
- lx_annotate-1.2.6/staticfiles/mediaTypeStore.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/mediaUrls.js +1 -1
- lx_annotate-1.2.6/staticfiles/patientExaminationStore.js +1 -0
- lx_annotate-1.2.6/staticfiles/patientService.js +1 -0
- lx_annotate-1.2.6/staticfiles/patientStore.js +1 -0
- lx_annotate-1.2.6/staticfiles/reportExportApi.js +1 -0
- lx_annotate-1.2.6/staticfiles/reportingError.js +1 -0
- lx_annotate-1.2.6/staticfiles/reportingIndicationContract.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/reportingTimelineApi.js +1 -1
- lx_annotate-1.2.6/staticfiles/studyApi.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/studyCohortExportStore.js +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/terminologyStore.js +1 -1
- lx_annotate-1.2.6/staticfiles/timeHelpers.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/useAuthenticatedVideoStream.js +13 -13
- lx_annotate-1.2.6/staticfiles/useDebug.js +1 -0
- lx_annotate-1.2.6/staticfiles/useFindingSelectors.js +1 -0
- lx_annotate-1.2.6/staticfiles/useReportTemplates.css +1 -0
- lx_annotate-1.2.6/staticfiles/useReportTemplates.js +1 -0
- lx_annotate-1.2.6/staticfiles/useReportingKnowledgeBase.js +1 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/uv.lock +12 -335
- lx_annotate-1.2.4/lx_annotate/migrations/max_migration.txt +0 -1
- lx_annotate-1.2.4/staticfiles/AboutUs.js +0 -1
- lx_annotate-1.2.4/staticfiles/AdministrationPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/AdministrationPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/AiDatasetBucketsPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/AiDatasetBucketsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/AiDatasetSettingsPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/AiDatasetSettingsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnnotationDashboard.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnnotationDashboard.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnnotationDashboard2.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationCorrectionComponent.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationCorrectionComponent.js +0 -51
- lx_annotate-1.2.4/staticfiles/AnonymizationEvaluation.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationEvaluation.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationMetrics.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationMetrics.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationOverview.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationOverview.js +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationValidationComponent.css +0 -1
- lx_annotate-1.2.4/staticfiles/AnonymizationValidationComponent.js +0 -1
- lx_annotate-1.2.4/staticfiles/ApplicationSettingsPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ApplicationSettingsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/CaseResolutionPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/CaseSetupPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/CaseSetupPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/Dashboard.js +0 -1
- lx_annotate-1.2.4/staticfiles/Documentation.css +0 -1
- lx_annotate-1.2.4/staticfiles/Export.css +0 -1
- lx_annotate-1.2.4/staticfiles/Export.js +0 -1
- lx_annotate-1.2.4/staticfiles/FinalizedResultPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/FindingsCapturePage.js +0 -1
- lx_annotate-1.2.4/staticfiles/FrameAnnotation.css +0 -1
- lx_annotate-1.2.4/staticfiles/FrameAnnotation.js +0 -1
- lx_annotate-1.2.4/staticfiles/FrameSelectorPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/FrameSelectorPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/HubExport.css +0 -1
- lx_annotate-1.2.4/staticfiles/HubExport.js +0 -1
- lx_annotate-1.2.4/staticfiles/ModelTrainingPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ModelTrainingPage.js +0 -2
- lx_annotate-1.2.4/staticfiles/MonitoringPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/MonitoringPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/PageOverview.css +0 -1
- lx_annotate-1.2.4/staticfiles/PageOverview.js +0 -1
- lx_annotate-1.2.4/staticfiles/PatientDocumentsPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/PatientDocumentsPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/PatientMedicationPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/PatientOverview.css +0 -1
- lx_annotate-1.2.4/staticfiles/PatientOverview.js +0 -1
- lx_annotate-1.2.4/staticfiles/Profile.js +0 -1
- lx_annotate-1.2.4/staticfiles/ReportEditorPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportEditorPage.js +0 -4
- lx_annotate-1.2.4/staticfiles/ReportExportPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportExportPage.js +0 -3
- lx_annotate-1.2.4/staticfiles/ReportTemplateBuilderPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportTemplateBuilderPage.js +0 -11
- lx_annotate-1.2.4/staticfiles/ReportingShell.css +0 -1
- lx_annotate-1.2.4/staticfiles/ReportingShell.js +0 -1
- lx_annotate-1.2.4/staticfiles/ReportingWorklistPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/StudyCohortPage.css +0 -1
- lx_annotate-1.2.4/staticfiles/StudyCohortPage.js +0 -1
- lx_annotate-1.2.4/staticfiles/Timeline.css +0 -1
- lx_annotate-1.2.4/staticfiles/Timeline.js +0 -2
- lx_annotate-1.2.4/staticfiles/VideoExamination.css +0 -1
- lx_annotate-1.2.4/staticfiles/VideoExamination.js +0 -1
- lx_annotate-1.2.4/staticfiles/casesApi.js +0 -1
- lx_annotate-1.2.4/staticfiles/docs/objects.inv +0 -0
- lx_annotate-1.2.4/staticfiles/docs/searchindex.js +0 -1
- lx_annotate-1.2.4/staticfiles/examinationStore.js +0 -1
- lx_annotate-1.2.4/staticfiles/main.js +0 -39
- lx_annotate-1.2.4/staticfiles/mediaTypeStore.js +0 -1
- lx_annotate-1.2.4/staticfiles/patientExaminationStore.js +0 -1
- lx_annotate-1.2.4/staticfiles/patientService.js +0 -1
- lx_annotate-1.2.4/staticfiles/patientStore.js +0 -1
- lx_annotate-1.2.4/staticfiles/reportExportApi.js +0 -1
- lx_annotate-1.2.4/staticfiles/reportingError.js +0 -1
- lx_annotate-1.2.4/staticfiles/reportingIndicationContract.js +0 -1
- lx_annotate-1.2.4/staticfiles/studyApi.js +0 -1
- lx_annotate-1.2.4/staticfiles/timeHelpers.js +0 -1
- lx_annotate-1.2.4/staticfiles/useDebug.js +0 -1
- lx_annotate-1.2.4/staticfiles/useFindingSelectors.js +0 -1
- lx_annotate-1.2.4/staticfiles/useReportTemplates.css +0 -1
- lx_annotate-1.2.4/staticfiles/useReportTemplates.js +0 -1
- lx_annotate-1.2.4/staticfiles/useReportingKnowledgeBase.js +0 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/.gitignore +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/LICENSE +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/README.md +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/apps.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/celery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/checks.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/cli.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/file_watcher.py +15 -15
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_cleanup.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_contracts.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_envelope.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_health.py +1 -1
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_payloads.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_reconciliation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/hub_export_worker.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/node_provisioning.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_balance_worker.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_ingest.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_orchestration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_provider.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_publication.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_reconciliation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_recovery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_rekey.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_report_provider.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_resolver.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_telemetry.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/storage_transfer_client.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/hub/transfer_transport.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/check_hub_export_health.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/check_migration_compatibility.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/export_openapi.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/export_route_manifest.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/provision_hub_nodes.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/reap_verified_hub_exports.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/recover_runtime_data.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/repair_legacy_migration_history.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/repair_managed_payloads.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/run_filewatcher.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/runtime_acceptance.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/management/commands/verify_encrypted_storage.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migration_history_safety.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0001_outboundhubtransferjob.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0002_outboundhubtransferjob_local_cleanup_fields.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0003_outboundhubtransferjob_failure_class.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0004_storagenodeactionreceipt.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0005_storageoperatordispatchreceipt.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0006_storageartifactpublication.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/0007_outbound_hub_receipt_cleanup.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/migrations/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/configuration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/contracts.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/database.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/runtime.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/monitoring/service.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/operational_support.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/permissions.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/runtime_commands/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/services/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/services/access_management.py +2 -2
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/services/runtime_recovery.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/oidc.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/settings_base.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/settings_dev.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/settings/settings_prod.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/signals.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/storage/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/storage/encrypted.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/storage/encryption.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/tasks.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/templates/base.html +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/__init__.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/administration.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/anonymization_overview.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/application_settings.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/frame_annotation.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/hub_export.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/report_llm.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/study_export.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/lx_annotate/views/video_state_repair.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/manage.py +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/ColoReg.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/Comfortaa-Bold.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/Comfortaa-Regular.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/dateHelpers.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/.buildinfo +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/SETUP_GUIDE.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/api/index.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/ai-training-data-export.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/anonymization-validation-correction-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/asset-deployment.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/core-concept-contract.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/core-concept-readiness-verdict.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/core-concept-type-matrix.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/deployment-strategy.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/dtypes-findings-migration.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/encrypted-model-weights-inference.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/encrypted-storage-process.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/frame-annotation-availability.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/general-documentation.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/hub-export-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/hub-storage-load-balancing.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/openapi-type-generation.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/pypi.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/reporting-shell-aaa-testing.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/reporting-template-requirements-page.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/runtime-environment-contract-test.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/secure-backup-disaster-recovery.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/segment-annotation-workflow.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/terminology-delivery.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/guides/wheel-deployment.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_sources/index.md.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/basic.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/check-solid.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/clipboard.min.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/copy-button.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/copybutton.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/copybutton.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/copybutton_funcs.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/debug.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/doctools.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/file.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/language_data.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/minus.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/plus.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/pygments.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/scripts/furo-extensions.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/scripts/furo.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/scripts/furo.js.LICENSE.txt +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/scripts/furo.js.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/searchtools.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/skeleton.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/sphinx_highlight.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/styles/furo-extensions.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/styles/furo-extensions.css.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/styles/furo.css +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/docs/_static/styles/furo.css.map +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/img/favicon.png +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/nucleo-icons.eot +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/nucleo-icons.svg +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/nucleo-icons.ttf +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/nucleo-icons.woff +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/nucleo-icons.woff2 +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/pdf.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/pdf.worker.min.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/pdf.worker.min.mjs +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/reportTemplateLifecycleContext.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/reportingExaminationResolution.js +0 -0
- {lx_annotate-1.2.4 → lx_annotate-1.2.6}/staticfiles/reportingPresentation.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lx-annotate
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: This webapp provides a frontend interface for pseudonymizing and annotating data and applying AI predictions.
|
|
5
5
|
Author-email: Max Hild <hild_m@ukw.de>, "Thomas J. Lux" <lux_t1@ukw.de>
|
|
6
6
|
Maintainer: Hamza Zahid
|
|
@@ -29,9 +29,9 @@ Requires-Dist: django-webpack-loader>=0.7.0
|
|
|
29
29
|
Requires-Dist: django==6.0.3
|
|
30
30
|
Requires-Dist: djangorestframework>=3.12.4
|
|
31
31
|
Requires-Dist: drf-spectacular>=0.28.0
|
|
32
|
-
Requires-Dist: endoreg-db==1.2.
|
|
32
|
+
Requires-Dist: endoreg-db==1.2.7
|
|
33
33
|
Requires-Dist: gunicorn>=23.0.0
|
|
34
|
-
Requires-Dist: lx-dtypes==0.3.
|
|
34
|
+
Requires-Dist: lx-dtypes==0.3.2
|
|
35
35
|
Requires-Dist: mozilla-django-oidc>=4.0.1
|
|
36
36
|
Requires-Dist: numpy>=1.21.0
|
|
37
37
|
Requires-Dist: pillow>=9.0.0
|
|
@@ -12,6 +12,10 @@ from lx_annotate.views.administration import (
|
|
|
12
12
|
storage_operator_control,
|
|
13
13
|
storage_placement_preview,
|
|
14
14
|
)
|
|
15
|
+
from lx_annotate.views.ai_dataset_splits import (
|
|
16
|
+
dataset_split_plan_detail,
|
|
17
|
+
dataset_split_plans,
|
|
18
|
+
)
|
|
15
19
|
from lx_annotate.views.anonymization_overview import (
|
|
16
20
|
LifecycleAnonymizationOverviewView,
|
|
17
21
|
LifecycleUploadJobDismissView,
|
|
@@ -33,6 +37,16 @@ from lx_annotate.views.study_export import study_export_options, study_export_xl
|
|
|
33
37
|
from lx_annotate.views.video_state_repair import VideoStateRepairView
|
|
34
38
|
|
|
35
39
|
urlpatterns = [
|
|
40
|
+
path(
|
|
41
|
+
"settings/application/ai_datasets/<int:dataset_id>/split_plans/",
|
|
42
|
+
dataset_split_plans,
|
|
43
|
+
name="ai-dataset-split-plans",
|
|
44
|
+
),
|
|
45
|
+
path(
|
|
46
|
+
"settings/application/ai_datasets/<int:dataset_id>/split_plans/<int:plan_id>/",
|
|
47
|
+
dataset_split_plan_detail,
|
|
48
|
+
name="ai-dataset-split-plan-detail",
|
|
49
|
+
),
|
|
36
50
|
path(
|
|
37
51
|
"administration/monitoring/",
|
|
38
52
|
monitoring_snapshot,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"""ASGI config for lx-annotate."""
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
import os
|
|
4
6
|
|
|
5
7
|
from django.core.asgi import get_asgi_application
|
|
6
8
|
|
|
7
|
-
|
|
8
9
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lx_annotate.settings.settings_prod")
|
|
9
10
|
|
|
10
11
|
application = get_asgi_application()
|
|
@@ -1027,6 +1027,7 @@ def _validate_failed_job_for_operator_retry(
|
|
|
1027
1027
|
elif job.resource_kind == OutboundHubTransferJob.ResourceKind.REPORT:
|
|
1028
1028
|
if job.raw_pdf_file_id is None or not is_report_hub_export_eligible(
|
|
1029
1029
|
job.raw_pdf_file,
|
|
1030
|
+
verify_processed_media=True,
|
|
1030
1031
|
):
|
|
1031
1032
|
raise ValueError(
|
|
1032
1033
|
"The failed report transfer is no longer eligible for hub export.",
|
|
@@ -1171,7 +1172,7 @@ def _mark_report_for_hub_upload(
|
|
|
1171
1172
|
marked_by: Any,
|
|
1172
1173
|
) -> tuple[OutboundHubTransferJob, bool]:
|
|
1173
1174
|
report = RawPdfFile.objects.select_related("center").get(pk=resource_id)
|
|
1174
|
-
if not is_report_hub_export_eligible(report):
|
|
1175
|
+
if not is_report_hub_export_eligible(report, verify_processed_media=True):
|
|
1175
1176
|
raise ValueError(f"Report {resource_id} is not eligible for hub export.")
|
|
1176
1177
|
return OutboundHubTransferJob.objects.get_or_create(
|
|
1177
1178
|
raw_pdf_file=report,
|
|
@@ -276,22 +276,43 @@ def is_video_hub_export_eligible(video: VideoFile) -> bool:
|
|
|
276
276
|
return resolve_video_hub_export_state(video).transfer_eligible
|
|
277
277
|
|
|
278
278
|
|
|
279
|
-
def report_hub_export_blocked_reason(
|
|
279
|
+
def report_hub_export_blocked_reason(
|
|
280
|
+
report: RawPdfFile,
|
|
281
|
+
*,
|
|
282
|
+
verify_processed_media: bool = False,
|
|
283
|
+
) -> str:
|
|
280
284
|
if report.center is None:
|
|
281
285
|
return "source center missing"
|
|
282
286
|
state = report.state
|
|
283
|
-
if state is None or
|
|
287
|
+
if state is None or state.anonymization_status != AnonymizationState.VALIDATED:
|
|
284
288
|
return "not ready for export"
|
|
285
289
|
processed_file_sha256 = getattr(state, "processed_file_sha256", None)
|
|
286
290
|
if processed_file_sha256 is not None and not str(processed_file_sha256).strip():
|
|
287
291
|
return "processed media missing"
|
|
288
292
|
if not has_usable_processed_artifact(report):
|
|
289
293
|
return "processed media missing"
|
|
294
|
+
if verify_processed_media:
|
|
295
|
+
try:
|
|
296
|
+
actual_digest = sha256_file(report.processed_file)
|
|
297
|
+
except (OSError, TypeError, ValueError):
|
|
298
|
+
return "processed media unreadable"
|
|
299
|
+
if actual_digest != processed_file_sha256:
|
|
300
|
+
return "processed media hash mismatch"
|
|
290
301
|
return ""
|
|
291
302
|
|
|
292
303
|
|
|
293
|
-
def is_report_hub_export_eligible(
|
|
294
|
-
|
|
304
|
+
def is_report_hub_export_eligible(
|
|
305
|
+
report: RawPdfFile,
|
|
306
|
+
*,
|
|
307
|
+
verify_processed_media: bool = False,
|
|
308
|
+
) -> bool:
|
|
309
|
+
return (
|
|
310
|
+
report_hub_export_blocked_reason(
|
|
311
|
+
report,
|
|
312
|
+
verify_processed_media=verify_processed_media,
|
|
313
|
+
)
|
|
314
|
+
== ""
|
|
315
|
+
)
|
|
295
316
|
|
|
296
317
|
|
|
297
318
|
def _sync_outbound_jobs(
|
|
@@ -13,7 +13,6 @@ from typing import Any
|
|
|
13
13
|
from django.conf import settings
|
|
14
14
|
from django.http import HttpRequest, HttpResponse
|
|
15
15
|
from django.utils.deprecation import MiddlewareMixin
|
|
16
|
-
|
|
17
16
|
from endoreg_db.utils.file_operations import (
|
|
18
17
|
advisory_file_lock,
|
|
19
18
|
atomic_write_file,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Generated by Django 6.0.3 on 2026-09-11 08:21
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import django.db.models.deletion
|
|
5
|
+
from django.conf import settings
|
|
6
|
+
from django.db import migrations, models
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Migration(migrations.Migration):
|
|
10
|
+
dependencies = [
|
|
11
|
+
("endoreg_db", "0078_video_joined_dataset"),
|
|
12
|
+
("lx_annotate", "0007_outbound_hub_receipt_cleanup"),
|
|
13
|
+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
operations = [
|
|
17
|
+
migrations.CreateModel(
|
|
18
|
+
name="AIDatasetSplitPlan",
|
|
19
|
+
fields=[
|
|
20
|
+
(
|
|
21
|
+
"id",
|
|
22
|
+
models.BigAutoField(
|
|
23
|
+
auto_created=True,
|
|
24
|
+
primary_key=True,
|
|
25
|
+
serialize=False,
|
|
26
|
+
verbose_name="ID",
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
30
|
+
("snapshot", models.JSONField()),
|
|
31
|
+
(
|
|
32
|
+
"created_by",
|
|
33
|
+
models.ForeignKey(
|
|
34
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
35
|
+
to=settings.AUTH_USER_MODEL,
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
(
|
|
39
|
+
"dataset",
|
|
40
|
+
models.ForeignKey(
|
|
41
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
42
|
+
to="endoreg_db.aidataset",
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
],
|
|
46
|
+
options={
|
|
47
|
+
"ordering": ["-created_at", "-pk"],
|
|
48
|
+
},
|
|
49
|
+
),
|
|
50
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0008_aidatasetsplitplan
|
|
@@ -10,6 +10,39 @@ from django.db import models
|
|
|
10
10
|
User = get_user_model()
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
class AIDatasetSplitPlan(models.Model):
|
|
14
|
+
"""Immutable, validated annotation membership snapshot."""
|
|
15
|
+
|
|
16
|
+
dataset = models.ForeignKey("endoreg_db.AIDataSet", on_delete=models.PROTECT)
|
|
17
|
+
created_by = models.ForeignKey(User, on_delete=models.PROTECT)
|
|
18
|
+
created_at = models.DateTimeField(auto_now_add=True)
|
|
19
|
+
snapshot = models.JSONField()
|
|
20
|
+
|
|
21
|
+
def clean(self):
|
|
22
|
+
from pydantic import ValidationError as SchemaError
|
|
23
|
+
|
|
24
|
+
from lx_annotate.schemas.ai_dataset_splits import SplitSnapshot
|
|
25
|
+
|
|
26
|
+
super().clean()
|
|
27
|
+
try:
|
|
28
|
+
self.snapshot = SplitSnapshot.model_validate(self.snapshot).model_dump(
|
|
29
|
+
mode="json"
|
|
30
|
+
)
|
|
31
|
+
except SchemaError as error:
|
|
32
|
+
raise ValidationError(
|
|
33
|
+
{"snapshot": "Invalid split membership snapshot."}
|
|
34
|
+
) from error
|
|
35
|
+
|
|
36
|
+
def save(self, *args, **kwargs):
|
|
37
|
+
if not self._state.adding:
|
|
38
|
+
raise ValidationError("Split plans are immutable; create a new plan.")
|
|
39
|
+
self.full_clean()
|
|
40
|
+
return super().save(*args, **kwargs)
|
|
41
|
+
|
|
42
|
+
class Meta:
|
|
43
|
+
ordering = ["-created_at", "-pk"]
|
|
44
|
+
|
|
45
|
+
|
|
13
46
|
class StorageNodeActionReceipt(models.Model):
|
|
14
47
|
"""Unique, attributable replay receipt for one storage drain-state mutation."""
|
|
15
48
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Validated application contracts."""
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Versioned immutable membership contracts for patient-grouped splits."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Annotated, Literal, Self
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
|
8
|
+
|
|
9
|
+
PositiveId = Annotated[int, Field(strict=True, gt=0)]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SplitConfig(BaseModel):
|
|
13
|
+
model_config = ConfigDict(extra="forbid", strict=True)
|
|
14
|
+
|
|
15
|
+
name: str = Field(min_length=1, max_length=120)
|
|
16
|
+
k: int = Field(ge=2, le=20)
|
|
17
|
+
test_percent: int = Field(ge=1, le=50)
|
|
18
|
+
seed: int = Field(ge=0, le=2147483647)
|
|
19
|
+
|
|
20
|
+
@model_validator(mode="after")
|
|
21
|
+
def nonblank_name(self) -> Self:
|
|
22
|
+
self.name = self.name.strip()
|
|
23
|
+
if not self.name:
|
|
24
|
+
raise ValueError("A split name is required.")
|
|
25
|
+
return self
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class VideoMembership(BaseModel):
|
|
29
|
+
model_config = ConfigDict(extra="forbid", strict=True)
|
|
30
|
+
|
|
31
|
+
video_id: PositiveId
|
|
32
|
+
center_id: PositiveId
|
|
33
|
+
frame_ids: list[PositiveId]
|
|
34
|
+
image_annotation_ids: list[PositiveId]
|
|
35
|
+
segment_ids: list[PositiveId]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class PatientMembership(BaseModel):
|
|
39
|
+
model_config = ConfigDict(extra="forbid", strict=True)
|
|
40
|
+
|
|
41
|
+
patient_id: PositiveId
|
|
42
|
+
# None is the fixed test holdout. Otherwise this is the validation fold.
|
|
43
|
+
validation_fold: int | None = Field(ge=0)
|
|
44
|
+
videos: list[VideoMembership] = Field(min_length=1)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class SplitSnapshot(BaseModel):
|
|
48
|
+
model_config = ConfigDict(extra="forbid", strict=True)
|
|
49
|
+
|
|
50
|
+
schema_version: Literal["1.0"] = "1.0"
|
|
51
|
+
algorithm: Literal["patient_shuffle_v1"] = "patient_shuffle_v1"
|
|
52
|
+
config: SplitConfig
|
|
53
|
+
patients: list[PatientMembership] = Field(min_length=3)
|
|
54
|
+
|
|
55
|
+
@model_validator(mode="after")
|
|
56
|
+
def validate_partition(self) -> Self:
|
|
57
|
+
seen: dict[str, set[int]] = {
|
|
58
|
+
key: set()
|
|
59
|
+
for key in (
|
|
60
|
+
"patient",
|
|
61
|
+
"video",
|
|
62
|
+
"frame_ids",
|
|
63
|
+
"image_annotation_ids",
|
|
64
|
+
"segment_ids",
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
def unique(key: str, ids: list[int]) -> None:
|
|
69
|
+
if len(ids) != len(set(ids)) or seen[key].intersection(ids):
|
|
70
|
+
raise ValueError(f"Duplicate {key} membership.")
|
|
71
|
+
seen[key].update(ids)
|
|
72
|
+
|
|
73
|
+
folds: set[int | None] = set()
|
|
74
|
+
for patient in self.patients:
|
|
75
|
+
unique("patient", [patient.patient_id])
|
|
76
|
+
folds.add(patient.validation_fold)
|
|
77
|
+
for video in patient.videos:
|
|
78
|
+
unique("video", [video.video_id])
|
|
79
|
+
for key in ("frame_ids", "image_annotation_ids", "segment_ids"):
|
|
80
|
+
unique(key, getattr(video, key))
|
|
81
|
+
if not video.image_annotation_ids and not video.segment_ids:
|
|
82
|
+
raise ValueError("Every video must contain annotations.")
|
|
83
|
+
if bool(video.frame_ids) != bool(video.image_annotation_ids):
|
|
84
|
+
raise ValueError(
|
|
85
|
+
"Frame and image annotation membership must agree."
|
|
86
|
+
)
|
|
87
|
+
if folds != {None, *range(self.config.k)}:
|
|
88
|
+
raise ValueError(
|
|
89
|
+
"A nonempty test bucket and every validation fold are required."
|
|
90
|
+
)
|
|
91
|
+
return self
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"""Create deterministic patient partitions without reading or copying media."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import random
|
|
6
|
+
from collections import defaultdict
|
|
7
|
+
|
|
8
|
+
from endoreg_db.models import AIDataSet, VideoFile
|
|
9
|
+
|
|
10
|
+
from lx_annotate.schemas.ai_dataset_splits import (
|
|
11
|
+
PatientMembership,
|
|
12
|
+
SplitConfig,
|
|
13
|
+
SplitSnapshot,
|
|
14
|
+
VideoMembership,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def collect_membership(dataset: AIDataSet) -> dict[int, list[VideoMembership]]:
|
|
19
|
+
frames: dict[int, set[int]] = defaultdict(set)
|
|
20
|
+
annotations: dict[int, list[int]] = defaultdict(list)
|
|
21
|
+
segments: dict[int, list[int]] = defaultdict(list)
|
|
22
|
+
for annotation_id, frame_id, video_id in dataset.image_annotations.order_by(
|
|
23
|
+
"pk"
|
|
24
|
+
).values_list("pk", "frame_id", "frame__video_id"):
|
|
25
|
+
if video_id is None:
|
|
26
|
+
raise ValueError("Every annotated frame must belong to a video.")
|
|
27
|
+
frames[video_id].add(frame_id)
|
|
28
|
+
annotations[video_id].append(annotation_id)
|
|
29
|
+
for segment_id, video_id in dataset.video_annotations.order_by("pk").values_list(
|
|
30
|
+
"pk", "video_file_id"
|
|
31
|
+
):
|
|
32
|
+
if video_id is None:
|
|
33
|
+
raise ValueError("Every segment must belong to a video.")
|
|
34
|
+
segments[video_id].append(segment_id)
|
|
35
|
+
video_ids = set(annotations) | set(segments)
|
|
36
|
+
patients: dict[int, list[VideoMembership]] = defaultdict(list)
|
|
37
|
+
videos = (
|
|
38
|
+
VideoFile.objects.filter(pk__in=video_ids)
|
|
39
|
+
.select_related("examination")
|
|
40
|
+
.order_by("pk")
|
|
41
|
+
)
|
|
42
|
+
for video in videos:
|
|
43
|
+
direct = video.patient_id
|
|
44
|
+
examination = video.examination.patient_id if video.examination else None
|
|
45
|
+
if direct is not None and examination is not None and direct != examination:
|
|
46
|
+
raise ValueError(
|
|
47
|
+
"Conflicting patient associations; repair video patient links before splitting."
|
|
48
|
+
)
|
|
49
|
+
patient_id = direct if direct is not None else examination
|
|
50
|
+
if patient_id is None:
|
|
51
|
+
raise ValueError(
|
|
52
|
+
"Missing patient associations; link every video to a patient before splitting."
|
|
53
|
+
)
|
|
54
|
+
patients[patient_id].append(
|
|
55
|
+
VideoMembership(
|
|
56
|
+
video_id=video.pk,
|
|
57
|
+
center_id=video.center_id,
|
|
58
|
+
frame_ids=sorted(frames[video.pk]),
|
|
59
|
+
image_annotation_ids=annotations[video.pk],
|
|
60
|
+
segment_ids=segments[video.pk],
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return dict(patients)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def build_snapshot(
|
|
67
|
+
config: SplitConfig, membership: dict[int, list[VideoMembership]]
|
|
68
|
+
) -> SplitSnapshot:
|
|
69
|
+
patient_ids = sorted(membership)
|
|
70
|
+
random.Random(config.seed).shuffle(patient_ids)
|
|
71
|
+
test_count = max(1, (len(patient_ids) * config.test_percent + 50) // 100)
|
|
72
|
+
if len(patient_ids) - test_count < config.k:
|
|
73
|
+
raise ValueError(
|
|
74
|
+
"Too few patients: reserve the test holdout and at least one patient per validation fold."
|
|
75
|
+
)
|
|
76
|
+
return SplitSnapshot(
|
|
77
|
+
config=config,
|
|
78
|
+
patients=[
|
|
79
|
+
PatientMembership(
|
|
80
|
+
patient_id=patient_id,
|
|
81
|
+
validation_fold=(
|
|
82
|
+
None if index < test_count else (index - test_count) % config.k
|
|
83
|
+
),
|
|
84
|
+
videos=membership[patient_id],
|
|
85
|
+
)
|
|
86
|
+
for index, patient_id in enumerate(patient_ids)
|
|
87
|
+
],
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def bucket_summary(patients: list[PatientMembership]) -> dict[str, int]:
|
|
92
|
+
videos = [video for patient in patients for video in patient.videos]
|
|
93
|
+
return {
|
|
94
|
+
"patient_count": len(patients),
|
|
95
|
+
"video_count": len(videos),
|
|
96
|
+
"frame_count": sum(len(video.frame_ids) for video in videos),
|
|
97
|
+
"image_annotation_count": sum(
|
|
98
|
+
len(video.image_annotation_ids) for video in videos
|
|
99
|
+
),
|
|
100
|
+
"segment_count": sum(len(video.segment_ids) for video in videos),
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def summarize_snapshot(snapshot: SplitSnapshot) -> dict:
|
|
105
|
+
patients = snapshot.patients
|
|
106
|
+
return {
|
|
107
|
+
"config": snapshot.config.model_dump(),
|
|
108
|
+
"total": bucket_summary(patients),
|
|
109
|
+
"test": bucket_summary(
|
|
110
|
+
[patient for patient in patients if patient.validation_fold is None]
|
|
111
|
+
),
|
|
112
|
+
"folds": [
|
|
113
|
+
{
|
|
114
|
+
"index": index,
|
|
115
|
+
"training": bucket_summary(
|
|
116
|
+
[
|
|
117
|
+
p
|
|
118
|
+
for p in patients
|
|
119
|
+
if p.validation_fold is not None and p.validation_fold != index
|
|
120
|
+
]
|
|
121
|
+
),
|
|
122
|
+
"validation": bucket_summary(
|
|
123
|
+
[p for p in patients if p.validation_fold == index]
|
|
124
|
+
),
|
|
125
|
+
}
|
|
126
|
+
for index in range(snapshot.config.k)
|
|
127
|
+
],
|
|
128
|
+
}
|
|
@@ -21,7 +21,7 @@ from lx_dtypes.models.contracts.knowledge_base_graph import (
|
|
|
21
21
|
)
|
|
22
22
|
from pydantic import BaseModel, ConfigDict, Field
|
|
23
23
|
|
|
24
|
-
PROMPT_VERSION = "clinical-graph-report-
|
|
24
|
+
PROMPT_VERSION = "clinical-graph-report-v2"
|
|
25
25
|
MAX_INPUT_BYTES = 100_000
|
|
26
26
|
MAX_RESPONSE_BYTES = 200_000
|
|
27
27
|
SYSTEM_PROMPT = """You draft clinical examination reports for clinician review.
|
|
@@ -80,6 +80,7 @@ class GenerateReportRequest(BaseModel):
|
|
|
80
80
|
patient_examination_id: int = Field(gt=0)
|
|
81
81
|
template_name: str = Field(min_length=1, max_length=200)
|
|
82
82
|
language: Literal["de", "en"]
|
|
83
|
+
verbosity: Literal["short", "standard", "detailed"] = "standard"
|
|
83
84
|
graph: GraphReference
|
|
84
85
|
documented_findings: list[JsonObject] = Field(max_length=200)
|
|
85
86
|
section_notes: list[SectionNote] = Field(max_length=100)
|
|
@@ -265,10 +266,30 @@ def build_messages(
|
|
|
265
266
|
raise ReportLlmError(
|
|
266
267
|
"invalid_template", "Die gewählte Vorlage ist nicht veröffentlicht.", 409
|
|
267
268
|
)
|
|
269
|
+
template_data = template.model_dump(mode="json")
|
|
270
|
+
verbosity_options = template_data.get("verbosity_options")
|
|
271
|
+
if not isinstance(verbosity_options, list):
|
|
272
|
+
raise ReportLlmError(
|
|
273
|
+
"template_contract_unavailable",
|
|
274
|
+
"Die installierte lx-dtypes-Version unterstützt den Berichtsumfang noch nicht. Bitte das Terminologiepaket aktualisieren.",
|
|
275
|
+
)
|
|
276
|
+
if data.verbosity not in verbosity_options:
|
|
277
|
+
raise ReportLlmError(
|
|
278
|
+
"invalid_verbosity",
|
|
279
|
+
"Dieser Berichtsumfang wird von der Vorlage nicht unterstützt.",
|
|
280
|
+
400,
|
|
281
|
+
)
|
|
282
|
+
style = {
|
|
283
|
+
"short": "Use compact clinical clauses with minimal connective wording.",
|
|
284
|
+
"standard": "Use concise complete clinical sentences.",
|
|
285
|
+
"detailed": "Use full clinical sentences and explicit labels for every documented classification and measurement.",
|
|
286
|
+
}[data.verbosity]
|
|
287
|
+
style += " Preserve ALL documented facts at every verbosity level. Never add facts or change required findings."
|
|
268
288
|
context = graph.model_dump(mode="json")
|
|
269
|
-
context["report_templates"] = [
|
|
289
|
+
context["report_templates"] = [template_data]
|
|
270
290
|
evidence = {
|
|
271
291
|
"language": "German" if data.language == "de" else "English",
|
|
292
|
+
"verbosity": data.verbosity,
|
|
272
293
|
"terminology_graph": context,
|
|
273
294
|
"selected_template": data.template_name,
|
|
274
295
|
"documented_findings": data.documented_findings,
|
|
@@ -282,7 +303,7 @@ def build_messages(
|
|
|
282
303
|
413,
|
|
283
304
|
)
|
|
284
305
|
return [
|
|
285
|
-
{"role": "system", "content": SYSTEM_PROMPT},
|
|
306
|
+
{"role": "system", "content": SYSTEM_PROMPT + "\nREPORT STYLE:\n" + style},
|
|
286
307
|
{"role": "user", "content": content},
|
|
287
308
|
]
|
|
288
309
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import Annotated
|
|
5
3
|
import ast
|
|
6
4
|
import json
|
|
7
5
|
import os
|
|
8
6
|
import shlex
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Annotated
|
|
9
|
+
|
|
9
10
|
from pydantic import AliasChoices, Field, field_validator, model_validator
|
|
10
11
|
from pydantic_settings import BaseSettings, NoDecode, SettingsConfigDict
|
|
11
12
|
|
|
@@ -7,19 +7,21 @@ These settings prioritize speed and isolation:
|
|
|
7
7
|
- External services (Keycloak) mocked or disabled
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
10
12
|
import os
|
|
11
13
|
import tempfile
|
|
12
14
|
from copy import deepcopy
|
|
13
|
-
from typing import Any, cast
|
|
14
15
|
from pathlib import Path
|
|
16
|
+
from typing import Any, cast
|
|
15
17
|
|
|
16
18
|
# The base settings fail closed when no deployment secret is configured.
|
|
17
19
|
# Tests supply their explicitly isolated, non-production key before importing base.
|
|
18
20
|
os.environ.setdefault("DJANGO_SECRET_KEY", "test-insecure-key-do-not-use-00000000")
|
|
19
21
|
|
|
20
22
|
# Import everything from base
|
|
21
|
-
from .settings_base import * # noqa: F403
|
|
22
23
|
from . import settings_base as base
|
|
24
|
+
from .settings_base import * # noqa: F403
|
|
23
25
|
|
|
24
26
|
# -----------------------------------------------------------------------------
|
|
25
27
|
# 1. SETUP MUTABLE COPIES
|