app.services package¶
Service layer - business logic and orchestration.
Services own domain rules, transactional behavior, and multi-repository
workflows. They are the only layer that composes persistence operations into
units of work; endpoints orchestrate them, repositories serve them. Each
service is provided by the DI container (app/core/container.py) with its
dependencies injected, so it can be unit-tested in isolation.
Subpackages¶
Submodules¶
- app.services.abuse_prevention_service module
- app.services.api_requests_service module
- app.services.apikey_cache_backend module
- app.services.apikey_service module
ApiKeyServiceApiKeyService.apikey_repositoryApiKeyService.cache_backendApiKeyService.__init__()ApiKeyService.generate_api_key_service()ApiKeyService.create_api_key()ApiKeyService.get_all_api_keys()ApiKeyService.revoke_api_key_by_prefix()ApiKeyService.get_api_key_header()ApiKeyService.clear_header_cache()
- app.services.base_service module
- app.services.dashboard_service module
- app.services.dsl_observability_service module
- app.services.dsl_simulation_service module
- app.services.export_service module
ExportServiceExportService.audit_start()ExportService.audit_finish()ExportService.list_history()ExportService.iter_users()ExportService.iter_user_points()ExportService.iter_user_interactions()ExportService.iter_wallet_transactions()ExportService.iter_dataset()ExportService.format_as_csv()ExportService.format_as_json()ExportService.format_as_xlsx()ExportService.format_iterator()ExportService.media_type_for()ExportService.filename_for()
- app.services.game_access module
- app.services.game_params_service module
- app.services.game_service module
GameServiceGameService.game_repositoryGameService.game_params_repositoryGameService.task_repositoryGameService.strategy_serviceGameService.__init__()GameService.get_by_gameId()GameService.delete_game_by_id()GameService.get_all_games()GameService.get_by_externalId()GameService.create()GameService.duplicate_game()GameService.patch_game_by_externalGameId()GameService.patch_game_by_id()GameService.get_strategy_by_externalGameId()GameService.get_strategy_by_gameId()GameService.get_tasks_by_gameId()GameService.get_game_by_external_id()
- app.services.kpi_metrics_service module
- app.services.logs_service module
- app.services.oauth_users_service module
- app.services.rate_limit_counter_backend module
- app.services.strategy_definition_service module
RollbackResultStrategyDefinitionServiceStrategyDefinitionService.__init__()StrategyDefinitionService.name_exists()StrategyDefinitionService.list_strategies()StrategyDefinitionService.get_strategy()StrategyDefinitionService.create()StrategyDefinitionService.update()StrategyDefinitionService.publish()StrategyDefinitionService.archive()StrategyDefinitionService.list_versions()StrategyDefinitionService.get_usage()StrategyDefinitionService.rollback()
- app.services.strategy_observability_service module
- app.services.strategy_service module
- app.services.task_params_service module
- app.services.task_service module
TaskServiceTaskService.strategy_serviceTaskService.task_repositoryTaskService.game_repositoryTaskService.user_repositoryTaskService.user_points_repositoryTaskService.game_params_repositoryTaskService.task_params_repositoryTaskService.__init__()TaskService.patch_task_by_id()TaskService.delete_task_by_id()TaskService.duplicate_task()TaskService.get_tasks_list_by_externalGameId()TaskService.get_tasks_list_by_gameId()TaskService.get_task_by_gameId_externalTaskId()TaskService.get_task_by_externalGameId_externalTaskId()TaskService.create_task_by_externalGameId()TaskService.create_task_by_game_id()TaskService.get_task_detail_by_id()TaskService.get_points_by_task_id()TaskService.get_points_of_user_by_task_id()TaskService.get_points_by_task_id_with_details()TaskService.get_task_params_by_externalTaskId()
- app.services.uptime_logs_service module
- app.services.user_actions_service module
UserActionsServiceUserActionsService.user_points_repositoryUserActionsService.users_repositoryUserActionsService.game_repositoryUserActionsService.task_repositoryUserActionsService.wallet_repositoryUserActionsService.wallet_transaction_repositoryUserActionsService.strategy_serviceUserActionsService.__init__()UserActionsService.user_add_action_in_task()UserActionsService.user_add_action_default()
- app.services.user_game_config_service module
- app.services.user_interactions_service module
- app.services.user_points_analytics_service module
UserPointsAnalyticsServiceUserPointsAnalyticsService.count_measurements_by_external_task_id()UserPointsAnalyticsService.get_user_task_measurements_count()UserPointsAnalyticsService.get_user_task_measurements_count_the_last_seconds()UserPointsAnalyticsService.get_avg_time_between_tasks_by_user_and_game_task()UserPointsAnalyticsService.get_avg_time_between_tasks_for_all_users()UserPointsAnalyticsService.get_last_window_time_diff()UserPointsAnalyticsService.get_new_last_window_time_diff()UserPointsAnalyticsService.get_user_task_measurements()UserPointsAnalyticsService.count_personal_records_by_external_game_id()UserPointsAnalyticsService.user_has_record_before_in_externalTaskId_last_min()UserPointsAnalyticsService.get_global_avg_by_external_game_id()UserPointsAnalyticsService.get_personal_avg_by_external_game_id()
- app.services.user_points_service module
- app.services.user_service module
UserServiceUserService.user_repositoryUserService.user_points_repositoryUserService.task_repositoryUserService.wallet_repositoryUserService.wallet_transaction_repositoryUserService.__init__()UserService.basic_engagement_points()UserService.performance_penalty_points()UserService.performance_bonus_points()UserService.individual_over_global_points()UserService.need_for_motivation_points()UserService.peak_performer_bonus_points()UserService.global_advantage_adjustment_points()UserService.individual_adjustment_points()UserService.create_user()UserService.assign_points_to_user()UserService.get_wallet_by_user_id()UserService.get_user_by_externalUserId()UserService.get_wallet_by_externalUserId()UserService.get_points_by_user_id()UserService.preview_points_to_coins_conversion()UserService.preview_points_to_coins_conversion_externalUserId()UserService.convert_points_to_coins()UserService.convert_points_to_coins_externalUserId()
- app.services.wallet_service module
- app.services.wallet_transaction_service module