tessl install tessl/pypi-posthog@6.7.0Integrate 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%
A Python script that manages analytics event collection with proper queue lifecycle management.
@generates
def initialize_client(api_key: str) -> None:
"""
Initialize the analytics client with custom queue configuration.
Sets batch size to 50 events and flush interval to 2 seconds.
Args:
api_key: The project API key for authentication
"""
pass
def capture_events(user_id: str, event_count: int) -> None:
"""
Capture multiple analytics events for a user.
Creates a mix of different event types.
Args:
user_id: The distinct user identifier
event_count: Number of events to capture
"""
pass
def force_flush() -> None:
"""
Force all queued events to be sent immediately.
"""
pass
def cleanup() -> None:
"""
Properly shut down the client, ensuring all events are sent
and all resources are cleaned up.
"""
passProvides analytics tracking with queue management capabilities.
@satisfied-by