or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/posthog@6.7.x
tile.json

tessl/pypi-posthog

tessl install tessl/pypi-posthog@6.7.0

Integrate PostHog into any python application.

Agent Success

Agent success rate when using this tile

89%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.03x

Baseline

Agent success rate without this tile

86%

task.mdevals/scenario-8/

Event Monitoring System

Build a system that captures events with large payloads while ensuring batches stay within size limits.

Requirements

Create a Python application that captures analytics events with configurable batch sizing:

  1. Initialize client with batch configuration: Configure the analytics client to control how many events are batched together before sending
  2. Capture regular events: Send at least 20 events with standard properties (user actions, page views, etc.)
  3. Capture events with large payloads: Send at least 5 events containing large property data (e.g., error logs of 200KB+ each)
  4. Ensure delivery: Make sure all queued events are sent before the application exits

The system should handle both small and large events efficiently, respecting batch size constraints.

Implementation

@generates

API

def setup_analytics():
    """
    Initialize and configure the analytics client with batch size settings.

    Returns:
        Configured analytics client
    """
    pass

def capture_standard_events(client, count: int):
    """
    Capture standard events with normal-sized properties.

    Args:
        client: Analytics client instance
        count: Number of events to capture
    """
    pass

def capture_large_events(client, count: int):
    """
    Capture events with large property data (200KB+ per event).

    Args:
        client: Analytics client instance
        count: Number of large events to capture
    """
    pass

def finalize_delivery(client):
    """
    Ensure all events are sent before shutdown.

    Args:
        client: Analytics client instance
    """
    pass

Capabilities

Client Configuration

  • The analytics client is configured with batch size settings @test

Event Capture

  • At least 20 standard events are captured with user properties @test
  • At least 5 events with large payloads (200KB+ each) are captured @test

Delivery Guarantee

  • All queued events are flushed and sent before program exit @test

Dependencies { .dependencies }

posthog { .dependency }

Provides analytics event capture with configurable batching and size limits.

@satisfied-by