Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5a87f30
fix(ai): keep streamed OpenAI tool calls that have no index (#1091)
pcbeingused333 Oct 23, 2026
98187af
chore: Release v7.75.7 [skip ci]
releaser-posthog-python[bot] Oct 23, 2026
bb3bc61
Update generated references
releaser-posthog-python[bot] Oct 23, 2026
3aaba4a
docs: require signed commits in contributor docs (#1111)
turnipdabeets Oct 23, 2026
8f8f57f
fix(flags): fall back for incompatible local regex evaluation (#1108)
marandaneto Oct 23, 2026
81c420c
chore: Release v7.75.8 [skip ci]
releaser-posthog-python[bot] Oct 23, 2026
a5a4326
Update generated references
releaser-posthog-python[bot] Oct 23, 2026
9513931
fix(examples): use gpt-image-2.5-flare in the OpenAI image generation…
pcbeingused333 Oct 23, 2026
d38d5d2
fix(mcp): send one $mcp_initialize per initialize request (#1103)
gesh Oct 23, 2026
73135d6
fix(ai): take cumulative usage and web searches from the Claude Agent…
pcbeingused333 Oct 23, 2026
0281c2c
chore: Release v7.75.9 [skip ci]
releaser-posthog-python[bot] Oct 23, 2026
0bd78f4
Update generated references
releaser-posthog-python[bot] Oct 23, 2026
066e186
fix(ai): record the HTTP status of google-genai errors (#1110)
pcbeingused333 Oct 23, 2026
88686ef
chore: Release v7.75.10 [skip ci]
releaser-posthog-python[bot] Oct 23, 2026
a11af04
Update generated references
releaser-posthog-python[bot] Oct 23, 2026
153128e
fix(aio): keep content out of ai events in privacy mode (#1105)
carlos-marchal-ph Oct 23, 2026
945d945
chore: Release v7.75.11 [skip ci]
releaser-posthog-python[bot] Oct 23, 2026
b010c1c
Update generated references
releaser-posthog-python[bot] Oct 23, 2026
10c8a02
chore(deps): bump opentelemetry-api from 1.40.0 to 1.45.1 (#1117)
dependabot[bot] Oct 23, 2026
31dab55
chore(deps): bump djangorestframework from 3.18.1 to 3.18.2 (#1118)
dependabot[bot] Oct 23, 2026
fe16e1d
chore(deps): bump the uv group across 31 directories with 1 update (#…
dependabot[bot] Oct 23, 2026
e98e17a
feat(llma): support per-item offline evaluation models (#1130)
Radu-Raicea Oct 27, 2026
5b762b7
chore: Release v7.76.0 [skip ci]
releaser-posthog-python[bot] Oct 27, 2026
922a3b3
Update generated references
releaser-posthog-python[bot] Oct 27, 2026
e5e1b47
feat(ai): record the Anthropic web search count in the LangChain call…
pcbeingused333 Oct 28, 2026
de3274f
chore: Release v7.76.1 [skip ci]
releaser-posthog-python[bot] Oct 28, 2026
4ad74e5
Update generated references
releaser-posthog-python[bot] Oct 28, 2026
cec4562
feat(mcp): add a send_initialize_event option (#1115)
gesh Oct 28, 2026
4881284
chore: Release v7.77.0 [skip ci]
releaser-posthog-python[bot] Oct 28, 2026
5cf2935
Update generated references
releaser-posthog-python[bot] Oct 28, 2026
fd18bcc
feat(mcp): add a send_tools_list_event option (#1116)
gesh Oct 28, 2026
5bd634a
chore: Release v7.78.0 [skip ci]
releaser-posthog-python[bot] Oct 28, 2026
178927e
Update generated references
releaser-posthog-python[bot] Oct 28, 2026
c69e459
chore(deps): bump the github-actions group with 3 updates (#1128)
dependabot[bot] Oct 28, 2026
4b0c41f
feat: report unresolved local flags on evaluate_flags snapshots (#1133)
gustavohstrassburger Oct 28, 2026
a5fd58e
chore: Release v7.79.0 [skip ci]
releaser-posthog-python[bot] Oct 28, 2026
45ef69d
Update generated references
releaser-posthog-python[bot] Oct 28, 2026
721355f
feat(metrics): metrics autocapture for HTTP, database and runtime met…
DanielVisca Oct 29, 2026
e345e42
chore: Release v7.80.0 [skip ci]
releaser-posthog-python[bot] Oct 29, 2026
412719d
Update generated references
releaser-posthog-python[bot] Oct 29, 2026
f2572a1
fix(ai): handle None and NOT_GIVEN stream_options without mutating th…
pcbeingused333 Oct 29, 2026
77da71d
chore: Release v7.80.1 [skip ci]
releaser-posthog-python[bot] Oct 29, 2026
b4e1b03
Update generated references
releaser-posthog-python[bot] Oct 29, 2026
a26b96a
fix(ai): capture an $ai_embedding event when an OpenAI embeddings cal…
pcbeingused333 Oct 29, 2026
7602325
chore: Release v7.80.2 [skip ci]
releaser-posthog-python[bot] Oct 29, 2026
f0963a0
Update generated references
releaser-posthog-python[bot] Oct 29, 2026
3a2db15
fix(ai): report OpenAI Agents cached tokens (#1102)
mosafariuk Oct 29, 2026
0044df9
chore: Release v7.80.3 [skip ci]
releaser-posthog-python[bot] Oct 29, 2026
8e3ad28
Update generated references
releaser-posthog-python[bot] Oct 29, 2026
f144c9f
chore(deps): bump setuptools from 83.0.0 to 84.1.0 in /examples/examp…
dependabot[bot] Oct 29, 2026
36d5b70
chore(deps): bump authlib from 1.7.2 to 1.9.1 (#1140)
dependabot[bot] Oct 29, 2026
cdd9bfe
chore(deps): bump the ai-providers group across 1 directory with 7 up…
dependabot[bot] Oct 29, 2026
ac35d86
ci: pin Python 3.11 by minor version for Ubuntu 26.04 runners (#1153)
andehen Oct 30, 2026
c1ee43e
feat: send transactional email from posthog templates (#1093)
mayteio Oct 30, 2026
d12b413
chore: Release v7.81.0 [skip ci]
releaser-posthog-python[bot] Oct 30, 2026
a53caba
Update generated references
releaser-posthog-python[bot] Oct 30, 2026
b35fcad
fix(ai): keep the choices of an n>1 OpenAI chat stream apart (#1152)
jaeminbird Oct 30, 2026
e0c8fed
fix(ai): preserve Gemini tool call IDs in captured generations (#1150)
mosafariuk Oct 30, 2026
943c98a
chore: Release v7.81.1 [skip ci]
releaser-posthog-python[bot] Oct 30, 2026
1a4161f
Update generated references
releaser-posthog-python[bot] Oct 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-python-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
python-version:
description: Python version to install.
required: false
default: 3.11.11
default: 3.11

runs:
using: composite
Expand Down
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
## :pencil: Checklist
<!--- Put an `x` in the boxes that apply -->

- [ ] All commits are signed (see [Commit signing](https://github.com/PostHog/posthog-python/blob/main/CONTRIBUTING.md#commit-signing))
- [ ] I reviewed the submitted code.
- [ ] I added tests to verify the changes.
- [ ] I updated the docs if needed.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Set up Python 3.11
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Check strict downstream Pyright usage
run: .github/scripts/check_strict_types.sh
Expand All @@ -106,7 +106,7 @@ jobs:
- name: Set up Python 3.11
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
if: steps.changes.outputs.changed == 'true'
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Install uv
if: steps.changes.outputs.changed == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Initialize CodeQL
uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -40,6 +40,6 @@ jobs:
trap-caching: false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
category: '/language:${{matrix.language}}'
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand Down Expand Up @@ -470,7 +470,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.11.11
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Guidance for coding agents working on the PostHog Python SDK (`posthog`). Runtim
## Start here

- Use `uv`; follow [CONTRIBUTING.md](./CONTRIBUTING.md) for setup and [checks](./CONTRIBUTING.md#ci-aligned-checks). Run the smallest relevant tests first.
- Sign every commit; `main` rejects unsigned commits. Configure signing in the git config you commit with, as described in "Commit signing" in [CONTRIBUTING.md](./CONTRIBUTING.md).
- For `openfeature-provider/` changes, also follow its [contributor guide](./openfeature-provider/CONTRIBUTING.md); root pytest collection does not cover it.
- Read [RELEASING.md](./RELEASING.md) when adding changesets or changing builds/publishing. Releases publish both `posthog` and its generated `posthoganalytics` mirror.
- For public API changes, update/review `references/public_api_snapshot.txt` and run its check as described in the contributor guide.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thanks for your interest in improving the PostHog Python SDK.

## Commit signing

This repo requires all commits to be signed. To configure commit signing, see the [PostHog handbook](https://posthog.com/handbook/engineering/security#commit-signing).
This repo requires all commits to be signed. To configure commit signing, see the [PostHog handbook](https://posthog.com/handbook/engineering/security#commit-signing). Set `commit.gpgsign` to `true` in your git config so that every commit is signed, not only the ones you sign by hand.

## Setup

Expand Down
97 changes: 53 additions & 44 deletions examples/example-ai-anthropic/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading