> ## Documentation Index
> Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Livepeer Python Gateway Changelog

> Commit history for the Livepeer Python Gateway.

export const CustomCardTitle = ({icon, title, variant = "card", iconSize, style = {}, className = "", ...rest}) => {
  const variants = {
    card: {
      display: 'flex',
      alignItems: 'center',
      gap: "var(--lp-spacing-2)",
      marginBottom: "var(--lp-spacing-3)",
      color: 'var(--lp-color-text-primary)',
      fontSize: '1rem',
      fontWeight: 600
    },
    accordion: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: "var(--lp-spacing-2)"
    },
    tab: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: '0.4rem',
      fontSize: '0.875rem'
    }
  };
  const sizes = {
    card: 20,
    accordion: 18,
    tab: 14
  };
  const size = iconSize || sizes[variant] || 20;
  const baseStyle = variants[variant] || variants.card;
  return variant === 'card' ? <div className={className} style={{
    ...baseStyle,
    ...style
  }} {...rest}>
      {typeof icon === 'string' ? <Icon icon={icon} size={size} color="var(--lp-color-accent)" /> : icon}
      {title}
    </div> : <span className={className} style={{
    ...baseStyle,
    ...style
  }} {...rest}>
      {typeof icon === 'string' ? <Icon icon={icon} size={size} color="var(--lp-color-accent)" /> : icon}
      {title}
    </span>;
};

export const Subtitle = ({style = {}, text, children, variant = 'default', fontSize = '', fontWeight = '', fontStyle = '', marginTop = '', marginBottom = '', color = '', className = '', ...rest}) => {
  const renderInlineCode = (value, keyPrefix) => {
    return value.split(/(`[^`]+`)/g).map((segment, index) => {
      if (segment.startsWith('`') && segment.endsWith('`')) {
        return <code key={`${keyPrefix}-code-${index}`}>{segment.slice(1, -1)}</code>;
      }
      return segment;
    });
  };
  const renderInlineMarkup = (value, keyPrefix = 'subtitle') => {
    if (typeof value !== 'string') {
      return value;
    }
    return value.split(/(\*\*[\s\S]+?\*\*)/g).map((segment, index) => {
      if (segment.startsWith('**') && segment.endsWith('**')) {
        const inner = segment.slice(2, -2);
        return <strong key={`${keyPrefix}-strong-${index}`}>
            {renderInlineCode(inner, `${keyPrefix}-strong-${index}`)}
          </strong>;
      }
      return renderInlineCode(segment, `${keyPrefix}-${index}`);
    });
  };
  const renderContent = (value, keyPrefix) => {
    if (Array.isArray(value)) {
      return value.map((item, index) => renderContent(item, `${keyPrefix}-${index}`));
    }
    return renderInlineMarkup(value, keyPrefix);
  };
  const variants = {
    default: {
      fontSize: '1rem',
      fontStyle: 'italic',
      color: 'var(--lp-color-accent)',
      marginBottom: 0
    },
    changelog: {
      fontSize: '0.8rem',
      fontStyle: 'normal',
      fontWeight: 700,
      color: 'var(--lp-color-text-primary)',
      marginBottom: 0
    }
  };
  const base = variants[variant] || variants.default;
  return <span className={className} style={{
    ...base,
    ...fontSize ? {
      fontSize
    } : {},
    ...fontWeight ? {
      fontWeight
    } : {},
    ...fontStyle ? {
      fontStyle
    } : {},
    ...marginTop ? {
      marginTop
    } : {},
    ...marginBottom ? {
      marginBottom
    } : {},
    ...color ? {
      color
    } : {},
    ...style
  }} {...rest}>
      {renderContent(text, 'text')}
      {renderContent(children, 'children')}
    </span>;
};

export const LazyLoad = ({children, height = "200px", offset = "200px", fadeDuration = 400, className = "", style = {}, ...rest}) => {
  const ref = useRef(null);
  const [visible, setVisible] = useState(false);
  const [ready, setReady] = useState(false);
  useEffect(() => {
    const el = ref.current;
    if (!el) return;
    const observer = new IntersectionObserver(([entry]) => {
      if (entry.isIntersecting) {
        setVisible(true);
        observer.disconnect();
      }
    }, {
      rootMargin: offset
    });
    observer.observe(el);
    return () => observer.disconnect();
  }, []);
  useEffect(() => {
    if (!visible) return;
    const frameId = requestAnimationFrame(() => {
      setReady(true);
    });
    return () => cancelAnimationFrame(frameId);
  }, [visible]);
  const placeholder = <div ref={ref} className={className} style={{
    minHeight: height,
    ...style
  }} {...rest} />;
  if (!visible) return placeholder;
  return <div ref={ref} className={className} style={{
    opacity: ready ? 1 : 0,
    transition: `opacity ${fadeDuration}ms ease-in`,
    ...style
  }} {...rest}>
      {children}
    </div>;
};

export const ScrollBox = ({children, maxHeight = 300, showHint = true, ariaLabel = "Scrollable content", style = {}, className = "", ...rest}) => {
  const contentRef = useRef(null);
  const [isOverflowing, setIsOverflowing] = useState(false);
  useEffect(() => {
    const checkOverflow = () => {
      if (contentRef.current) {
        const maxHeightPx = typeof maxHeight === "number" ? maxHeight : parseInt(maxHeight, 10) || 300;
        setIsOverflowing(contentRef.current.scrollHeight > maxHeightPx);
      }
    };
    checkOverflow();
    window.addEventListener("resize", checkOverflow);
    return () => window.removeEventListener("resize", checkOverflow);
  }, [maxHeight, children]);
  return <div className={className} style={{
    position: "relative",
    ...style
  }} {...rest}>
      <div ref={contentRef} role="region" tabIndex={0} aria-label={ariaLabel} style={{
    maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight,
    overflowY: "auto",
    paddingRight: 4
  }} onScroll={e => {
    const el = e.target;
    const atBottom = el.scrollHeight - el.scrollTop <= el.clientHeight + 10;
    const hint = el.parentNode.querySelector("[data-scroll-hint]");
    if (hint) hint.style.opacity = atBottom ? "0" : "1";
  }}>
        {children}
      </div>
      {showHint && isOverflowing && <div data-scroll-hint style={{
    fontSize: 11,
    color: "var(--lp-color-text-muted)",
    textAlign: "center",
    marginTop: 8,
    transition: "opacity 0.2s"
  }}>
          Scroll for more ↓
        </div>}
    </div>;
};

export const DoubleIconLink = ({label = '', labelColor, href = '#', text = '', iconLeft = 'github', iconLeftColor, iconRight = 'arrow-up-right', iconRightColor = 'var(--lp-color-accent)', className = '', style = {}, ...rest}) => {
  return <span className={className} style={{
    whiteSpace: 'nowrap',
    display: 'inline-flex',
    alignItems: 'center',
    gap: "var(--lp-spacing-1)",
    marginLeft: '0.3rem',
    ...style
  }} {...rest}>
      {text && <span style={{
    marginRight: 8
  }}>{text}</span>}
      <Icon icon={iconLeft} color={iconLeftColor} />
      <a href={href} style={{
    color: {
      labelColor
    }
  }}>
        {label}
      </a>
      <div style={{
    marginRight: '0.3rem'
  }}>
        <Icon icon={iconRight} size={12} color={iconRightColor} />
      </div>
    </span>;
};

export const LinkArrow = ({href, label, description, newline = true, borderColor, className = '', style = {}, ...rest}) => {
  const linkArrowStyle = {
    display: 'inline-flex',
    alignItems: 'center',
    justifyContent: 'center',
    gap: "var(--lp-spacing-1)",
    width: 'fit-content',
    ...borderColor && ({
      borderColor
    })
  };
  return <span className={className} style={style} {...rest}>
      {newline && <br />}
      <span style={linkArrowStyle}>
        <a href={href} target="_blank" rel="noopener noreferrer">
          {label}
        </a>
        <Icon icon="arrow-up-right" size={14} color="var(--lp-color-accent)" />
      </span>
      {description && description}
      {description && <div style={{
    height: "var(--lp-spacing-3)"
  }} />}
    </span>;
};

export const InlineDivider = ({margin = "0.75rem 0", padding = "0", color = "var(--lp-color-border-default)", opacity = 0.4, height = "1px", className = "", style = {}, ...rest}) => <hr role="separator" className={className} style={{
  border: "none",
  margin,
  padding,
  height,
  backgroundColor: color,
  opacity,
  ...style
}} {...rest} />;

export const CustomDivider = ({color = "var(--lp-color-border-default)", middleText = "", spacing = "default", style = {}, className = "", ...rest}) => {
  const spacingPresets = {
    default: {
      margin: "24px 0"
    },
    overlap: {
      margin: "-1rem 0 -1rem 0"
    },
    tight: {
      margin: "0 0 -1rem 0"
    },
    section: {
      margin: "0 0 -2rem 0"
    },
    sectionOverlap: {
      margin: "-1rem 0 -2rem 0"
    },
    deepOverlap: {
      margin: "-1rem 0 -1.5rem 0"
    }
  };
  const spacingStyle = spacingPresets[spacing] || spacingPresets.default;
  return <div role="separator" aria-orientation="horizontal" className={className} style={{
    display: "flex",
    alignItems: "center",
    ...spacingStyle,
    fontSize: style?.fontSize || "16px",
    height: "fit-content",
    ...style
  }} {...rest}>
      <span style={{
    marginRight: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
      </span>
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      {middleText && <>
          <Icon icon="circle" size={2} />
          <span style={{
    margin: "0 8px",
    fontWeight: "bold",
    color: color,
    opacity: 0.7
  }}>
            {middleText}
          </span>
          <Icon icon="circle" size={2} />
        </>}
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      <span style={{
    marginLeft: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <span style={{
    display: "inline-block",
    transform: "scaleX(-1)"
  }}>
          <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
        </span>
      </span>
    </div>;
};

<Tip>
  This page is an automated workflow.
  <Subtitle variant="changelog" style={{fontSize: "0.95rem", marginTop: "0.25rem"}}>Subscribe to this changelog's <LinkArrow label="RSS Feed" href="/v2/resources/changelog/livepeer-python-gateway/rss.xml" newline={false} /></Subtitle>
</Tip>

<CustomDivider style={{margin: "-0.5rem 0 -1.5rem 0"}} />

Track changes to <LinkArrow label="Livepeer Python Gateway" href="https://github.com/livepeer/livepeer-python-gateway" newline={false} /> on GitHub.

<CustomDivider />

<Update label="Track latest seq in channel to understand delay" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Track latest seq in channel to understand delay", description: "Track latest seq in channel to understand delay" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Track latest seq in channel to understand delay

  Track latest seq in channel to understand delay

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/a4670584558f607f418f855b0c849bfdb302dcf2" iconLeft="github" />
</Update>

<Update label="Add token to in_out_composite" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Add token to in_out_composite", description: "Add token to in_out_composite" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Add token to in\_out\_composite

  Add token to in\_out\_composite

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/90551e3e2d6b0de46bcafbd1c5d958b187cc36c3" iconLeft="github" />
</Update>

<Update label="Start publisher seq at -1 by default" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Start publisher seq at -1 by default", description: "Start publisher seq at -1 by default" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Start publisher seq at -1 by default

  Start publisher seq at -1 by default

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/5007e2cd9bbed0ed39fbb9ed7f5afffdcbaf348f" iconLeft="github" />
</Update>

<Update label="Add file input to in_out_composite" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Add file input to in_out_composite", description: "Add file input to in_out_composite" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Add file input to in\_out\_composite

  Add file input to in\_out\_composite

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/e4ee376a9db10485a78b4e876cdbbe7549d92f3b" iconLeft="github" />
</Update>

<Update label="Add missing protobuf dependency (#1)" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Add missing protobuf dependency (#1)", description: "Add missing protobuf dependency (#1)" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Add missing protobuf dependency (#1)

  <ScrollBox maxHeight="150px" showHint={false}>
    Add missing protobuf dependency (#1)
    The generated lp\_rpc\_pb2.py imports google.protobuf but protobuf was not
    listed in project dependencies, causing a ModuleNotFoundError at import
    time.
  </ScrollBox>

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/7ef6dc94feef7c4db04f28962529b46217de9b56" iconLeft="github" />
</Update>

<Update label="Pass in orchs via token" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Pass in orchs via token", description: "Pass in orchs via token" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Pass in orchs via token

  Pass in orchs via token

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/9f5c339a529bdee0066c6b4042ca4a12f8b6e9e6" iconLeft="github" />
</Update>

<Update label="Add knob to disable TOFU." tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Add knob to disable TOFU.", description: "Add knob to disable TOFU." }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Add knob to disable TOFU.

  Add knob to disable TOFU.

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/42a83a8316626c69d073f9e4a804d05764da8333" iconLeft="github" />
</Update>

<Update label="Configurable MediaPublish queue size." tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Configurable MediaPublish queue size.", description: "Configurable MediaPublish queue size." }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Configurable MediaPublish queue size.

  Configurable MediaPublish queue size.

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/8ac331c239814fc37ca8269d96143d85c96ebd6d" iconLeft="github" />
</Update>

<Update label="Add timeout knob to LV2V" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Add timeout knob to LV2V", description: "Add timeout knob to LV2V" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Add timeout knob to LV2V

  Add timeout knob to LV2V

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/599bbcf0fadc84082392a70e7004156534fd5382" iconLeft="github" />
</Update>

<Update label="Refactor media stats" tags={["Commit"]} rss={{ title: "Livepeer Python Gateway: Refactor media stats", description: "Refactor media stats" }} description={<Subtitle variant="changelog">March 2026</Subtitle>}>
  ## Refactor media stats

  Refactor media stats

  <DoubleIconLink label="View commit on GitHub" href="https://github.com/livepeer/livepeer-python-gateway/commit/34ca1420dccd42b315185ecc820cd202257e2d14" iconLeft="github" />
</Update>
