CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-posthog

Integrate PostHog into any python application.

89

1.03x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This evaluation assesses how well the engineer uses the PostHog Python SDK's queue management and lifecycle features to properly initialize, flush, and shut down the analytics client.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Client initialization",
      "description": "Initializes PostHog client using posthog.Client() or posthog.init() with the project_api_key parameter",
      "max_score": 15
    },
    {
      "name": "Queue batch size",
      "description": "Configures the flush_at parameter to 50 to control batch size",
      "max_score": 15
    },
    {
      "name": "Queue flush interval",
      "description": "Configures the flush_interval parameter to 2 seconds to control time-based flushing",
      "max_score": 15
    },
    {
      "name": "Event capture",
      "description": "Uses posthog.capture() method to track events with event name and distinct_id parameters",
      "max_score": 20
    },
    {
      "name": "Force flush",
      "description": "Calls posthog.flush() to immediately send all queued events before automatic flush",
      "max_score": 15
    },
    {
      "name": "Proper shutdown",
      "description": "Calls posthog.shutdown() or both posthog.flush() and posthog.join() to ensure events are sent and threads are stopped",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-posthog

tile.json