statsig-python-core
Advanced tools
+1
-1
@@ -21,3 +21,3 @@ [profile.release] | ||
| license = "ISC" | ||
| version = "0.17.1-beta.2603210301" | ||
| version = "0.17.1" | ||
| homepage = "https://statsig.com/" | ||
@@ -24,0 +24,0 @@ authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"] |
+1
-1
| Metadata-Version: 2.4 | ||
| Name: statsig_python_core | ||
| Version: 0.17.1b2603210301 | ||
| Version: 0.17.1 | ||
| Classifier: Programming Language :: Rust | ||
@@ -5,0 +5,0 @@ Classifier: Programming Language :: Python :: Implementation :: CPython |
@@ -6,2 +6,3 @@ from pytest_httpserver import HTTPServer | ||
| import gzip | ||
| import time | ||
@@ -8,0 +9,0 @@ |
@@ -23,3 +23,3 @@ from statsig_python_core import Statsig, StatsigOptions, StatsigUser | ||
| def run_statsig(inner_mock_scrapi: MockScrapi, thread_id: int): | ||
| def run_statsig(inner_mock_scrapi: MockScrapi): | ||
| options = StatsigOptions() | ||
@@ -32,8 +32,11 @@ options.specs_url = inner_mock_scrapi.url_for_endpoint( | ||
| print("running statsig") | ||
| statsig = Statsig("secret-key", options) | ||
| print("initializing statsig") | ||
| statsig.initialize().wait(timeout=1) | ||
| print("initialized statsig") | ||
| for i in range(1111): | ||
| statsig.check_gate(StatsigUser(f"user-{thread_id}-{i}"), "test_public") | ||
| wait_ms(1) | ||
| statsig.check_gate(StatsigUser("user-{}".format(i)), "test_public") | ||
| print("shutting down statsig") | ||
| statsig.shutdown().wait(timeout=1) | ||
@@ -43,4 +46,4 @@ | ||
| for j in range(3): | ||
| t = threading.Thread(target=run_statsig, args=(mock_scrapi, j)) | ||
| for _ in range(3): | ||
| t = threading.Thread(target=run_statsig, args=(mock_scrapi,)) | ||
| threads.append(t) | ||
@@ -47,0 +50,0 @@ t.start() |
@@ -42,3 +42,3 @@ [package] | ||
| sha2 = "0.10.8" | ||
| sigstat-grpc = { path = "../statsig-grpc", version = "0.17.1-beta.2603210301", optional = true } | ||
| sigstat-grpc = { path = "../statsig-grpc", version = "0.17.1", optional = true } | ||
| simple_logger = { version = "5.0.0" } | ||
@@ -45,0 +45,0 @@ tempfile = "3.8.1" |
@@ -13,3 +13,3 @@ use crate::log_e; | ||
| pub const SDK_VERSION: &str = "0.17.1-beta.2603210301"; | ||
| pub const SDK_VERSION: &str = "0.17.1"; | ||
@@ -16,0 +16,0 @@ const TAG: &str = stringify!(StatsigMetadata); |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
5481
0.07%14152403
0