posthog 7.0.1__py3-none-any.whl → 7.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- posthog/__init__.py +10 -0
- posthog/ai/gemini/__init__.py +3 -0
- posthog/ai/gemini/gemini.py +1 -1
- posthog/ai/gemini/gemini_async.py +423 -0
- posthog/ai/gemini/gemini_converter.py +87 -21
- posthog/ai/openai/openai_converter.py +6 -0
- posthog/ai/sanitization.py +27 -5
- posthog/client.py +213 -47
- posthog/exception_utils.py +49 -4
- posthog/flag_definition_cache.py +127 -0
- posthog/request.py +203 -23
- posthog/test/test_client.py +121 -21
- posthog/test/test_exception_capture.py +45 -1
- posthog/test/test_feature_flag_result.py +441 -2
- posthog/test/test_feature_flags.py +157 -18
- posthog/test/test_flag_definition_cache.py +612 -0
- posthog/test/test_request.py +536 -0
- posthog/test/test_utils.py +4 -1
- posthog/types.py +40 -0
- posthog/version.py +1 -1
- {posthog-7.0.1.dist-info → posthog-7.4.0.dist-info}/METADATA +2 -1
- {posthog-7.0.1.dist-info → posthog-7.4.0.dist-info}/RECORD +25 -22
- {posthog-7.0.1.dist-info → posthog-7.4.0.dist-info}/WHEEL +0 -0
- {posthog-7.0.1.dist-info → posthog-7.4.0.dist-info}/licenses/LICENSE +0 -0
- {posthog-7.0.1.dist-info → posthog-7.4.0.dist-info}/top_level.txt +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
posthog/__init__.py,sha256=
|
|
1
|
+
posthog/__init__.py,sha256=onbj2NNWstUUvWuwd8SdLQ2QIXMcB4JihsePbYj2Z64,28042
|
|
2
2
|
posthog/args.py,sha256=JUt0vbtF33IzLt3ARgsxMEYYnZo3RNS_LcK4-CjWaco,3298
|
|
3
|
-
posthog/client.py,sha256=
|
|
3
|
+
posthog/client.py,sha256=poyc3X-gZwQHQmgreSMkSkmWsAOMKlwThmK8nm9n3mI,82092
|
|
4
4
|
posthog/consumer.py,sha256=fdteMZ-deJGMpaQmHyznw_cwQG2Vvld1tmN9LUkZPrY,4608
|
|
5
5
|
posthog/contexts.py,sha256=22z4KySFCTwPbz4OYsd_8EJpoc2H91NiLq9cscSvFfw,12600
|
|
6
6
|
posthog/exception_capture.py,sha256=pmKtjQ6QY6zs4u_-ZA4H1gCyR3iI4sfqCQG_jwe_bKo,1774
|
|
7
|
-
posthog/exception_utils.py,sha256=
|
|
7
|
+
posthog/exception_utils.py,sha256=T3WexL76u7_-SjAfb7WWaD-ozwnmQuZ_453yGKRYrOk,33738
|
|
8
8
|
posthog/feature_flags.py,sha256=4xAcYEpa97b5Lv9bIo5JHbCO6lhYBnH5EmJ2MrjbU3k,22517
|
|
9
|
+
posthog/flag_definition_cache.py,sha256=3LnB76BAU29FmypxagkqTpEW6MfjQQTw3E_xWJ679XQ,4697
|
|
9
10
|
posthog/poller.py,sha256=jBz5rfH_kn_bBz7wCB46Fpvso4ttx4uzqIZWvXBCFmQ,595
|
|
10
11
|
posthog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
posthog/request.py,sha256=
|
|
12
|
-
posthog/types.py,sha256=
|
|
12
|
+
posthog/request.py,sha256=_WdffuI4BgRL9UvbEEi-4uxpFW3P4h7PRDpYM0lawVU,11817
|
|
13
|
+
posthog/types.py,sha256=OxGHSmmhVYwA7ecmJXUznDCZ1c4gAGtERzSLSYlyQFM,11540
|
|
13
14
|
posthog/utils.py,sha256=-0w-OLcCaoldkbBebPzQyBzLJSo9G9yBOg8NDVz7La8,16088
|
|
14
|
-
posthog/version.py,sha256=
|
|
15
|
+
posthog/version.py,sha256=eltPOeTfTkhaA4B9Epak_jIZQQYePn2QTw1EpKwy99E,87
|
|
15
16
|
posthog/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
posthog/ai/sanitization.py,sha256=
|
|
17
|
+
posthog/ai/sanitization.py,sha256=Dpx_5gKZfDS38KjmK1C0lvvjm9N8Pp_oIxusac888-g,6057
|
|
17
18
|
posthog/ai/types.py,sha256=arX98hR1PIPeJ3vFikxTlACIh1xPp6aEUw1gBLcKoB0,3273
|
|
18
19
|
posthog/ai/utils.py,sha256=pMqL_Aydf08EvUuSVJ1SsIpNwaom6qYIoLNOvMBNSHU,21475
|
|
19
20
|
posthog/ai/anthropic/__init__.py,sha256=8nTvETZzkfW-P3zBMmp06GOHs0N-xyOGu7Oa4di_lno,669
|
|
@@ -21,34 +22,36 @@ posthog/ai/anthropic/anthropic.py,sha256=UWyM6ryl5_VNQImaBi1RHN7tKXwkqaxy4yaXyPS
|
|
|
21
22
|
posthog/ai/anthropic/anthropic_async.py,sha256=ppWHiVp4hTl62Zr3jIwXXidOsqhrwx6iHM3ukG7WiPM,8789
|
|
22
23
|
posthog/ai/anthropic/anthropic_converter.py,sha256=prvaxt_R9kn9IbkxG_mLrw4kexT4i6T80U-6yhaZCNk,13053
|
|
23
24
|
posthog/ai/anthropic/anthropic_providers.py,sha256=Q_v7U4wgieIkvii-Bqh4pLx5pEgbrHmgsCG8lUkKb_0,2103
|
|
24
|
-
posthog/ai/gemini/__init__.py,sha256=
|
|
25
|
-
posthog/ai/gemini/gemini.py,sha256
|
|
26
|
-
posthog/ai/gemini/
|
|
25
|
+
posthog/ai/gemini/__init__.py,sha256=W1c2YcMah5wi4lTk7w8l9Yabw4l7jashBaelYirLadQ,470
|
|
26
|
+
posthog/ai/gemini/gemini.py,sha256=RmmHriUoc2APrZtQiw63hJzBka0H-B3jYH29clxpciw,14958
|
|
27
|
+
posthog/ai/gemini/gemini_async.py,sha256=0UFk6ZHuG_F7dkw028BTyGybTpPvIKSNfw0yI_LciOM,15108
|
|
28
|
+
posthog/ai/gemini/gemini_converter.py,sha256=JptTOV98s3V0jPKKHVRktze1i0RaSbkkOT0GLxkt2Gk,21801
|
|
27
29
|
posthog/ai/langchain/__init__.py,sha256=9CqAwLynTGj3ASAR80C3PmdTdrYGmu99tz0JL-HPFgI,70
|
|
28
30
|
posthog/ai/langchain/callbacks.py,sha256=EhjXTok2M2w5k5x9XFycl-bUMA1gdZx6FxHAY-HZ6bo,31367
|
|
29
31
|
posthog/ai/openai/__init__.py,sha256=u4OuUT7k1NgFj0TrxjuyegOg7a_UA8nAU6a-Hszr0OM,490
|
|
30
32
|
posthog/ai/openai/openai.py,sha256=ts95vdvWH7h0TX4FpLLK_wU_7H0MP3eZBEg0S-lsCKw,20127
|
|
31
33
|
posthog/ai/openai/openai_async.py,sha256=Ebd6_H3Zf3wGPycVJd_vOd3ZVoO3Mf3ZV339BExQd6Q,22436
|
|
32
|
-
posthog/ai/openai/openai_converter.py,sha256=
|
|
34
|
+
posthog/ai/openai/openai_converter.py,sha256=Miaqc9uzLRV_v-1zzn8Iqy8JsKb4l2Tjnw_1atp-8Xs,25828
|
|
33
35
|
posthog/ai/openai/openai_providers.py,sha256=zQIFTXHS2-dBKQX7FZxTFo7rIj5iiN7VHm9_2RzuDs8,3941
|
|
34
36
|
posthog/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
37
|
posthog/integrations/django.py,sha256=9X37yCF-T-MXUsxqkqjBWG3kdgOCyQYYNJQG_ZlwbRg,12633
|
|
36
38
|
posthog/test/__init__.py,sha256=VYgM6xPbJbvS-xhIcDiBRs0MFC9V_jT65uNeerCz_rM,299
|
|
37
39
|
posthog/test/test_before_send.py,sha256=3546WKlk8rF6bhvqhwcxAsjJovDw0Hf8yTvcYGbrhyI,7912
|
|
38
|
-
posthog/test/test_client.py,sha256=
|
|
40
|
+
posthog/test/test_client.py,sha256=cizqtsL7-13IDTZvSGg-FvEYY4Gcc1p_uzWl5CZwSl4,99805
|
|
39
41
|
posthog/test/test_consumer.py,sha256=HRDXSH0IPpCfo5yHs23n-0VzFyGSjWBKLEa8XNtU3_Y,7080
|
|
40
42
|
posthog/test/test_contexts.py,sha256=GDYpQNGhdzyA3--ia3WPao_4dqyLUpkWm1NMVm2L-So,7004
|
|
41
|
-
posthog/test/test_exception_capture.py,sha256=
|
|
43
|
+
posthog/test/test_exception_capture.py,sha256=nqG33mnxpMrSfPxXGoK6hz3yrQu3Yr-pV7r5_yYBZ68,13305
|
|
42
44
|
posthog/test/test_feature_flag.py,sha256=yIMJkoRtdJr91Y6Rb0PPlpZWBIR394TgWhccnlf-vYE,6815
|
|
43
|
-
posthog/test/test_feature_flag_result.py,sha256=
|
|
44
|
-
posthog/test/test_feature_flags.py,sha256=
|
|
45
|
+
posthog/test/test_feature_flag_result.py,sha256=KCQHismwddFWl-PHtRpZzcL5M45q_oUeHsST-zxzjkI,33321
|
|
46
|
+
posthog/test/test_feature_flags.py,sha256=5tfAYuzNjxgnxsQxlO7sDjmivUccTWf_26l_FEAJ3E8,222554
|
|
47
|
+
posthog/test/test_flag_definition_cache.py,sha256=_ssIKtrgNw3WsHv-GQNd_Nk-luDxAWgOVnAOMb8gWP8,21883
|
|
45
48
|
posthog/test/test_module.py,sha256=CERR0dTPGsAmd7YBxK0yKeB2Zr2b_Lv7hNQoeJauc9I,813
|
|
46
|
-
posthog/test/test_request.py,sha256=
|
|
49
|
+
posthog/test/test_request.py,sha256=vrZSayStAAcTr05h2ci3Y8qmKDIV2umBdiJqhr3NPp0,25176
|
|
47
50
|
posthog/test/test_size_limited_dict.py,sha256=Wom7BkzpHmusHilZy0SV3PNzhw7ucuQgqrx86jf8euo,765
|
|
48
51
|
posthog/test/test_types.py,sha256=csLuBiz6RMV36cpg9LVIor4Khq6MfjjGxYXodx5VttY,7586
|
|
49
|
-
posthog/test/test_utils.py,sha256=
|
|
50
|
-
posthog-7.0.
|
|
51
|
-
posthog-7.0.
|
|
52
|
-
posthog-7.0.
|
|
53
|
-
posthog-7.0.
|
|
54
|
-
posthog-7.0.
|
|
52
|
+
posthog/test/test_utils.py,sha256=YqAnXaMHxzEV_D3AHhs-RXnZYzdEN7kdIlpOT6Ti6t0,9714
|
|
53
|
+
posthog-7.4.0.dist-info/licenses/LICENSE,sha256=wGf9JBotDkSygFj43m49oiKlFnpMnn97keiZKF-40vE,2450
|
|
54
|
+
posthog-7.4.0.dist-info/METADATA,sha256=5LIZKQuKMWBWIgQ6jumdjTA3c-fHc1Si0JNCxTpZh0k,6010
|
|
55
|
+
posthog-7.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
56
|
+
posthog-7.4.0.dist-info/top_level.txt,sha256=7FBLsRjIUHVKQsXIhozuI3k-mun1tapp8iZO9EmUPEw,8
|
|
57
|
+
posthog-7.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|