Coverage for app / services / __init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.12.0, created at 2025-12-06 04:49 +0000
« prev ^ index » next coverage.py v7.12.0, created at 2025-12-06 04:49 +0000
1"""
2This module provides an interface to manage book data, perform searches, and fetch details.
4It imports services for handling book operations, performing searches by various criteria,
5fetching product details from external sources, working with category information, and
6building related about information. The __all__ list ensures that only the intended public
7functions and services are made available for use by external modules.
8"""
9from app.services.book_service import (add_new_book, update_book, del_book, get_book_by_id,
10 get_book_status, get_book_feedback, set_book_status,
11 set_book_feedback, book_to_dict_with_status_and_feedback)
12from app.services.search_service import (search_by_categories, search_by_author, search_by_title)
13from app.services.asin_data_service import fetch_product_details
14from app.services.category_service import get_category_bs_tree, id_to_fullpath
15from app.services.about_service import build_about_info
16from app.services.tag_service import (get_tags_for_user, get_or_create_tag, tag_book,
17 find_tag_for_user, get_tags_and_colors, remove_tag_from_book,
18 get_tags_for_user_with_colors)
20__all__ = ["add_new_book", "update_book", "del_book", "get_book_by_id", "get_book_status",
21 "get_book_feedback", "set_book_status", "set_book_feedback",
22 "book_to_dict_with_status_and_feedback",
23 "search_by_categories", "search_by_author", "search_by_title",
24 "fetch_product_details", "get_category_bs_tree", "id_to_fullpath",
25 "build_about_info", "find_tag_for_user", "get_tags_for_user", "get_or_create_tag",
26 "tag_book", "get_tags_and_colors", "remove_tag_from_book",
27 "get_tags_for_user_with_colors"]