Skip to content

APIv2SearchResponse

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1113814017["iconify_types.APIv2SearchResponse"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1113814017
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Return value of search(query).

Source code in src/pycons/iconify/iconify_types.py
class APIv2SearchResponse(TypedDict, total=False):
    """Return value of search(query)."""

    icons: list[str]
    """List of prefix:name."""
    total: int
    """Number of results. If same as `limit`, more results are available."""
    limit: int
    """Number of results shown."""
    start: int
    """Index of first result."""
    collections: dict[str, IconifyInfo]
    """List of icon sets that match query."""
    request: APIv2SearchParams
    """Copy of request parameters."""

collections instance-attribute

collections: dict[str, IconifyInfo]

List of icon sets that match query.

icons instance-attribute

icons: list[str]

List of prefix:name.

limit instance-attribute

limit: int

Number of results shown.

request instance-attribute

Copy of request parameters.

start instance-attribute

start: int

Index of first result.

total instance-attribute

total: int

Number of results. If same as limit, more results are available.

:fa-brands-github: Show source on GitHub