Skip to content

Releases: PostHog/posthog-python

7.19.1

15 Jun 11:23
Immutable release. Only release title and notes can be modified.
7f50349

Choose a tag to compare

Patch changes

  • 8d416ae Add missing return type annotations to improve typing coverage without changing runtime behavior. — Thanks @miachillgood for your first contribution 🎉!

7.19.0

15 Jun 10:02
Immutable release. Only release title and notes can be modified.
fbff5ad

Choose a tag to compare

Minor changes

  • b9f3208 Add opt-in client-side rate limiting for exception autocapture, using the same token bucket algorithm as the posthog-js and posthog-node SDKs: a bucket per exception type allows a burst of captures, then refills over time. Rate-limited exceptions are skipped before they reach the ingestion queue. Disabled by default; enable with the new enable_exception_autocapture_rate_limiting client option and tune via exception_autocapture_bucket_size (default 50), exception_autocapture_refill_rate (default 10), and exception_autocapture_refill_interval_seconds (default 10). — Thanks @hpouillot!

7.18.3

12 Jun 12:51
Immutable release. Only release title and notes can be modified.
800db99

Choose a tag to compare

Patch changes

  • ee6a3c8 Warn when an AI wrapper's base_url points at the PostHog AI Gateway. The gateway emits its own $ai_generation, so each call would be captured (and billed) twice. The wrapper only warns and never drops the event. Detection covers the wrapper funnels (OpenAI, Anthropic, LangChain) and the OTel span path. — Thanks @richardsolomou!

7.18.2

12 Jun 07:34
Immutable release. Only release title and notes can be modified.
aebf876

Choose a tag to compare

Patch changes

  • fe76fc9 Improve mypy coverage for core SDK modules without changing runtime behavior. — Thanks @Kshitijmishradev for your first contribution 🎉!

7.18.1

10 Jun 14:22
Immutable release. Only release title and notes can be modified.
49b63b0

Choose a tag to compare

Patch changes

  • 00b2091 Add internal-only routing of $ai_* events to a dedicated capture endpoint in their own batch, gated behind the unstable _dedicated_ai_endpoint client option (off by default, not for general use). — Thanks @carlos-marchal-ph!

7.18.0

05 Jun 13:56
Immutable release. Only release title and notes can be modified.
98e9b71

Choose a tag to compare

Minor changes

  • a2ce51e feat(feature-flags): support the early_exit condition option in local evaluation. When a flag enables early exit, evaluation now stops and returns False as soon as a condition group's property filters match but the rollout percentage excludes the user, instead of falling through to later groups — matching the server-side evaluation behavior. — Thanks @gustavohstrassburger!

7.17.0

03 Jun 15:14
Immutable release. Only release title and notes can be modified.
4e917d8

Choose a tag to compare

Minor changes

  • 3aed638 Add a configurable $is_server event property (default true) so PostHog can identify server-side events. Set is_server=False when using posthog-python as a client/CLI so the device OS is attributed normally. — Thanks @turnipdabeets for your first contribution 🎉!

7.16.4

03 Jun 13:12
Immutable release. Only release title and notes can be modified.
73944fd

Choose a tag to compare

Patch changes

  • 44e6b14 Fix async streaming responses from the AI wrappers (OpenAI, Anthropic, Gemini) so they support async with as well as async for. Previously, consuming a stream via async with (e.g. with pydantic-ai) raised TypeError: 'async_generator' object does not support the asynchronous context manager protocol. — Thanks @turnipdabeets for your first contribution 🎉!

7.16.3

01 Jun 13:24
Immutable release. Only release title and notes can be modified.
d5cddca

Choose a tag to compare

Patch changes

  • 643a810 Return empty flag defaults from Client flag helpers when the flags API fails. — Thanks @marandaneto!

7.16.2

28 May 14:17
Immutable release. Only release title and notes can be modified.
50b9a81

Choose a tag to compare

Patch changes