Skip to content

Documentation for books.py

sankaku.models.books.BookState

Bases: SankakuResponseModel

current_page: int instance-attribute

sequence: int instance-attribute

post_id: int instance-attribute

series_id: Optional[int] instance-attribute

created_at: datetime instance-attribute

updated_at: datetime instance-attribute

percent: int instance-attribute


sankaku.models.books.PageBook

Bases: SankakuResponseModel

Model that describes books on book pages.

id: int instance-attribute

name_en: Optional[str] instance-attribute

name_ja: Optional[str] instance-attribute

description: str instance-attribute

description_en: Optional[str] instance-attribute

description_ja: Optional[str] instance-attribute

created_at: datetime instance-attribute

updated_at: datetime instance-attribute

author: Optional[Author] instance-attribute

is_public: bool instance-attribute

is_active: bool instance-attribute

is_flagged: bool instance-attribute

post_count: int instance-attribute

pages_count: int instance-attribute

visible_post_count: int instance-attribute

is_intact: bool instance-attribute

rating: Optional[types.Rating] instance-attribute

reactions: List instance-attribute

parent_id: Optional[int] instance-attribute

has_children: Optional[bool] instance-attribute

is_rating_locked: bool instance-attribute

fav_count: int instance-attribute

vote_count: int instance-attribute

total_score: int instance-attribute

comment_count: Optional[int] instance-attribute

tags: List[PostTag] instance-attribute

post_tags: List[PostTag] instance-attribute

artist_tags: List[PostTag] instance-attribute

genre_tags: List[PostTag] instance-attribute

is_favorited: bool instance-attribute

user_vote: Optional[int] instance-attribute

posts: List[Optional[Post]] instance-attribute

file_url: Optional[str] instance-attribute

sample_url: Optional[str] instance-attribute

preview_url: Optional[str] instance-attribute

cover_post: Optional[Post] instance-attribute

reading: Optional[BookState] instance-attribute

is_premium: bool instance-attribute

is_pending: bool instance-attribute

is_raw: bool instance-attribute

is_trial: bool instance-attribute

redirect_to_signup: bool instance-attribute

locale: str instance-attribute

is_deleted: bool instance-attribute

cover_post_id: Optional[int] instance-attribute

name: Optional[str] instance-attribute

parent_pool: Optional[PageBook] instance-attribute


sankaku.models.books.Book

Bases: PageBook

Model that describes specific book.

child_pools: Optional[List[PageBook]] instance-attribute

flagged_by_user: bool instance-attribute

prem_post_count: int instance-attribute