Skip to content

filter

FilterCapabilities

Bases: Flag

A Flag class that describes the filter capabilities of a provider. Look here to learn how to use this.

Attributes:

Name Type Description
YEAR

The provider is able to filter by year.

SEASON

The provider is able to filter by season.

STATUS

The provider is able to filter by status of anime.

MEDIA_TYPE

The provider is able to filter by media type of anime.

NO_QUERY

The provider accepts a empty query, this is useful if you want to for example get all anime in a specific season, you do not want to provide a query for that because then you will only get shown the anime in that specific season that match the query. If a provider supports NO_QUERY it means that if you search without query you get all available anime in its database.

ALL

The provider supports all of the capabilities above.

Filters(year=None, season=None, status=None, media_type=None) dataclass

A flter class that acts as a filter collection

Attributes:

Name Type Description
year Optional[int]

The year to filter by

season Optional[Season]

The season to filter by

status Optional[Status]

The status to filter by

media_type Optional[MediaType]

The media type to filter by

MediaType

Bases: Enum

A enum of mediatypes to filter by

Attributes:

Name Type Description
TV
MOVIE
OVA
ONA
SPECIAL
MUSIC

Season

Bases: Enum

A enum of seasons to filter by

Attributes:

Name Type Description
SPRING
SUMMER
FALL
WINTER

Status

Bases: Enum

A enum of anime states to filter by

Attributes:

Name Type Description
UPCOMING
ONGOING
COMPLETED