Inngest client

The Inngest client is used to configure your application and send events outside of Inngest functions.

import inngest

inngest_client = inngest.Inngest(
    app_id="flask_example",
)

Configuration

  • Name
    app_id
    Type
    str
    Required
    required
    Description

    A unique identifier for your application. We recommend a hyphenated slug.

  • Name
    event_api_base_url
    Type
    str
    Required
    optional
    Description

    Override the default (https://inn.gs/) base URL for sending events. See also the INNGEST_EVENT_API_BASE_URL environment variable.

  • Name
    event_key
    Type
    str
    Required
    optional
    Description

    An Inngest Event Key. Alternatively, set the INNGEST_EVENT_KEY environment variable.

  • Name
    logger
    Type
    logging.Logger | logging.LoggerAdapter
    Required
    optional
    Description

    A logger object derived from logging.Logger or logging.LoggerAdapter. Defaults to using logging.getLogger(__name__) if not provided.

  • Name
    middleware
    Type
    list
    Required
    optional
    Version
    experimental
    Description

    A list of middleware to add to the client. Read more in our middleware docs.