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
    api_base_url
    Type
    str
    Required
    optional
    Description

    Override the default base URL for our REST API (https://api.inngest.com/). See also the INNGEST_EVENT_API_BASE_URL environment variable.

  • 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 base URL for sending events (https://inn.gs/). 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
    is_production
    Type
    bool
    Required
    optional
    Description

    Whether the SDK should run in production mode. See also the INNGEST_DEV 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.

  • Name
    signing_key
    Type
    str
    Required
    optional
    Description

    The Inngest signing key. Alternatively, set the INNGEST_SIGNING_KEY environment variable.