borgitory 2.8.0__tar.gz → 3.0.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.
- {borgitory-2.8.0 → borgitory-3.0.0}/PKG-INFO +4 -5
- {borgitory-2.8.0 → borgitory-3.0.0}/pyproject.toml +5 -8
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/env.py +3 -9
- borgitory-3.0.0/src/borgitory/alembic/versions/1bf41c3dc043_multiple_source_paths_for_schedules.py +52 -0
- borgitory-3.0.0/src/borgitory/alembic/versions/256b9fa9d31f_manual_only_and_dry_run_schedules.py +47 -0
- borgitory-3.0.0/src/borgitory/alembic/versions/8390ab2be88a_migrate_notifications_to_apprise.py +379 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/notifications.py +193 -112
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/repositories.py +24 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/schedules.py +5 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/tabs.py +3 -18
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/dependencies.py +14 -81
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/factories/service_factory.py +0 -41
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/main.py +8 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/database.py +20 -4
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/enums.py +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/schemas.py +89 -10
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/__init__.py +1 -5
- borgitory-3.0.0/src/borgitory/protocols/notification_protocols.py +57 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +12 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/configuration_service.py +13 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/encryption_service.py +12 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_manager_factory.py +0 -13
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_models.py +0 -3
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_service.py +23 -12
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +8 -4
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +20 -52
- borgitory-3.0.0/src/borgitory/services/notifications/__init__.py +18 -0
- borgitory-3.0.0/src/borgitory/services/notifications/apprise_catalog.py +340 -0
- borgitory-3.0.0/src/borgitory/services/notifications/apprise_storage.py +104 -0
- borgitory-3.0.0/src/borgitory/services/notifications/apprise_url_builder.py +153 -0
- borgitory-3.0.0/src/borgitory/services/notifications/config_service.py +311 -0
- borgitory-3.0.0/src/borgitory/services/notifications/service.py +322 -0
- borgitory-3.0.0/src/borgitory/services/notifications/types.py +49 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/scheduling/schedule_service.py +109 -34
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/scheduling/scheduler_service.py +42 -9
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/task_definition_builder.py +32 -13
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/base.html +18 -16
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/contents_modal.html +6 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/directory_contents.html +6 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/list_content.html +2 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/repository_selector.html +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/tab.html +2 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/backups/manual_form.html +4 -5
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +4 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +21 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/debug/debug_panel.html +4 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/debug/tab.html +5 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/job_details_streaming.html +2 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/task_item_static.html +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/task_item_streaming.html +3 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/navigation.html +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/navigation_nav.html +12 -0
- borgitory-3.0.0/src/borgitory/templates/partials/notifications/add_form.html +40 -0
- borgitory-3.0.0/src/borgitory/templates/partials/notifications/apprise_fields.html +118 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/config_list_content.html +15 -6
- borgitory-3.0.0/src/borgitory/templates/partials/notifications/edit_form.html +55 -0
- borgitory-3.0.0/src/borgitory/templates/partials/notifications/manual_fields.html +34 -0
- borgitory-3.0.0/src/borgitory/templates/partials/notifications/service_select.html +42 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/config_form_error.html +5 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/config_form_success.html +11 -4
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/config_list_content.html +3 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/list_content.html +4 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +1 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/config_list_content.html +3 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/create_form.html +40 -13
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/create_success.html +7 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/cron_expression_form.html +9 -5
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/edit_form.html +35 -15
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/schedule_list_content.html +33 -13
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/shared/notification.html +29 -9
- borgitory-3.0.0/src/borgitory/templates/partials/shared/source_path_row.html +18 -0
- borgitory-3.0.0/src/borgitory/templates/partials/shared/source_paths_input.html +19 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/conftest.py +0 -5
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/fixtures/job_fixtures.py +1 -1
- borgitory-3.0.0/tests/fixtures/notification_fixtures.py +59 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/fixtures/registry_fixtures.py +0 -89
- borgitory-3.0.0/tests/integration/notifications/test_notification_configs_api.py +490 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_manual_run_apscheduler.py +111 -3
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_schedule_creation_api.py +66 -15
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_schedules_api.py +276 -11
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_jobs_api.py +47 -5
- borgitory-3.0.0/tests/unit/cloud_providers/test_sftp_storage.py +214 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_storage.py +21 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/factories/test_service_factory.py +0 -55
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_composite_job_critical_failure.py +1 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_notification_messages_hooks.py +20 -24
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_task_definition_integration.py +2 -2
- borgitory-3.0.0/tests/unit/jobs/test_backup_source_paths.py +104 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_ignore_lock_functionality.py +2 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_manager.py +2 -2
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_manager_comprehensive.py +14 -8
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_manager_task_execution.py +17 -14
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_service.py +42 -3
- borgitory-3.0.0/tests/unit/notifications/test_apprise_catalog.py +132 -0
- borgitory-3.0.0/tests/unit/notifications/test_apprise_url_builder.py +152 -0
- borgitory-3.0.0/tests/unit/notifications/test_notification_config_service.py +273 -0
- borgitory-3.0.0/tests/unit/notifications/test_notification_service.py +280 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/protocols/test_protocol_compliance.py +5 -10
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/test_next_run_update.py +1 -1
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/test_schedule_service.py +219 -18
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/test_schedule_validation_service.py +90 -5
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/test_scheduler_service.py +17 -0
- borgitory-3.0.0/tests/unit/test_migrate_notifications_to_apprise.py +367 -0
- borgitory-3.0.0/tests/unit/test_multiple_source_paths_migration.py +107 -0
- borgitory-3.0.0/tests/unit/test_source_paths_schema.py +72 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_task_definition_builder.py +79 -7
- borgitory-2.8.0/src/borgitory/protocols/notification_protocols.py +0 -94
- borgitory-2.8.0/src/borgitory/services/notifications/__init__.py +0 -41
- borgitory-2.8.0/src/borgitory/services/notifications/config_service.py +0 -433
- borgitory-2.8.0/src/borgitory/services/notifications/providers/__init__.py +0 -17
- borgitory-2.8.0/src/borgitory/services/notifications/providers/base.py +0 -104
- borgitory-2.8.0/src/borgitory/services/notifications/providers/discord_provider.py +0 -320
- borgitory-2.8.0/src/borgitory/services/notifications/providers/pushover_provider.py +0 -228
- borgitory-2.8.0/src/borgitory/services/notifications/providers/telegram_provider.py +0 -320
- borgitory-2.8.0/src/borgitory/services/notifications/registry.py +0 -317
- borgitory-2.8.0/src/borgitory/services/notifications/registry_factory.py +0 -141
- borgitory-2.8.0/src/borgitory/services/notifications/service.py +0 -451
- borgitory-2.8.0/src/borgitory/services/notifications/types.py +0 -90
- borgitory-2.8.0/src/borgitory/templates/partials/notifications/add_form.html +0 -43
- borgitory-2.8.0/src/borgitory/templates/partials/notifications/edit_form.html +0 -54
- borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/discord_fields.html +0 -60
- borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/pushover_fields.html +0 -126
- borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/telegram_fields.html +0 -84
- borgitory-2.8.0/tests/integration/notifications/test_notification_configs_api.py +0 -318
- borgitory-2.8.0/tests/integration/notifications/test_notification_edit_integration.py +0 -401
- borgitory-2.8.0/tests/unit/notifications/test_discord_provider.py +0 -281
- borgitory-2.8.0/tests/unit/notifications/test_notification_config_service.py +0 -527
- borgitory-2.8.0/tests/unit/notifications/test_pushover_provider.py +0 -360
- borgitory-2.8.0/tests/unit/notifications/test_telegram_provider.py +0 -1024
- {borgitory-2.8.0 → borgitory-3.0.0}/.gitignore +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/LICENSE +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/README.md +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/README +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/script.py.mako +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/alembic.ini +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/auth.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/backups.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/cancel_on_disconnect.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/cloud_sync/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/cloud_sync/cloud_sync.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/cloud_sync/s3.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/debug.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/jobs.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/packages.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/prune.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/repository_check_configs.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/repository_stats.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/api/shared.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/cli.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/config/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/config/command_runner_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/config/job_manager_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/config_module.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/constants/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/constants/retention.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/custom_types.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/factories/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/borg_info.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/job_results.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/patterns.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/models/repository_dtos.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/cloud_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/command_executor_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/command_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/environment_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/file_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/job_output_manager_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/job_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/path_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/repository_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/storage_protocols.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/protocols/system_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/py.typed +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/archives/archive_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/archives/archive_models.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/borg/borg_pattern_validation_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/borg/shell_pattern.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/borg_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/orchestration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/registry.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/registry_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/base.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/pcloud_storage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/s3_storage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/storage/smb_storage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_providers/types.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cloud_sync_config_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/command_execution/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/command_execution/linux_command_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/command_execution/wsl_command_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/cron_description_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/debug_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/files/file_service_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/files/linux_file_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/files/wsl_file_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/hooks/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/hooks/hook_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_database_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_output_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_queue_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_render_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/job_stream_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/check_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/migrations/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/migrations/migration_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/migrations/migration_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/package_manager_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/path/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/path/path_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/path/path_service_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/path/platform_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/prune_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/rclone_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/rclone_types.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/recovery_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/repositories/repository_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/repositories/repository_stats_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/scheduling/cron_utils.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/scheduling/hook_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/scheduling/pattern_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/simple_command_runner.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/startup/package_restoration_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/system/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/system/system_operations.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/upcoming_backups_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/volumes/file_system_interface.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/services/volumes/os_file_system.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/css/modern-components.css +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/css/tailwind-input.css +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/favicon.ico +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/favicon/site.webmanifest +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/js/app.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/js/components/jobs.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/js/components/navigation.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/vendor/chart.min.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/static/vendor/htmx.min.js +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/index.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/login.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/macros/datetime.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/error_message.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/login_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/login_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/register_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/auth/register_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/backups/operations.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/backups/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/pcloud/pcloud_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/common/error_message.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/jobs/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/install_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/install_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/search_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/search_results.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/packages/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/action_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/action_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/config_form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/create_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/policies.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/prune/update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/form_create.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/import/form_import.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/modal/borg_info.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/modal/details_modal.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repositories/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/form.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/list.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/templates/partials/statistics/tab.html +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/datetime_utils.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/path_prefix.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/secure_path.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/security.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/template_paths.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/src/borgitory/utils/template_responses.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/e2e/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/e2e/cloud_providers/test_cloud_providers.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/e2e/conftest.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/e2e/pytest.e2e.ini +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/e2e/test_navigation.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/fixtures/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/archives/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/archives/test_archive_browser_htmx.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/auth/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/auth/test_auth_htmx.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/auth/test_auth_redirect_flow.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/auth/test_main_login_page.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/cloud_sync/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/cloud_sync/test_cloud_sync_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/cloud_sync/test_s3_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/conftest.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/jobs/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/jobs/test_job_stop_api_simple.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/jobs/test_job_stop_integration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/jobs/test_jobs_api_sse.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/notifications/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/packages/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/packages/test_package_selection_endpoints.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/repositories/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/repositories/test_repositories_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/repositories/test_repository_check_configs_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/repositories/test_repository_management_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/repositories/test_repository_stats_html.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_cron_description_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_cron_description_htmx_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_schedules_hooks_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/schedules/test_schedules_patterns_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_app_startup.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_backups_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_basic.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_basic_endpoints.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_di_testing_infrastructure.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_prune_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_repository_archives_navigation.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/integration/test_tabs_api.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/archives/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/archives/test_archive_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/archives/test_archive_manager_caching.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/borg/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/borg/test_borg_service_core.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_display_details.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_orchestration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_pcloud_storage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_provider_validation.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_registry.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_registry_integration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_s3_provider_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_schema_validation.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_smb_storage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/cloud_providers/test_types.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/command_execution/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/command_execution/test_linux_command_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/command_execution/test_wsl_command_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/factories/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_api_critical_hooks.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_critical_hook_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_critical_hook_execution.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_hook_config.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_hook_execution_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/hooks/test_job_manager_critical_hooks.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/conftest.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_compact_task_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_database_integration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_database_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_event_broadcaster.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_executor.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_executor_comprehensive.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_manager_factory.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_manager_stop.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_output_manager.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_render_service_coverage.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_render_service_new_architecture.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_stop_functionality.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_stop_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_job_stream_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/jobs/test_sse_multiline_formatting.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/notifications/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/packages/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/packages/test_package_database_integration.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/packages/test_package_manager_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/path/test_platform_service_macos.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/protocols/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/protocols/protocol_testing_utils.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/protocols/test_simple_command_runner_protocol.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/repositories/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/repositories/test_repository_check_config_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/repositories/test_repository_management_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/repositories/test_repository_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/repositories/test_repository_stats_service_unit.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/schedules/test_validate_patterns_json.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/scheduling/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/scheduling/test_cron_utils.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/scheduling/test_hook_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/scheduling/test_pattern_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/services/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/services/migrations/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/services/migrations/test_migration_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/services/test_borg_pattern_validation_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/templates/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/templates/test_current_jobs_template.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_cache_dir_functionality.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_cache_dir_normalization.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_cron_description_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_database_models.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_datetime_utils.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_debug_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_dependencies.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_job_manager_proper_di.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_path_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_prune_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_recovery_service.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_retention_constants.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_secure_borg_command_env.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_secure_path_comprehensive.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_simple_command_runner.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_streaming_edge_cases.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/test_streaming_fixes.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/utils/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/unit/utils/test_path_prefix.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/utils/__init__.py +0 -0
- {borgitory-2.8.0 → borgitory-3.0.0}/tests/utils/di_testing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: borgitory
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities.
|
|
5
5
|
Project-URL: Homepage, https://borgitory.com
|
|
6
6
|
Project-URL: Repository, https://github.com/mlapaglia/Borgitory
|
|
@@ -39,9 +39,9 @@ Classifier: Topic :: System :: Archiving :: Backup
|
|
|
39
39
|
Classifier: Topic :: System :: Systems Administration
|
|
40
40
|
Requires-Python: >=3.14
|
|
41
41
|
Requires-Dist: aiofiles>=25.1.0
|
|
42
|
-
Requires-Dist: aiohttp>=3.13.3
|
|
43
42
|
Requires-Dist: aiosqlite>=0.21.0
|
|
44
43
|
Requires-Dist: alembic>=1.18.2
|
|
44
|
+
Requires-Dist: apprise<3,>=2.0.1
|
|
45
45
|
Requires-Dist: apscheduler>=3.11.2
|
|
46
46
|
Requires-Dist: bcrypt>=5.0.0
|
|
47
47
|
Requires-Dist: cron-descriptor>=2.0.6
|
|
@@ -59,7 +59,7 @@ Requires-Dist: urllib3>=2.6.3
|
|
|
59
59
|
Requires-Dist: uvicorn[standard]>=0.40.0
|
|
60
60
|
Provides-Extra: dev
|
|
61
61
|
Requires-Dist: debugpy>=1.8.20; extra == 'dev'
|
|
62
|
-
Requires-Dist: djlint>=1.
|
|
62
|
+
Requires-Dist: djlint>=1.46.4; extra == 'dev'
|
|
63
63
|
Requires-Dist: httpx>=0.28.1; extra == 'dev'
|
|
64
64
|
Requires-Dist: mypy>=1.19.1; extra == 'dev'
|
|
65
65
|
Requires-Dist: pre-commit>=4.5.1; extra == 'dev'
|
|
@@ -68,7 +68,6 @@ Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
|
68
68
|
Requires-Dist: pytest-playwright>=0.7.2; extra == 'dev'
|
|
69
69
|
Requires-Dist: pytest>=9.0.2; extra == 'dev'
|
|
70
70
|
Requires-Dist: ruff>=0.15.0; extra == 'dev'
|
|
71
|
-
Requires-Dist: sqlalchemy[mypy]>=2.0.46; extra == 'dev'
|
|
72
71
|
Requires-Dist: types-aiofiles>=25.1.0.20251011; extra == 'dev'
|
|
73
72
|
Requires-Dist: types-python-dateutil>=2.9.0.20260124; extra == 'dev'
|
|
74
73
|
Description-Content-Type: text/markdown
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "borgitory"
|
|
7
|
-
version = "
|
|
7
|
+
version = "3.0.0"
|
|
8
8
|
description = "A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {file = "LICENSE"}
|
|
@@ -25,9 +25,9 @@ classifiers = [
|
|
|
25
25
|
requires-python = ">=3.14"
|
|
26
26
|
dependencies = [
|
|
27
27
|
"aiofiles>=25.1.0",
|
|
28
|
-
"aiohttp>=3.13.3",
|
|
29
28
|
"aiosqlite>=0.21.0",
|
|
30
29
|
"alembic>=1.18.2",
|
|
30
|
+
"apprise>=2.0.1,<3",
|
|
31
31
|
"apscheduler>=3.11.2",
|
|
32
32
|
"bcrypt>=5.0.0",
|
|
33
33
|
"cron-descriptor>=2.0.6",
|
|
@@ -48,7 +48,7 @@ dependencies = [
|
|
|
48
48
|
[project.optional-dependencies]
|
|
49
49
|
dev = [
|
|
50
50
|
"debugpy>=1.8.20",
|
|
51
|
-
"djlint>=1.
|
|
51
|
+
"djlint>=1.46.4",
|
|
52
52
|
"httpx>=0.28.1",
|
|
53
53
|
"mypy>=1.19.1",
|
|
54
54
|
"pre-commit>=4.5.1",
|
|
@@ -57,7 +57,6 @@ dev = [
|
|
|
57
57
|
"pytest-cov>=7.0.0",
|
|
58
58
|
"pytest-playwright>=0.7.2",
|
|
59
59
|
"ruff>=0.15.0",
|
|
60
|
-
"sqlalchemy[mypy]>=2.0.46",
|
|
61
60
|
"types-python-dateutil>=2.9.0.20260124",
|
|
62
61
|
"types-aiofiles>=25.1.0.20251011",
|
|
63
62
|
]
|
|
@@ -118,7 +117,7 @@ line-length = 88
|
|
|
118
117
|
indent-width = 4
|
|
119
118
|
|
|
120
119
|
# Assume Python 3.14+.
|
|
121
|
-
target-version = "
|
|
120
|
+
target-version = "3.0.0"
|
|
122
121
|
|
|
123
122
|
[tool.ruff.lint]
|
|
124
123
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -187,7 +186,7 @@ exclude_lines = [
|
|
|
187
186
|
|
|
188
187
|
[tool.mypy]
|
|
189
188
|
# Basic settings
|
|
190
|
-
python_version = "
|
|
189
|
+
python_version = "3.0.0"
|
|
191
190
|
strict = true
|
|
192
191
|
|
|
193
192
|
# Display options
|
|
@@ -217,7 +216,6 @@ files = ["src"]
|
|
|
217
216
|
# Plugins
|
|
218
217
|
plugins = [
|
|
219
218
|
"pydantic.mypy",
|
|
220
|
-
"sqlalchemy.ext.mypy.plugin",
|
|
221
219
|
]
|
|
222
220
|
|
|
223
221
|
[tool.pydantic-mypy]
|
|
@@ -229,7 +227,6 @@ warn_untyped_fields = true
|
|
|
229
227
|
[[tool.mypy.overrides]]
|
|
230
228
|
module = [
|
|
231
229
|
"aiofiles.*",
|
|
232
|
-
"aiohttp.*",
|
|
233
230
|
"alembic.*",
|
|
234
231
|
"apscheduler.*",
|
|
235
232
|
"bcrypt.*",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
3
|
from logging.config import fileConfig
|
|
4
|
-
from typing import Optional
|
|
4
|
+
from typing import Optional
|
|
5
5
|
|
|
6
6
|
from sqlalchemy import engine_from_config
|
|
7
7
|
from sqlalchemy import pool
|
|
8
8
|
from sqlalchemy.schema import SchemaItem
|
|
9
9
|
|
|
10
10
|
from alembic import context
|
|
11
|
+
from alembic.runtime.environment import NameFilterType
|
|
11
12
|
|
|
12
13
|
# Add the project root and src directory to the Python path
|
|
13
14
|
sys.path.insert(0, os.path.abspath("."))
|
|
@@ -41,14 +42,7 @@ target_metadata = Base.metadata
|
|
|
41
42
|
def include_object(
|
|
42
43
|
object: SchemaItem,
|
|
43
44
|
name: Optional[str],
|
|
44
|
-
type_:
|
|
45
|
-
"schema",
|
|
46
|
-
"table",
|
|
47
|
-
"column",
|
|
48
|
-
"index",
|
|
49
|
-
"unique_constraint",
|
|
50
|
-
"foreign_key_constraint",
|
|
51
|
-
],
|
|
45
|
+
type_: NameFilterType,
|
|
52
46
|
reflected: bool,
|
|
53
47
|
compare_to: Optional[SchemaItem],
|
|
54
48
|
) -> bool:
|
borgitory-3.0.0/src/borgitory/alembic/versions/1bf41c3dc043_multiple_source_paths_for_schedules.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Multiple source paths for schedules
|
|
2
|
+
|
|
3
|
+
Revision ID: 1bf41c3dc043
|
|
4
|
+
Revises: 8390ab2be88a
|
|
5
|
+
Create Date: 2026-10-11 12:00:00.000000
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Sequence, Union
|
|
10
|
+
|
|
11
|
+
from alembic import op
|
|
12
|
+
import sqlalchemy as sa
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# revision identifiers, used by Alembic.
|
|
16
|
+
revision: str = "1bf41c3dc043"
|
|
17
|
+
down_revision: Union[str, Sequence[str], None] = "8390ab2be88a"
|
|
18
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
19
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def upgrade() -> None:
|
|
23
|
+
"""Upgrade schema."""
|
|
24
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
25
|
+
batch_op.add_column(
|
|
26
|
+
sa.Column("source_paths", sa.JSON(), nullable=False, server_default="[]")
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
# Empty source_path meant maintenance-only; that becomes an empty list.
|
|
30
|
+
op.execute(
|
|
31
|
+
"UPDATE schedules SET source_paths = json_array(trim(source_path)) "
|
|
32
|
+
"WHERE source_path IS NOT NULL AND trim(source_path) != ''"
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
36
|
+
batch_op.drop_column("source_path")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def downgrade() -> None:
|
|
40
|
+
"""Downgrade schema."""
|
|
41
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
42
|
+
batch_op.add_column(
|
|
43
|
+
sa.Column("source_path", sa.String(), nullable=False, server_default="")
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
# Only a single path can be represented; keep the first one.
|
|
47
|
+
op.execute(
|
|
48
|
+
"UPDATE schedules SET source_path = coalesce(json_extract(source_paths, '$[0]'), '')"
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
52
|
+
batch_op.drop_column("source_paths")
|
borgitory-3.0.0/src/borgitory/alembic/versions/256b9fa9d31f_manual_only_and_dry_run_schedules.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Manual only and dry run schedules
|
|
2
|
+
|
|
3
|
+
Revision ID: 256b9fa9d31f
|
|
4
|
+
Revises: 2628b151e709
|
|
5
|
+
Create Date: 2026-10-08 12:00:00.000000
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Sequence, Union
|
|
10
|
+
|
|
11
|
+
from alembic import op
|
|
12
|
+
import sqlalchemy as sa
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# revision identifiers, used by Alembic.
|
|
16
|
+
revision: str = "256b9fa9d31f"
|
|
17
|
+
down_revision: Union[str, Sequence[str], None] = "2628b151e709"
|
|
18
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
19
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def upgrade() -> None:
|
|
23
|
+
"""Upgrade schema."""
|
|
24
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
25
|
+
batch_op.alter_column(
|
|
26
|
+
"cron_expression", existing_type=sa.VARCHAR(), nullable=True
|
|
27
|
+
)
|
|
28
|
+
batch_op.add_column(
|
|
29
|
+
sa.Column(
|
|
30
|
+
"dry_run", sa.Boolean(), nullable=False, server_default=sa.false()
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def downgrade() -> None:
|
|
36
|
+
"""Downgrade schema."""
|
|
37
|
+
# Manual-only schedules have no cron; give them a placeholder and disable them
|
|
38
|
+
# so they don't start running automatically after the downgrade.
|
|
39
|
+
op.execute(
|
|
40
|
+
"UPDATE schedules SET cron_expression = '0 2 * * *', enabled = 0 "
|
|
41
|
+
"WHERE cron_expression IS NULL"
|
|
42
|
+
)
|
|
43
|
+
with op.batch_alter_table("schedules", schema=None) as batch_op:
|
|
44
|
+
batch_op.drop_column("dry_run")
|
|
45
|
+
batch_op.alter_column(
|
|
46
|
+
"cron_expression", existing_type=sa.VARCHAR(), nullable=False
|
|
47
|
+
)
|
borgitory-3.0.0/src/borgitory/alembic/versions/8390ab2be88a_migrate_notifications_to_apprise.py
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
"""Migrate notification configs to Apprise
|
|
2
|
+
|
|
3
|
+
Converts Pushover, Discord and Telegram notification configs to the Apprise
|
|
4
|
+
storage format. Rows that cannot be converted are disabled and flagged so the
|
|
5
|
+
user can re-configure them; this migration never fails on bad data.
|
|
6
|
+
|
|
7
|
+
This migration is intentionally self-contained (no imports from the application's
|
|
8
|
+
notification code) so later refactors cannot change what it does.
|
|
9
|
+
|
|
10
|
+
Revision ID: 8390ab2be88a
|
|
11
|
+
Revises: 256b9fa9d31f
|
|
12
|
+
Create Date: 2026-10-08 14:00:00.000000
|
|
13
|
+
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
import base64
|
|
17
|
+
import hashlib
|
|
18
|
+
import json
|
|
19
|
+
import logging
|
|
20
|
+
import os
|
|
21
|
+
import re
|
|
22
|
+
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
|
|
23
|
+
from urllib.parse import quote, urlencode
|
|
24
|
+
|
|
25
|
+
from alembic import op
|
|
26
|
+
import sqlalchemy as sa
|
|
27
|
+
from cryptography.fernet import Fernet
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# revision identifiers, used by Alembic.
|
|
31
|
+
revision: str = "8390ab2be88a"
|
|
32
|
+
down_revision: Union[str, Sequence[str], None] = "256b9fa9d31f"
|
|
33
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
34
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
35
|
+
|
|
36
|
+
logger = logging.getLogger("alembic.runtime.migration")
|
|
37
|
+
|
|
38
|
+
APPRISE_PROVIDER = "apprise"
|
|
39
|
+
LEGACY_SECRET_FIELDS = {
|
|
40
|
+
"pushover": ("user_key", "app_token"),
|
|
41
|
+
"discord": ("webhook_url",),
|
|
42
|
+
"telegram": ("bot_token",),
|
|
43
|
+
}
|
|
44
|
+
SERVICE_NAMES = {"pover": "Pushover", "discord": "Discord", "tgram": "Telegram"}
|
|
45
|
+
LEGACY_TO_SERVICE = {"pushover": "pover", "discord": "discord", "telegram": "tgram"}
|
|
46
|
+
DISCORD_WEBHOOK_RE = re.compile(
|
|
47
|
+
r"^https?://(?:canary\.|ptb\.)?discord(?:app)?\.com/api/webhooks/(\d+)/([\w-]+)"
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class ConversionError(Exception):
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _load_cipher() -> Optional[Fernet]:
|
|
56
|
+
"""Build the app's Fernet cipher without ever generating a new secret key"""
|
|
57
|
+
secret_key = os.getenv("SECRET_KEY")
|
|
58
|
+
if not secret_key:
|
|
59
|
+
try:
|
|
60
|
+
from borgitory.config_module import DATA_DIR
|
|
61
|
+
|
|
62
|
+
secret_file = os.path.join(DATA_DIR, "secret_key")
|
|
63
|
+
if os.path.exists(secret_file):
|
|
64
|
+
with open(secret_file) as f:
|
|
65
|
+
secret_key = f.read().strip()
|
|
66
|
+
except Exception as e:
|
|
67
|
+
logger.warning(f"Could not read secret key file: {e}")
|
|
68
|
+
if not secret_key:
|
|
69
|
+
return None
|
|
70
|
+
fernet_key = base64.urlsafe_b64encode(hashlib.sha256(secret_key.encode()).digest())
|
|
71
|
+
return Fernet(fernet_key)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _q(value: str) -> str:
|
|
75
|
+
return quote(value.strip(), safe="")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _with_query(url: str, query: Dict[str, str]) -> str:
|
|
79
|
+
return f"{url}?{urlencode(query, quote_via=quote)}" if query else url
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _is_true(value: object) -> bool:
|
|
83
|
+
return str(value).strip().lower() in ("1", "true", "yes", "on")
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def _str(value: object) -> str:
|
|
87
|
+
return "" if value is None else str(value).strip()
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _convert_pushover(
|
|
91
|
+
legacy: Dict[str, object],
|
|
92
|
+
) -> Tuple[Dict[str, str], Dict[str, str], str]:
|
|
93
|
+
user_key, token = _str(legacy.get("user_key")), _str(legacy.get("app_token"))
|
|
94
|
+
if not user_key or not token:
|
|
95
|
+
raise ConversionError("Pushover user key and app token are required")
|
|
96
|
+
|
|
97
|
+
fields: Dict[str, str] = {}
|
|
98
|
+
query: Dict[str, str] = {}
|
|
99
|
+
device = _str(legacy.get("device"))
|
|
100
|
+
if device:
|
|
101
|
+
fields["targets"] = device
|
|
102
|
+
|
|
103
|
+
priority = _str(legacy.get("priority"))
|
|
104
|
+
if priority and priority != "0":
|
|
105
|
+
if priority not in ("-2", "-1", "1", "2"):
|
|
106
|
+
raise ConversionError(f"Unsupported Pushover priority: {priority}")
|
|
107
|
+
fields["priority"] = priority
|
|
108
|
+
query["priority"] = priority
|
|
109
|
+
|
|
110
|
+
sound = _str(legacy.get("sound"))
|
|
111
|
+
if sound and sound != "default":
|
|
112
|
+
fields["sound"] = sound
|
|
113
|
+
query["sound"] = sound
|
|
114
|
+
|
|
115
|
+
url = f"pover://{_q(user_key)}@{_q(token)}"
|
|
116
|
+
if device:
|
|
117
|
+
url += f"/{_q(device)}"
|
|
118
|
+
return fields, {"user_key": user_key, "token": token}, _with_query(url, query)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def _convert_discord(
|
|
122
|
+
legacy: Dict[str, object],
|
|
123
|
+
) -> Tuple[Dict[str, str], Dict[str, str], str]:
|
|
124
|
+
webhook_url = _str(legacy.get("webhook_url"))
|
|
125
|
+
match = DISCORD_WEBHOOK_RE.match(webhook_url)
|
|
126
|
+
if not match:
|
|
127
|
+
raise ConversionError("Discord webhook URL could not be parsed")
|
|
128
|
+
webhook_id, webhook_token = match.group(1), match.group(2)
|
|
129
|
+
|
|
130
|
+
fields: Dict[str, str] = {}
|
|
131
|
+
query: Dict[str, str] = {}
|
|
132
|
+
botname = _str(legacy.get("username"))
|
|
133
|
+
if botname:
|
|
134
|
+
fields["botname"] = botname
|
|
135
|
+
avatar_url = _str(legacy.get("avatar_url"))
|
|
136
|
+
if avatar_url:
|
|
137
|
+
fields["avatar_url"] = avatar_url
|
|
138
|
+
query["avatar_url"] = avatar_url
|
|
139
|
+
|
|
140
|
+
url = "discord://"
|
|
141
|
+
if botname:
|
|
142
|
+
url += f"{_q(botname)}@"
|
|
143
|
+
url += f"{_q(webhook_id)}/{_q(webhook_token)}"
|
|
144
|
+
secrets = {"webhook_id": webhook_id, "webhook_token": webhook_token}
|
|
145
|
+
return fields, secrets, _with_query(url, query)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def _convert_telegram(
|
|
149
|
+
legacy: Dict[str, object],
|
|
150
|
+
) -> Tuple[Dict[str, str], Dict[str, str], str]:
|
|
151
|
+
bot_token, chat_id = _str(legacy.get("bot_token")), _str(legacy.get("chat_id"))
|
|
152
|
+
if not bot_token or not chat_id:
|
|
153
|
+
raise ConversionError("Telegram bot token and chat ID are required")
|
|
154
|
+
|
|
155
|
+
fields: Dict[str, str] = {"targets": chat_id}
|
|
156
|
+
query: Dict[str, str] = {}
|
|
157
|
+
if _is_true(legacy.get("disable_notification")):
|
|
158
|
+
fields["silent"] = "yes"
|
|
159
|
+
query["silent"] = "yes"
|
|
160
|
+
|
|
161
|
+
url = f"tgram://{_q(bot_token)}/{_q(chat_id)}"
|
|
162
|
+
return fields, {"bot_token": bot_token}, _with_query(url, query)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
CONVERTERS: Dict[
|
|
166
|
+
str, Callable[[Dict[str, object]], Tuple[Dict[str, str], Dict[str, str], str]]
|
|
167
|
+
] = {
|
|
168
|
+
"pushover": _convert_pushover,
|
|
169
|
+
"discord": _convert_discord,
|
|
170
|
+
"telegram": _convert_telegram,
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def _decrypt_legacy(
|
|
175
|
+
provider: str, raw: Dict[str, object], cipher: Optional[Fernet]
|
|
176
|
+
) -> Dict[str, object]:
|
|
177
|
+
legacy = dict(raw)
|
|
178
|
+
for field in LEGACY_SECRET_FIELDS.get(provider, ()):
|
|
179
|
+
encrypted = legacy.pop(f"encrypted_{field}", None)
|
|
180
|
+
if encrypted:
|
|
181
|
+
if cipher is None:
|
|
182
|
+
raise ConversionError("Secret key unavailable; cannot decrypt settings")
|
|
183
|
+
legacy[field] = cipher.decrypt(str(encrypted).encode()).decode()
|
|
184
|
+
return legacy
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def _validate(url: str) -> None:
|
|
188
|
+
import apprise
|
|
189
|
+
|
|
190
|
+
if apprise.Apprise.instantiate(url, suppress_exceptions=True) is None:
|
|
191
|
+
raise ConversionError("Converted settings were rejected by Apprise")
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def convert_row(
|
|
195
|
+
provider: str, provider_config: str, cipher: Optional[Fernet]
|
|
196
|
+
) -> Tuple[Dict[str, object], bool]:
|
|
197
|
+
"""
|
|
198
|
+
Convert a legacy row to the Apprise format.
|
|
199
|
+
|
|
200
|
+
Returns:
|
|
201
|
+
Tuple of (new provider_config dict, whether the row may stay enabled)
|
|
202
|
+
"""
|
|
203
|
+
service = LEGACY_TO_SERVICE.get(provider)
|
|
204
|
+
stored: Dict[str, object] = {
|
|
205
|
+
"version": 1,
|
|
206
|
+
"mode": "service" if service else "manual",
|
|
207
|
+
"service_name": SERVICE_NAMES.get(service or "", provider.title()),
|
|
208
|
+
"encrypted_urls": "",
|
|
209
|
+
"legacy_provider": provider,
|
|
210
|
+
}
|
|
211
|
+
if service:
|
|
212
|
+
stored.update({"service": service, "fields": {}, "encrypted_fields": {}})
|
|
213
|
+
|
|
214
|
+
try:
|
|
215
|
+
if not service:
|
|
216
|
+
raise ConversionError(f"Unsupported notification provider: {provider}")
|
|
217
|
+
if cipher is None:
|
|
218
|
+
raise ConversionError("Secret key unavailable; cannot encrypt settings")
|
|
219
|
+
|
|
220
|
+
raw = json.loads(provider_config) if provider_config else {}
|
|
221
|
+
if not isinstance(raw, dict):
|
|
222
|
+
raise ConversionError("Stored settings are not a JSON object")
|
|
223
|
+
|
|
224
|
+
legacy = _decrypt_legacy(provider, raw, cipher)
|
|
225
|
+
fields, secrets, url = CONVERTERS[provider](legacy)
|
|
226
|
+
_validate(url)
|
|
227
|
+
|
|
228
|
+
stored["fields"] = fields
|
|
229
|
+
stored["encrypted_fields"] = {
|
|
230
|
+
k: cipher.encrypt(v.encode()).decode() for k, v in secrets.items()
|
|
231
|
+
}
|
|
232
|
+
stored["encrypted_urls"] = cipher.encrypt(url.encode()).decode()
|
|
233
|
+
return stored, True
|
|
234
|
+
except Exception as e:
|
|
235
|
+
reason = str(e) if isinstance(e, ConversionError) else type(e).__name__
|
|
236
|
+
stored["migration_error"] = (
|
|
237
|
+
f"Could not convert this {provider} notification automatically ({reason}). "
|
|
238
|
+
"Edit it, re-enter its settings and save."
|
|
239
|
+
)
|
|
240
|
+
return stored, False
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def upgrade() -> None:
|
|
244
|
+
"""Convert legacy notification configs to Apprise."""
|
|
245
|
+
conn = op.get_bind()
|
|
246
|
+
rows = conn.execute(
|
|
247
|
+
sa.text(
|
|
248
|
+
"SELECT id, name, provider, provider_config FROM notification_configs "
|
|
249
|
+
"WHERE provider != :provider"
|
|
250
|
+
),
|
|
251
|
+
{"provider": APPRISE_PROVIDER},
|
|
252
|
+
).fetchall()
|
|
253
|
+
if not rows:
|
|
254
|
+
return
|
|
255
|
+
|
|
256
|
+
cipher = _load_cipher()
|
|
257
|
+
for row_id, name, provider, provider_config in rows:
|
|
258
|
+
stored, keep_enabled = convert_row(provider, provider_config, cipher)
|
|
259
|
+
params: Dict[str, object] = {
|
|
260
|
+
"id": row_id,
|
|
261
|
+
"provider": APPRISE_PROVIDER,
|
|
262
|
+
"provider_config": json.dumps(stored),
|
|
263
|
+
}
|
|
264
|
+
if keep_enabled:
|
|
265
|
+
conn.execute(
|
|
266
|
+
sa.text(
|
|
267
|
+
"UPDATE notification_configs SET provider = :provider, "
|
|
268
|
+
"provider_config = :provider_config WHERE id = :id"
|
|
269
|
+
),
|
|
270
|
+
params,
|
|
271
|
+
)
|
|
272
|
+
else:
|
|
273
|
+
logger.warning(
|
|
274
|
+
f"Notification '{name}' could not be migrated to Apprise and was disabled: "
|
|
275
|
+
f"{stored.get('migration_error')}"
|
|
276
|
+
)
|
|
277
|
+
conn.execute(
|
|
278
|
+
sa.text(
|
|
279
|
+
"UPDATE notification_configs SET provider = :provider, "
|
|
280
|
+
"provider_config = :provider_config, enabled = 0 WHERE id = :id"
|
|
281
|
+
),
|
|
282
|
+
params,
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
def _revert_row(
|
|
287
|
+
stored: Dict[str, object], cipher: Fernet
|
|
288
|
+
) -> Optional[Tuple[str, Dict[str, object]]]:
|
|
289
|
+
"""Best-effort conversion of an Apprise row back to the legacy format"""
|
|
290
|
+
service = stored.get("service")
|
|
291
|
+
raw_fields = stored.get("fields")
|
|
292
|
+
raw_secrets = stored.get("encrypted_fields")
|
|
293
|
+
if stored.get("mode") != "service" or not isinstance(raw_fields, dict):
|
|
294
|
+
return None
|
|
295
|
+
if not isinstance(raw_secrets, dict):
|
|
296
|
+
return None
|
|
297
|
+
|
|
298
|
+
fields = {str(k): str(v) for k, v in raw_fields.items()}
|
|
299
|
+
secrets = {
|
|
300
|
+
str(k): cipher.decrypt(str(v).encode()).decode() for k, v in raw_secrets.items()
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
def enc(value: str) -> str:
|
|
304
|
+
return cipher.encrypt(value.encode()).decode()
|
|
305
|
+
|
|
306
|
+
legacy: Dict[str, object]
|
|
307
|
+
if service == "pover" and "user_key" in secrets and "token" in secrets:
|
|
308
|
+
legacy = {
|
|
309
|
+
"encrypted_user_key": enc(secrets["user_key"]),
|
|
310
|
+
"encrypted_app_token": enc(secrets["token"]),
|
|
311
|
+
"priority": int(fields.get("priority", "0")),
|
|
312
|
+
"sound": fields.get("sound", "default"),
|
|
313
|
+
}
|
|
314
|
+
targets: List[str] = [
|
|
315
|
+
t for t in re.split(r"[,\s/]+", fields.get("targets", "")) if t
|
|
316
|
+
]
|
|
317
|
+
if targets:
|
|
318
|
+
legacy["device"] = targets[0]
|
|
319
|
+
return "pushover", legacy
|
|
320
|
+
if service == "discord" and "webhook_id" in secrets and "webhook_token" in secrets:
|
|
321
|
+
legacy = {
|
|
322
|
+
"encrypted_webhook_url": enc(
|
|
323
|
+
f"https://discord.com/api/webhooks/{secrets['webhook_id']}/{secrets['webhook_token']}"
|
|
324
|
+
)
|
|
325
|
+
}
|
|
326
|
+
if fields.get("botname"):
|
|
327
|
+
legacy["username"] = fields["botname"]
|
|
328
|
+
if fields.get("avatar_url"):
|
|
329
|
+
legacy["avatar_url"] = fields["avatar_url"]
|
|
330
|
+
return "discord", legacy
|
|
331
|
+
if service == "tgram" and "bot_token" in secrets and fields.get("targets"):
|
|
332
|
+
chat_id = [t for t in re.split(r"[,\s/]+", fields["targets"]) if t][0]
|
|
333
|
+
legacy = {
|
|
334
|
+
"encrypted_bot_token": enc(secrets["bot_token"]),
|
|
335
|
+
"chat_id": chat_id,
|
|
336
|
+
"parse_mode": "HTML",
|
|
337
|
+
"disable_notification": fields.get("silent") == "yes",
|
|
338
|
+
}
|
|
339
|
+
return "telegram", legacy
|
|
340
|
+
return None
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def downgrade() -> None:
|
|
344
|
+
"""Convert Pushover, Discord and Telegram configs back; disable the rest."""
|
|
345
|
+
conn = op.get_bind()
|
|
346
|
+
rows = conn.execute(
|
|
347
|
+
sa.text(
|
|
348
|
+
"SELECT id, provider_config FROM notification_configs WHERE provider = :provider"
|
|
349
|
+
),
|
|
350
|
+
{"provider": APPRISE_PROVIDER},
|
|
351
|
+
).fetchall()
|
|
352
|
+
if not rows:
|
|
353
|
+
return
|
|
354
|
+
|
|
355
|
+
cipher = _load_cipher()
|
|
356
|
+
for row_id, provider_config in rows:
|
|
357
|
+
reverted = None
|
|
358
|
+
try:
|
|
359
|
+
stored = json.loads(provider_config) if provider_config else {}
|
|
360
|
+
if cipher is not None and isinstance(stored, dict):
|
|
361
|
+
reverted = _revert_row(stored, cipher)
|
|
362
|
+
except Exception as e:
|
|
363
|
+
logger.warning(f"Could not revert notification {row_id}: {e}")
|
|
364
|
+
|
|
365
|
+
if reverted is None:
|
|
366
|
+
conn.execute(
|
|
367
|
+
sa.text("UPDATE notification_configs SET enabled = 0 WHERE id = :id"),
|
|
368
|
+
{"id": row_id},
|
|
369
|
+
)
|
|
370
|
+
continue
|
|
371
|
+
|
|
372
|
+
provider, legacy = reverted
|
|
373
|
+
conn.execute(
|
|
374
|
+
sa.text(
|
|
375
|
+
"UPDATE notification_configs SET provider = :provider, "
|
|
376
|
+
"provider_config = :provider_config WHERE id = :id"
|
|
377
|
+
),
|
|
378
|
+
{"id": row_id, "provider": provider, "provider_config": json.dumps(legacy)},
|
|
379
|
+
)
|