Skip to content

Client

zzz

Classes:

  • ZZZClient

    The main client to interact with the Enka Network Zenless Zone Zero API.

ZZZClient

The main client to interact with the Enka Network Zenless Zone Zero API.

Parameters:

  • lang

    (Language | str, default: ENGLISH ) –

    The language to use for the client, defaults to Language.ENGLISH.

  • gender

    (Gender | str, default: MALE ) –

    The grammatical gender used for gendered localized text, defaults to Gender.MALE.

  • headers

    (dict[str, Any] | None, default: None ) –

    The headers to use for the client, defaults to None.

  • cache

    (BaseTTLCache | None, default: None ) –

    The cache to use for the client, defaults to None.

  • timeout

    (int, default: DEFAULT_TIMEOUT ) –

    The timeout for the client, defaults to DEFAULT_TIMEOUT.

Methods:

Attributes:

gender property writable

gender: Gender

lang property writable

lang: Language

fetch_builds async

fetch_builds(owner: Owner | OwnerInput) -> dict[str, list[Build]]

Fetch the character builds of the given owner.

Parameters:

Returns:

fetch_showcase async

fetch_showcase(uid: str | int, *, raw: Literal[False] = False) -> ShowcaseResponse
fetch_showcase(uid: str | int, *, raw: Literal[True] = True) -> dict[str, Any]
fetch_showcase(uid: str | int, *, raw: bool = False) -> ShowcaseResponse | dict[str, Any]

Fetch the player showcase of the given UID.

Parameters:

  • uid
    (str | int) –

    The UID of the user.

  • raw
    (bool, default: False ) –

    Whether to return the raw data, defaults to False.

Returns:

parse_showcase

parse_showcase(data: dict[str, Any]) -> ShowcaseResponse

Parse the given showcase data.

Parameters:

Returns:

start async

start() -> None

update_assets async

update_assets() -> None

Update game assets.