posthoganalytics 6.9.0__tar.gz → 6.9.1__tar.gz
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-6.9.0/posthoganalytics.egg-info → posthoganalytics-6.9.1}/PKG-INFO +1 -1
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/__init__.py +11 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/client.py +1 -15
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/version.py +1 -1
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1/posthoganalytics.egg-info}/PKG-INFO +1 -1
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/LICENSE +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/MANIFEST.in +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/README.md +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic_async.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic_converter.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic_providers.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/gemini/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/gemini/gemini.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/gemini/gemini_converter.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/langchain/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/langchain/callbacks.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_async.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_converter.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_providers.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/sanitization.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/types.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/utils.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/args.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/consumer.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/contexts.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/exception_capture.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/exception_utils.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/feature_flags.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/integrations/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/integrations/django.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/poller.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/py.typed +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/request.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/__init__.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_before_send.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_client.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_consumer.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_contexts.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_exception_capture.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flag.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flag_result.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flags.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_module.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_request.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_size_limited_dict.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_types.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_utils.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/types.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/utils.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics.egg-info/SOURCES.txt +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics.egg-info/dependency_links.txt +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics.egg-info/requires.txt +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics.egg-info/top_level.txt +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/pyproject.toml +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/setup.cfg +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/setup.py +0 -0
- {posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/setup_analytics.py +0 -0
|
@@ -14,6 +14,10 @@ from posthoganalytics.contexts import (
|
|
|
14
14
|
set_code_variables_mask_patterns_context as inner_set_code_variables_mask_patterns_context,
|
|
15
15
|
set_code_variables_ignore_patterns_context as inner_set_code_variables_ignore_patterns_context,
|
|
16
16
|
)
|
|
17
|
+
from posthoganalytics.exception_utils import (
|
|
18
|
+
DEFAULT_CODE_VARIABLES_IGNORE_PATTERNS,
|
|
19
|
+
DEFAULT_CODE_VARIABLES_MASK_PATTERNS,
|
|
20
|
+
)
|
|
17
21
|
from posthoganalytics.feature_flags import InconclusiveMatchError, RequiresServerEvaluation
|
|
18
22
|
from posthoganalytics.types import FeatureFlag, FlagsAndPayloads, FeatureFlagResult
|
|
19
23
|
from posthoganalytics.version import VERSION
|
|
@@ -177,6 +181,10 @@ enable_local_evaluation = True # type: bool
|
|
|
177
181
|
|
|
178
182
|
default_client = None # type: Optional[Client]
|
|
179
183
|
|
|
184
|
+
capture_exception_code_variables = False
|
|
185
|
+
code_variables_mask_patterns = DEFAULT_CODE_VARIABLES_MASK_PATTERNS
|
|
186
|
+
code_variables_ignore_patterns = DEFAULT_CODE_VARIABLES_IGNORE_PATTERNS
|
|
187
|
+
|
|
180
188
|
|
|
181
189
|
# NOTE - this and following functions take unpacked kwargs because we needed to make
|
|
182
190
|
# it impossible to write `posthog.capture(distinct-id, event-name)` - basically, to enforce
|
|
@@ -771,6 +779,9 @@ def setup() -> Client:
|
|
|
771
779
|
enable_exception_autocapture=enable_exception_autocapture,
|
|
772
780
|
log_captured_exceptions=log_captured_exceptions,
|
|
773
781
|
enable_local_evaluation=enable_local_evaluation,
|
|
782
|
+
capture_exception_code_variables=capture_exception_code_variables,
|
|
783
|
+
code_variables_mask_patterns=code_variables_mask_patterns,
|
|
784
|
+
code_variables_ignore_patterns=code_variables_ignore_patterns,
|
|
774
785
|
)
|
|
775
786
|
|
|
776
787
|
# always set incase user changes it
|
|
@@ -725,21 +725,7 @@ class Client(object):
|
|
|
725
725
|
Examples:
|
|
726
726
|
```python
|
|
727
727
|
# Set with distinct id
|
|
728
|
-
posthog.
|
|
729
|
-
'event_name',
|
|
730
|
-
distinct_id='user-distinct-id',
|
|
731
|
-
properties={
|
|
732
|
-
'$set': {'name': 'Max Hedgehog'},
|
|
733
|
-
'$set_once': {'initial_url': '/blog'}
|
|
734
|
-
}
|
|
735
|
-
)
|
|
736
|
-
```
|
|
737
|
-
```python
|
|
738
|
-
# Set using context
|
|
739
|
-
from posthoganalytics import new_context, identify_context
|
|
740
|
-
with new_context():
|
|
741
|
-
identify_context('user-distinct-id')
|
|
742
|
-
posthog.capture('event_name')
|
|
728
|
+
posthog.set(distinct_id='user123', properties={'name': 'Max Hedgehog'})
|
|
743
729
|
```
|
|
744
730
|
|
|
745
731
|
Category:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/anthropic/anthropic_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/gemini/gemini_converter.py
RENAMED
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/langchain/callbacks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_async.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_converter.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/ai/openai/openai_providers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_exception_capture.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flag.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flag_result.py
RENAMED
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_feature_flags.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics/test/test_size_limited_dict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.9.0 → posthoganalytics-6.9.1}/posthoganalytics.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|