API Models¶
API Models hand-maded
- class BaseModel¶
Базовые классы:
BaseModel- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- _abc_impl = <_abc._abc_data object>¶
- class OtpModel(*, code=None, user_id=None, device_id=None, expired_at=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class AgeRatingsModel(*, value=None, label=None, is_adult=None, description=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class TypesModel(*, value=None, description=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class NameModel(*, main=None, english=None, alternative=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class SeasonModel(*, value=None, description=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PrePosterModel(*, preview=None, thumbnail=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PosterModel(*, preview=None, thumbnail=None, optimized=None)¶
Базовые классы:
PrePosterModel- optimized: PrePosterModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PreImageModel(*, preview=None, thumbnail=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ImageModel(*, preview=None, thumbnail=None, optimized=None)¶
Базовые классы:
PreImageModel- optimized: PreImageModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PublishDayModel(*, value=None, description=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class GenresModel(*, id=None, name=None, image=None, total_releases=None)¶
Базовые классы:
BaseModel- image: ImageModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class EndingOpeningModel(*, start=None, stop=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class LinksModel(*, previous=None, next=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PrePaginationModel(*, total=None, count=None, per_page=None, current_page=None, total_pages=None, links=None)¶
Базовые классы:
BaseModel- links: LinksModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PaginationModel(*, pagination=None)¶
Базовые классы:
BaseModel- pagination: PrePaginationModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class MetaModel(*, meta=None)¶
Базовые классы:
BaseModel- meta: PaginationModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PrePreviewModel(*, preview=None, thumbnail=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PreviewModel(*, preview=None, thumbnail=None, optimized=None)¶
Базовые классы:
PrePreviewModel- optimized: PrePreviewModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class EpisodeModel(*, id=None, name=None, ordinal=None, ending=None, opening=None, preview=None, hls_480=None, hls_720=None, hls_1080=None, duration=None, rutube_id=None, youtube_id=None, updated_at=None, sort_order=None, release_id=None, name_english=None)¶
Базовые классы:
BaseModel- ending: EndingOpeningModel | None¶
- opening: EndingOpeningModel | None¶
- preview: PreviewModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ReleaseModel(*, id=None, type=None, year=None, name=None, alias=None, season=None, poster=None, fresh_at=None, created_at=None, updated_at=None, is_ongoing=None, age_rating=None, publish_day=None, description=None, notification=None, episodes_total=None, external_player=None, is_in_production=None, is_blocked_by_geo=None, is_blocked_by_copyrights=None, added_in_users_favorites=None, average_duration_of_episode=None, added_in_planned_collection=None, added_in_watched_collection=None, added_in_watching_collection=None, added_in_postponed_collection=None, added_in_abandoned_collection=None, genres=None, episodes=None)¶
Базовые классы:
BaseModel- type: TypesModel | None¶
- season: SeasonModel | None¶
- poster: PosterModel | None¶
- age_rating: AgeRatingsModel | None¶
- publish_day: PublishDayModel | None¶
- episodes: list[anilibria_api_client.models.models.EpisodeModel] | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class SortingModel(*, value=None, label=None, description=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PreAvatarModel(*, preview=None, thumbnail=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class AvatarModel(*, preview=None, thumbnail=None, optimized=None)¶
Базовые классы:
PreAvatarModel- optimized: PreAvatarModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class TorrentsStatsModel(*, passkey=None, uploaded=None, downloaded=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ReleaseEpisodeModel(*, id=None, name=None, ordinal=None, ending=None, opening=None, preview=None, hls_480=None, hls_720=None, hls_1080=None, duration=None, rutube_id=None, youtube_id=None, updated_at=None, sort_order=None, release_id=None, name_english=None, release)¶
Базовые классы:
EpisodeModel- release: ReleaseModel¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class HistoryModel(*, id=None, time=None, user_id=None, is_watched=None, updated_at=None, release_episode_id=None, release_episode)¶
Базовые классы:
BaseModel- release_episode: ReleaseEpisodeModel¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class RequestModel(*, ip=None, country=None, iso_code=None, timezone=None)¶
Базовые классы:
BaseModel- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PromotionsModel(*, id=None, url=None, url_label=None, image=None, title=None, description=None, is_ad=None, ad_edid=None, ad_origin=None, release=None, has_overlay=None)¶
Базовые классы:
BaseModel- image: ImageModel | None¶
- release: ReleaseModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class OriginModel(*, id=None, url=None, type=None, title=None, description=None, is_announce=None)¶
Базовые классы:
BaseModel- type: TypesModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class VideosModel(*, id=None, url=None, title=None, views=None, image=None, comments=None, video_id=None, created_at=None, updated_at=None, is_announce=None, origin=None)¶
Базовые классы:
BaseModel- image: ImageModel | None¶
- origin: OriginModel | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
API Legacy models
This code is legacy Last edited in 0.2.2 version
- class CollectionType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumТипы коллекций
- PLANNED = 'PLANNED'¶
- WATCHED = 'WATCHED'¶
- WATCHING = 'WATCHING'¶
- POSTPONED = 'POSTPONED'¶
- ABANDONED = 'ABANDONED'¶
- class ContentType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumТипы контента
- TV = 'TV'¶
- ONA = 'ONA'¶
- WEB = 'WEB'¶
- OVA = 'OVA'¶
- OAD = 'OAD'¶
- MOVIE = 'MOVIE'¶
- DORAMA = 'DORAMA'¶
- SPECIAL = 'SPECIAL'¶
- class AgeRating(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumВозрастные рейтинги
- R0_PLUS = 'R0_PLUS'¶
- R6_PLUS = 'R6_PLUS'¶
- R12_PLUS = 'R12_PLUS'¶
- R16_PLUS = 'R16_PLUS'¶
- R18_PLUS = 'R18_PLUS'¶
- class Seasons(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumСезоны
- WINTER = 'winter'¶
- SPRING = 'spring'¶
- SUMMER = 'summer'¶
- AUTUMN = 'autumn'¶
- class SortType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumТип сортировки
- FRESH_AT_DESC = 'FRESH_AT_DESC'¶
- FRESH_AT_ASC = 'FRESH_AT_ASC'¶
- RATING_DESC = 'RATING_DESC'¶
- RATING_ASC = 'RATING_ASC'¶
- YEAR_DESC = 'YEAR_DESC'¶
- YEAR_ASC = 'YEAR_ASC'¶
- class PublishStatusesType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumСтатус аниме (онгоинг)
- IS_ONGOING = 'IS_ONGOING'¶
- IS_NOT_ONGOING = 'IS_NOT_ONGOING'¶
- class ProductionStatusesType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Базовые классы:
EnumСтатус аниме (в озвучке)
- IS_IN_PRODUCTION = 'IS_IN_PRODUCTION'¶
- IS_NOT_IN_PRODUCTION = 'IS_NOT_IN_PRODUCTION'¶
- class TimeCode(*, time, is_watched, release_episode_id)¶
Базовые классы:
BaseModelКласс для работы с этими методами:
accounts.users_me_views_timecodes_update
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class Release(*, page=None, limit=None, genres=None, types=None, seasons=None, from_year=None, to_year=None, search=None, sorting=None, age_ratings=None, publish_statuses=None, production_statuses=None, include=None, exclude=None)¶
Базовые классы:
BaseModelКласс для работы с этими методами:
anime.catalog_releases_get
anime.catalog_releases_post
- age_ratings: list[anilibria_api_client.models.legacy_models.AgeRating] | None¶
- publish_statuses: list[anilibria_api_client.models.legacy_models.PublishStatusesType] | None¶
- production_statuses: list[anilibria_api_client.models.legacy_models.ProductionStatusesType] | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ReleaseCollection(*, type_of_collection, page=None, limit=None, genres=None, types=None, years=None, search=None, age_ratings=None, include=None, exclude=None)¶
Базовые классы:
BaseModelКласс для работы с этими методами
users_me_collections_releases_get
users_me_collections_releases_post
- type_of_collection: CollectionType¶
- age_ratings: list[anilibria_api_client.models.legacy_models.AgeRating] | None¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].