posthoganalytics 6.4.0__tar.gz → 6.4.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.4.0/posthoganalytics.egg-info → posthoganalytics-6.4.1}/PKG-INFO +1 -1
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/client.py +1 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/request.py +6 -2
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_client.py +4 -5
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/version.py +1 -1
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1/posthoganalytics.egg-info}/PKG-INFO +1 -1
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/LICENSE +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/MANIFEST.in +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/README.md +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/anthropic/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/anthropic/anthropic.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/anthropic/anthropic_async.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/anthropic/anthropic_providers.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/gemini/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/gemini/gemini.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/langchain/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/langchain/callbacks.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/openai/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/openai/openai.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/openai/openai_async.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/openai/openai_providers.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/utils.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/args.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/consumer.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/contexts.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/exception_capture.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/exception_utils.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/feature_flags.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/integrations/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/integrations/django.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/poller.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/py.typed +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/__init__.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_before_send.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_consumer.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_contexts.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_exception_capture.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flag.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flag_result.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flags.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_module.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_request.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_size_limited_dict.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_types.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_utils.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/types.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/utils.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics.egg-info/SOURCES.txt +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics.egg-info/dependency_links.txt +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics.egg-info/requires.txt +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics.egg-info/top_level.txt +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/pyproject.toml +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/setup.cfg +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/setup.py +0 -0
- {posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/setup_analytics.py +0 -0
|
@@ -132,12 +132,16 @@ def flags(
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
def remote_config(
|
|
135
|
-
personal_api_key: str,
|
|
135
|
+
personal_api_key: str,
|
|
136
|
+
project_api_key: str,
|
|
137
|
+
host: Optional[str] = None,
|
|
138
|
+
key: str = "",
|
|
139
|
+
timeout: int = 15,
|
|
136
140
|
) -> Any:
|
|
137
141
|
"""Get remote config flag value from remote_config API endpoint"""
|
|
138
142
|
return get(
|
|
139
143
|
personal_api_key,
|
|
140
|
-
f"/api/projects/@current/feature_flags/{key}/remote_config
|
|
144
|
+
f"/api/projects/@current/feature_flags/{key}/remote_config?token={project_api_key}",
|
|
141
145
|
host,
|
|
142
146
|
timeout,
|
|
143
147
|
)
|
|
@@ -2,13 +2,13 @@ import time
|
|
|
2
2
|
import unittest
|
|
3
3
|
from datetime import datetime
|
|
4
4
|
from uuid import uuid4
|
|
5
|
-
from posthoganalytics.contexts import get_context_session_id, set_context_session, new_context
|
|
6
5
|
|
|
7
6
|
import mock
|
|
8
7
|
import six
|
|
9
8
|
from parameterized import parameterized
|
|
10
9
|
|
|
11
10
|
from posthoganalytics.client import Client
|
|
11
|
+
from posthoganalytics.contexts import get_context_session_id, new_context, set_context_session
|
|
12
12
|
from posthoganalytics.request import APIError
|
|
13
13
|
from posthoganalytics.test.test_utils import FAKE_TEST_API_KEY
|
|
14
14
|
from posthoganalytics.types import FeatureFlag, LegacyFlagMetadata
|
|
@@ -2057,7 +2057,7 @@ class TestClient(unittest.TestCase):
|
|
|
2057
2057
|
|
|
2058
2058
|
def test_set_context_session_override_in_capture(self):
|
|
2059
2059
|
"""Test that explicit session ID overrides context session ID in capture"""
|
|
2060
|
-
from posthoganalytics.contexts import
|
|
2060
|
+
from posthoganalytics.contexts import new_context, set_context_session
|
|
2061
2061
|
|
|
2062
2062
|
with mock.patch("posthog.client.batch_post") as mock_post:
|
|
2063
2063
|
client = Client(FAKE_TEST_API_KEY, on_error=self.set_fail, sync_mode=True)
|
|
@@ -2158,6 +2158,7 @@ class TestClient(unittest.TestCase):
|
|
|
2158
2158
|
self.assertEqual(result, {"test": "payload"})
|
|
2159
2159
|
patch_remote_config.assert_called_once_with(
|
|
2160
2160
|
"test-personal-key",
|
|
2161
|
+
FAKE_TEST_API_KEY,
|
|
2161
2162
|
client.host,
|
|
2162
2163
|
"test-flag",
|
|
2163
2164
|
timeout=client.feature_flags_request_timeout_seconds,
|
|
@@ -2282,9 +2283,7 @@ class TestClient(unittest.TestCase):
|
|
|
2282
2283
|
}
|
|
2283
2284
|
]
|
|
2284
2285
|
},
|
|
2285
|
-
"payloads": {
|
|
2286
|
-
"empty-variant": "" # Empty string payload
|
|
2287
|
-
},
|
|
2286
|
+
"payloads": {"empty-variant": ""}, # Empty string payload
|
|
2288
2287
|
},
|
|
2289
2288
|
}
|
|
2290
2289
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/anthropic/anthropic.py
RENAMED
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.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.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/langchain/callbacks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/ai/openai/openai_async.py
RENAMED
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.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
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_exception_capture.py
RENAMED
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flag.py
RENAMED
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flag_result.py
RENAMED
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.1}/posthoganalytics/test/test_feature_flags.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{posthoganalytics-6.4.0 → posthoganalytics-6.4.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.4.0 → posthoganalytics-6.4.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
|