posthoganalytics 6.0.0__py3-none-any.whl → 6.0.2__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.
posthoganalytics/args.py CHANGED
@@ -22,7 +22,7 @@ class OptionalCaptureArgs(TypedDict):
22
22
  error ID if you capture an exception).
23
23
  groups: Group identifiers to associate with this event (format: {group_type: group_key})
24
24
  send_feature_flags: Whether to include currently active feature flags in the event properties.
25
- Defaults to True
25
+ Defaults to False
26
26
  disable_geoip: Whether to disable GeoIP lookup for this event. Defaults to False.
27
27
  """
28
28
 
@@ -351,7 +351,7 @@ class Client(object):
351
351
 
352
352
  (distinct_id, personless) = get_identity_state(distinct_id)
353
353
 
354
- if personless:
354
+ if personless and "$process_person_profile" not in properties:
355
355
  properties["$process_person_profile"] = False
356
356
 
357
357
  msg = {
@@ -522,7 +522,7 @@ class Client(object):
522
522
  ):
523
523
  distinct_id = kwargs.get("distinct_id", None)
524
524
  properties = kwargs.get("properties", None)
525
- send_feature_flags = kwargs.get("send_feature_flags", True)
525
+ send_feature_flags = kwargs.get("send_feature_flags", False)
526
526
  disable_geoip = kwargs.get("disable_geoip", None)
527
527
  # this function shouldn't ever throw an error, so it logs exceptions instead of raising them.
528
528
  # this is important to ensure we don't unexpectedly re-raise exceptions in the user's code.
@@ -1,4 +1,4 @@
1
- VERSION = "6.0.0"
1
+ VERSION = "6.0.2"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  print(VERSION, end="") # noqa: T201
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: posthoganalytics
3
- Version: 6.0.0
3
+ Version: 6.0.2
4
4
  Summary: Integrate PostHog into any python application.
5
5
  Home-page: https://github.com/posthog/posthog-python
6
6
  Author: Posthog
@@ -1,6 +1,6 @@
1
1
  posthoganalytics/__init__.py,sha256=kijo4odBr7QnGezx-o2yAzZlbg51sP4u6SXC8TADwr0,16692
2
- posthoganalytics/args.py,sha256=1t-zFF96ep95spr8YGDdntXBaX7_JHddEr0Xa6MPLnM,3144
3
- posthoganalytics/client.py,sha256=3oh-H8CkDgpDP8E8VTWgSMWa_vTXtzPFHFEchG3nyME,44642
2
+ posthoganalytics/args.py,sha256=hRKPQ3cPGyDn4S7Ay9t2NlgoZg1cJ0GeN_Mb6OKtmfo,3145
3
+ posthoganalytics/client.py,sha256=OPwclSpmxmTafOchjcXT8uVj3MMdVpzEHMQXOZCGIc4,44691
4
4
  posthoganalytics/consumer.py,sha256=CiNbJBdyW9jER3ZYCKbX-JFmEDXlE1lbDy1MSl43-a0,4617
5
5
  posthoganalytics/contexts.py,sha256=B3Y62sX7w-MCqNqgguUceQnKn5RCBFIqen3VeR3qems,9020
6
6
  posthoganalytics/exception_capture.py,sha256=1VHBfffrXXrkK0PT8iVgKPpj_R1pGAzG5f3Qw0WF79w,1783
@@ -11,7 +11,7 @@ posthoganalytics/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  posthoganalytics/request.py,sha256=TaeySYpcvHMf5Ftf5KqqlO0VPJpirKBCRrThlS04Kew,6124
12
12
  posthoganalytics/types.py,sha256=INxWBOEQc0xgPcap6FdQNSU7zuQBmKShYaGzyuHKql8,9128
13
13
  posthoganalytics/utils.py,sha256=rp23PTgYw4r-Kus-Ga1UbAtkKYXMrz2c5Y-j-a7syGo,7119
14
- posthoganalytics/version.py,sha256=ZE7g4JSsJyFnuhdaTSgKToWjwzOSyhzPEaVFkoO6V1I,87
14
+ posthoganalytics/version.py,sha256=LhkEuiSugQ41V7R7p9bDqodeVOoBsuuHQcdeJeoLeSA,87
15
15
  posthoganalytics/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  posthoganalytics/ai/utils.py,sha256=5-2XfmetCs0v9otBoux7-IEG933wAnKLSGS6oYLqCkw,19529
17
17
  posthoganalytics/ai/anthropic/__init__.py,sha256=fFhDOiRzTXzGQlgnrRDL-4yKC8EYIl8NW4a2QNR6xRU,368
@@ -42,8 +42,8 @@ posthoganalytics/test/test_request.py,sha256=Zc0VbkjpVmj8mKokQm9rzdgTr0b1U44vvMY
42
42
  posthoganalytics/test/test_size_limited_dict.py,sha256=-5IQjIEr_-Dql24M0HusdR_XroOMrtgiT0v6ZQCRvzo,774
43
43
  posthoganalytics/test/test_types.py,sha256=bRPHdwVpP7hu7emsplU8UVyzSQptv6PaG5lAoOD_BtM,7595
44
44
  posthoganalytics/test/test_utils.py,sha256=GYLJp4ud_RP31-NnYJINOY0G0ra-QcGJszpp9MTyYq8,5428
45
- posthoganalytics-6.0.0.dist-info/licenses/LICENSE,sha256=wGf9JBotDkSygFj43m49oiKlFnpMnn97keiZKF-40vE,2450
46
- posthoganalytics-6.0.0.dist-info/METADATA,sha256=rE96qFQ_O3AY11hyg9pehN3uj0BI087uSnsELlPQJ-k,6028
47
- posthoganalytics-6.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- posthoganalytics-6.0.0.dist-info/top_level.txt,sha256=8QsNIqIkBh1p2TXvKp0Em9ZLZKwe3uIqCETyW4s1GOE,17
49
- posthoganalytics-6.0.0.dist-info/RECORD,,
45
+ posthoganalytics-6.0.2.dist-info/licenses/LICENSE,sha256=wGf9JBotDkSygFj43m49oiKlFnpMnn97keiZKF-40vE,2450
46
+ posthoganalytics-6.0.2.dist-info/METADATA,sha256=KWL0S-06P0RNvr0aWzQawRQ7Y_LQCnRXJMSiJhHK8R8,6028
47
+ posthoganalytics-6.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ posthoganalytics-6.0.2.dist-info/top_level.txt,sha256=8QsNIqIkBh1p2TXvKp0Em9ZLZKwe3uIqCETyW4s1GOE,17
49
+ posthoganalytics-6.0.2.dist-info/RECORD,,