statsig-python-core 0.22.0__tar.gz → 0.22.0rc2609012332__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.
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/Cargo.lock +6 -6
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/Cargo.toml +1 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/PKG-INFO +1 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/statsig.py +29 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/statsig_python_core.pyi +20 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/statsig_grpc_client.rs +2 -2
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/statsig_grpc_err.rs +1 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_base_py.rs +90 -1
- statsig_python_core-0.22.0rc2609012332/statsig-pyo3/tests/test_get_layer_list.py +42 -0
- statsig_python_core-0.22.0rc2609012332/statsig-pyo3/tests/test_sdk_event_emitter.py +187 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/Cargo.toml +1 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_metadata.rs +1 -1
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/pyproject.toml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/Cargo.toml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/lib.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/pyo_utils.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/data/enforce_sticky_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/profile_util.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_data_store.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_enforce_sticky_values.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_experiment_group_targeting.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_get_autotune_list.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_get_experiment_groups.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_sec_expo_as_primary.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/examples/eval_contention_bench.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/examples/intern_contention_bench.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/lib.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/ca_bundle.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/http_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/network_client.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/network_error.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_options.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/statsig_user.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/user/user_data.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/check_gate_concurrency_bench.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_target_app_filtering.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_target_app_filtering_hashed_keys.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/exposure_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/gcir_target_app_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/memory_leak_per_request_users_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/network_tls_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/parameter_store_parameter_names_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/persistent_storage_enforce_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/mod.rs +0 -0
- {statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/tests/utils/tls_test_server.rs +0 -0
|
@@ -2987,7 +2987,7 @@ dependencies = [
|
|
|
2987
2987
|
|
|
2988
2988
|
[[package]]
|
|
2989
2989
|
name = "sigstat-grpc"
|
|
2990
|
-
version = "0.22.0"
|
|
2990
|
+
version = "0.22.0-rc.2609012332"
|
|
2991
2991
|
dependencies = [
|
|
2992
2992
|
"async-trait",
|
|
2993
2993
|
"chrono",
|
|
@@ -3079,7 +3079,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
3079
3079
|
|
|
3080
3080
|
[[package]]
|
|
3081
3081
|
name = "statsig-node"
|
|
3082
|
-
version = "0.22.0"
|
|
3082
|
+
version = "0.22.0-rc.2609012332"
|
|
3083
3083
|
dependencies = [
|
|
3084
3084
|
"async-trait",
|
|
3085
3085
|
"napi",
|
|
@@ -3094,7 +3094,7 @@ dependencies = [
|
|
|
3094
3094
|
|
|
3095
3095
|
[[package]]
|
|
3096
3096
|
name = "statsig-pyo3"
|
|
3097
|
-
version = "0.22.0"
|
|
3097
|
+
version = "0.22.0-rc.2609012332"
|
|
3098
3098
|
dependencies = [
|
|
3099
3099
|
"async-trait",
|
|
3100
3100
|
"lazy_static",
|
|
@@ -3109,7 +3109,7 @@ dependencies = [
|
|
|
3109
3109
|
|
|
3110
3110
|
[[package]]
|
|
3111
3111
|
name = "statsig-rust"
|
|
3112
|
-
version = "0.22.0"
|
|
3112
|
+
version = "0.22.0-rc.2609012332"
|
|
3113
3113
|
dependencies = [
|
|
3114
3114
|
"ahash",
|
|
3115
3115
|
"arc-swap",
|
|
@@ -3163,7 +3163,7 @@ dependencies = [
|
|
|
3163
3163
|
|
|
3164
3164
|
[[package]]
|
|
3165
3165
|
name = "statsig_elixir"
|
|
3166
|
-
version = "0.22.0"
|
|
3166
|
+
version = "0.22.0-rc.2609012332"
|
|
3167
3167
|
dependencies = [
|
|
3168
3168
|
"async-trait",
|
|
3169
3169
|
"parking_lot",
|
|
@@ -3176,7 +3176,7 @@ dependencies = [
|
|
|
3176
3176
|
|
|
3177
3177
|
[[package]]
|
|
3178
3178
|
name = "statsig_ffi"
|
|
3179
|
-
version = "0.22.0"
|
|
3179
|
+
version = "0.22.0-rc.2609012332"
|
|
3180
3180
|
dependencies = [
|
|
3181
3181
|
"async-trait",
|
|
3182
3182
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.22.
|
|
3
|
+
Version: 0.22.0rc2609012332
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import json
|
|
1
2
|
import os
|
|
2
3
|
from statsig_python_core import (
|
|
3
4
|
DynamicConfigEvaluationOptions,
|
|
@@ -10,7 +11,7 @@ from statsig_python_core import (
|
|
|
10
11
|
notify_python_fork,
|
|
11
12
|
notify_python_shutdown,
|
|
12
13
|
)
|
|
13
|
-
from typing import Optional
|
|
14
|
+
from typing import Any, Callable, Literal, Optional
|
|
14
15
|
from .error_boundary import ErrorBoundary
|
|
15
16
|
from .statsig_types import (
|
|
16
17
|
DynamicConfig,
|
|
@@ -21,6 +22,15 @@ from .statsig_types import (
|
|
|
21
22
|
)
|
|
22
23
|
import atexit
|
|
23
24
|
|
|
25
|
+
SdkEventName = Literal[
|
|
26
|
+
"*",
|
|
27
|
+
"gate_evaluated",
|
|
28
|
+
"dynamic_config_evaluated",
|
|
29
|
+
"experiment_evaluated",
|
|
30
|
+
"layer_evaluated",
|
|
31
|
+
"specs_updated",
|
|
32
|
+
]
|
|
33
|
+
|
|
24
34
|
|
|
25
35
|
def handle_atexit():
|
|
26
36
|
notify_python_shutdown()
|
|
@@ -83,6 +93,24 @@ class Statsig(StatsigBasePy):
|
|
|
83
93
|
and cls._statsig_shared_instance is not None
|
|
84
94
|
)
|
|
85
95
|
|
|
96
|
+
# ------------------------------------------------------------ [ SDK Events ]
|
|
97
|
+
|
|
98
|
+
def subscribe(
|
|
99
|
+
self, event_name: SdkEventName, callback: Callable[[Any], None]
|
|
100
|
+
) -> str:
|
|
101
|
+
"""Subscribes to an SDK event, returning a subscription id.
|
|
102
|
+
|
|
103
|
+
The callback is invoked on an SDK background thread with the event as a
|
|
104
|
+
dict: `{"event_name": ..., "data": {...}}`. Pass `"*"` to receive every
|
|
105
|
+
event. Remove the subscription with `unsubscribe_by_id`, `unsubscribe`
|
|
106
|
+
or `unsubscribe_all`.
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
def on_event(raw: str) -> None:
|
|
110
|
+
ErrorBoundary._capture("subscribe", lambda: callback(json.loads(raw)))
|
|
111
|
+
|
|
112
|
+
return super()._INTERNAL_subscribe(event_name, on_event)
|
|
113
|
+
|
|
86
114
|
# ------------------------------------------------------------ [ Core APIs ]
|
|
87
115
|
|
|
88
116
|
def get_feature_gate(
|
|
@@ -293,7 +293,27 @@ class StatsigBasePy:
|
|
|
293
293
|
def get_experiment_list(self) -> builtins.list[builtins.str]: ...
|
|
294
294
|
def get_autotune_list(self) -> builtins.list[builtins.str]: ...
|
|
295
295
|
def get_parameter_store_list(self) -> builtins.list[builtins.str]: ...
|
|
296
|
+
def get_layer_list(self) -> builtins.list[builtins.str]: ...
|
|
296
297
|
def identify(self, user: StatsigUser) -> None: ...
|
|
298
|
+
def _INTERNAL_subscribe(self, event_name: typing.Literal['*', 'gate_evaluated', 'dynamic_config_evaluated', 'experiment_evaluated', 'layer_evaluated', 'specs_updated'], callback: typing.Callable[[builtins.str], None]) -> builtins.str:
|
|
299
|
+
r"""
|
|
300
|
+
Subscribes to an SDK event, returning a subscription id.
|
|
301
|
+
|
|
302
|
+
The callback receives the event as a raw JSON string. Prefer
|
|
303
|
+
`Statsig.subscribe`, which parses it into a dict first.
|
|
304
|
+
"""
|
|
305
|
+
def unsubscribe(self, event_name: typing.Literal['*', 'gate_evaluated', 'dynamic_config_evaluated', 'experiment_evaluated', 'layer_evaluated', 'specs_updated']) -> None:
|
|
306
|
+
r"""
|
|
307
|
+
Removes every subscription for the given event.
|
|
308
|
+
"""
|
|
309
|
+
def unsubscribe_by_id(self, subscription_id: builtins.str) -> None:
|
|
310
|
+
r"""
|
|
311
|
+
Removes the single subscription created by `subscribe`.
|
|
312
|
+
"""
|
|
313
|
+
def unsubscribe_all(self) -> None:
|
|
314
|
+
r"""
|
|
315
|
+
Removes every subscription across all events.
|
|
316
|
+
"""
|
|
297
317
|
|
|
298
318
|
@typing.final
|
|
299
319
|
class StatsigOptions:
|
|
@@ -61,7 +61,7 @@ impl StatsigGrpcClient {
|
|
|
61
61
|
client
|
|
62
62
|
.get_config_spec(request)
|
|
63
63
|
.await
|
|
64
|
-
.map_err(StatsigGrpcErr::ErrorGrpcStatus)
|
|
64
|
+
.map_err(|e| StatsigGrpcErr::ErrorGrpcStatus(Box::new(e)))
|
|
65
65
|
.map(|r| r.into_inner())
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -75,7 +75,7 @@ impl StatsigGrpcClient {
|
|
|
75
75
|
client
|
|
76
76
|
.stream_config_spec(request)
|
|
77
77
|
.await
|
|
78
|
-
.map_err(StatsigGrpcErr::ErrorGrpcStatus)
|
|
78
|
+
.map_err(|e| StatsigGrpcErr::ErrorGrpcStatus(Box::new(e)))
|
|
79
79
|
.map(|s| s.into_inner())
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -26,7 +26,9 @@ use pyo3::{
|
|
|
26
26
|
use pyo3_stub_gen::derive::*;
|
|
27
27
|
use serde_json::Value;
|
|
28
28
|
use statsig_rust::{
|
|
29
|
-
log_e,
|
|
29
|
+
log_e,
|
|
30
|
+
sdk_event_emitter::{SdkEventEmitter, SubscriptionID},
|
|
31
|
+
ClientInitResponseOptions, DynamicConfigEvaluationOptions, ExperimentEvaluationOptions,
|
|
30
32
|
FeatureGateEvaluationOptions, HashAlgorithm, LayerEvaluationOptions, ObservabilityClient,
|
|
31
33
|
ParameterStoreEvaluationOptions, Statsig, UserPersistedValues,
|
|
32
34
|
};
|
|
@@ -595,11 +597,98 @@ impl StatsigBasePy {
|
|
|
595
597
|
self.inner.get_parameter_store_list()
|
|
596
598
|
}
|
|
597
599
|
|
|
600
|
+
#[pyo3(name = "get_layer_list")]
|
|
601
|
+
pub fn get_layer_list(&self) -> Vec<String> {
|
|
602
|
+
self.inner.get_layer_list()
|
|
603
|
+
}
|
|
604
|
+
|
|
598
605
|
#[pyo3(signature = (user))]
|
|
599
606
|
pub fn identify(&self, user: &StatsigUserPy) -> PyResult<()> {
|
|
600
607
|
self.inner.identify(&user.inner);
|
|
601
608
|
Ok(())
|
|
602
609
|
}
|
|
610
|
+
|
|
611
|
+
/// Subscribes to an SDK event, returning a subscription id.
|
|
612
|
+
///
|
|
613
|
+
/// The callback receives the event as a raw JSON string. Prefer
|
|
614
|
+
/// `Statsig.subscribe`, which parses it into a dict first.
|
|
615
|
+
#[pyo3(name = "_INTERNAL_subscribe")]
|
|
616
|
+
pub fn _internal_subscribe(
|
|
617
|
+
&self,
|
|
618
|
+
py: Python,
|
|
619
|
+
#[gen_stub(override_type(
|
|
620
|
+
type_repr = "typing.Literal['*', 'gate_evaluated', 'dynamic_config_evaluated', 'experiment_evaluated', 'layer_evaluated', 'specs_updated']"
|
|
621
|
+
))]
|
|
622
|
+
event_name: String,
|
|
623
|
+
#[gen_stub(override_type(type_repr = "typing.Callable[[builtins.str], None]"))]
|
|
624
|
+
callback: Py<PyAny>,
|
|
625
|
+
) -> String {
|
|
626
|
+
self.detach_for_emitter(py, |emitter| {
|
|
627
|
+
emitter
|
|
628
|
+
.subscribe(&event_name, move |event| {
|
|
629
|
+
let raw = match event.to_raw_json_string() {
|
|
630
|
+
Some(raw) => raw,
|
|
631
|
+
None => return,
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
SafeGil::run(|py| {
|
|
635
|
+
let py = match py {
|
|
636
|
+
Some(py) => py,
|
|
637
|
+
None => return,
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
if let Err(e) = callback.call1(py, (raw,)) {
|
|
641
|
+
log_e!(TAG, "Failed to call SDK event subscriber: {:?}", e);
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
})
|
|
645
|
+
.encode()
|
|
646
|
+
})
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/// Removes every subscription for the given event.
|
|
650
|
+
pub fn unsubscribe(
|
|
651
|
+
&self,
|
|
652
|
+
py: Python,
|
|
653
|
+
#[gen_stub(override_type(
|
|
654
|
+
type_repr = "typing.Literal['*', 'gate_evaluated', 'dynamic_config_evaluated', 'experiment_evaluated', 'layer_evaluated', 'specs_updated']"
|
|
655
|
+
))]
|
|
656
|
+
event_name: String,
|
|
657
|
+
) {
|
|
658
|
+
self.detach_for_emitter(py, |emitter| emitter.unsubscribe(&event_name));
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/// Removes the single subscription created by `subscribe`.
|
|
662
|
+
pub fn unsubscribe_by_id(&self, py: Python, subscription_id: String) {
|
|
663
|
+
let sub_id = match SubscriptionID::decode(&subscription_id) {
|
|
664
|
+
Some(sub_id) => sub_id,
|
|
665
|
+
None => {
|
|
666
|
+
log_e!(TAG, "Invalid subscription ID: {}", subscription_id);
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
self.detach_for_emitter(py, |emitter| emitter.unsubscribe_by_id(&sub_id));
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/// Removes every subscription across all events.
|
|
675
|
+
pub fn unsubscribe_all(&self, py: Python) {
|
|
676
|
+
self.detach_for_emitter(py, |emitter| emitter.unsubscribe_all());
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
impl StatsigBasePy {
|
|
681
|
+
/// Subscription bookkeeping takes an emitter lock that an in-flight emit may
|
|
682
|
+
/// still hold while it blocks waiting on the GIL. Release the GIL so that
|
|
683
|
+
/// emit can complete and drop the lock, rather than deadlocking against us.
|
|
684
|
+
fn detach_for_emitter<F, R>(&self, py: Python, f: F) -> R
|
|
685
|
+
where
|
|
686
|
+
F: Send + FnOnce(&SdkEventEmitter) -> R,
|
|
687
|
+
R: Send,
|
|
688
|
+
{
|
|
689
|
+
let emitter = self.inner.event_emitter.clone();
|
|
690
|
+
py.detach(move || f(&emitter))
|
|
691
|
+
}
|
|
603
692
|
}
|
|
604
693
|
|
|
605
694
|
fn get_completion_event(py: Python) -> PyResult<(Py<PyAny>, Py<PyAny>)> {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Tests focused on the get_layer_list API.
|
|
3
|
+
Verifies the configured layer names are returned.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import json
|
|
7
|
+
import pytest
|
|
8
|
+
from statsig_python_core import Statsig, StatsigOptions
|
|
9
|
+
from pytest_httpserver import HTTPServer
|
|
10
|
+
from utils import get_test_data_resource
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@pytest.fixture
|
|
14
|
+
def statsig_setup(httpserver: HTTPServer):
|
|
15
|
+
dcs_content = get_test_data_resource("eval_proj_dcs.json")
|
|
16
|
+
json_data = json.loads(dcs_content)
|
|
17
|
+
|
|
18
|
+
httpserver.expect_request(
|
|
19
|
+
"/v2/download_config_specs/secret-key.json"
|
|
20
|
+
).respond_with_json(json_data)
|
|
21
|
+
|
|
22
|
+
httpserver.expect_request("/v1/log_event").respond_with_json({"success": True})
|
|
23
|
+
|
|
24
|
+
options = StatsigOptions(
|
|
25
|
+
specs_url=httpserver.url_for("/v2/download_config_specs"),
|
|
26
|
+
log_event_url=httpserver.url_for("/v1/log_event"),
|
|
27
|
+
)
|
|
28
|
+
statsig = Statsig("secret-key", options)
|
|
29
|
+
|
|
30
|
+
statsig.initialize().wait()
|
|
31
|
+
|
|
32
|
+
yield statsig
|
|
33
|
+
|
|
34
|
+
statsig.shutdown().wait()
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def test_get_layer_list_returns_configured_layers(statsig_setup):
|
|
38
|
+
statsig = statsig_setup
|
|
39
|
+
layer_list = statsig.get_layer_list()
|
|
40
|
+
|
|
41
|
+
assert isinstance(layer_list, list)
|
|
42
|
+
assert "test_layer" in layer_list
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import threading
|
|
3
|
+
import time
|
|
4
|
+
from typing import Any, Callable, List
|
|
5
|
+
|
|
6
|
+
import pytest
|
|
7
|
+
from pytest_httpserver import HTTPServer
|
|
8
|
+
from werkzeug import Request, Response
|
|
9
|
+
|
|
10
|
+
from statsig_python_core import Statsig, StatsigOptions
|
|
11
|
+
from utils import get_test_data_resource
|
|
12
|
+
|
|
13
|
+
# The SDK clamps anything below 1000ms back to the default, so this is as fast
|
|
14
|
+
# as the background update thread can be driven.
|
|
15
|
+
SPECS_SYNC_INTERVAL_MS = 1000
|
|
16
|
+
WAIT_TIMEOUT_S = 15.0
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class SpecsFeed:
|
|
20
|
+
"""Serves the DCS fixture with a newer lcut on every request, so each poll is
|
|
21
|
+
a real spec update and `specs_updated` keeps firing for as long as we poll."""
|
|
22
|
+
|
|
23
|
+
def __init__(self, httpserver: HTTPServer):
|
|
24
|
+
self._specs = json.loads(get_test_data_resource("eval_proj_dcs.json"))
|
|
25
|
+
del self._specs["checksum"]
|
|
26
|
+
self._lock = threading.Lock()
|
|
27
|
+
self._request_count = 0
|
|
28
|
+
|
|
29
|
+
httpserver.expect_request(
|
|
30
|
+
"/v2/download_config_specs/secret-key.json"
|
|
31
|
+
).respond_with_handler(self._respond)
|
|
32
|
+
httpserver.expect_request("/v1/log_event").respond_with_json({"success": True})
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def request_count(self) -> int:
|
|
36
|
+
with self._lock:
|
|
37
|
+
return self._request_count
|
|
38
|
+
|
|
39
|
+
def _respond(self, _request: Request) -> Response:
|
|
40
|
+
with self._lock:
|
|
41
|
+
self._request_count += 1
|
|
42
|
+
self._specs["time"] += 1
|
|
43
|
+
body = json.dumps(self._specs)
|
|
44
|
+
|
|
45
|
+
return Response(body, content_type="application/json")
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class EventRecorder:
|
|
49
|
+
"""Subscriber that collects the events the SDK emits on its update thread."""
|
|
50
|
+
|
|
51
|
+
def __init__(self) -> None:
|
|
52
|
+
self.events: List[Any] = []
|
|
53
|
+
|
|
54
|
+
def __call__(self, event: Any) -> None:
|
|
55
|
+
self.events.append(event)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def count(self) -> int:
|
|
59
|
+
return len(self.events)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def wait_until(predicate: Callable[[], bool], timeout_s: float = WAIT_TIMEOUT_S) -> bool:
|
|
63
|
+
deadline = time.monotonic() + timeout_s
|
|
64
|
+
while time.monotonic() < deadline:
|
|
65
|
+
if predicate():
|
|
66
|
+
return True
|
|
67
|
+
time.sleep(0.01)
|
|
68
|
+
return predicate()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
@pytest.fixture
|
|
72
|
+
def specs_feed(httpserver: HTTPServer) -> SpecsFeed:
|
|
73
|
+
return SpecsFeed(httpserver)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@pytest.fixture
|
|
77
|
+
def statsig(httpserver: HTTPServer, specs_feed: SpecsFeed):
|
|
78
|
+
options = StatsigOptions()
|
|
79
|
+
options.specs_url = httpserver.url_for("/v2/download_config_specs")
|
|
80
|
+
options.log_event_url = httpserver.url_for("/v1/log_event")
|
|
81
|
+
options.specs_sync_interval_ms = SPECS_SYNC_INTERVAL_MS
|
|
82
|
+
options.output_log_level = "error"
|
|
83
|
+
|
|
84
|
+
statsig = Statsig("secret-key", options)
|
|
85
|
+
yield statsig
|
|
86
|
+
statsig.shutdown().wait()
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def test_specs_updated_fires_with_payload(statsig):
|
|
90
|
+
recorder = EventRecorder()
|
|
91
|
+
statsig.subscribe("specs_updated", recorder)
|
|
92
|
+
|
|
93
|
+
statsig.initialize().wait()
|
|
94
|
+
|
|
95
|
+
assert wait_until(lambda: recorder.count > 0), "specs_updated never fired"
|
|
96
|
+
|
|
97
|
+
event = recorder.events[0]
|
|
98
|
+
assert event["event_name"] == "specs_updated"
|
|
99
|
+
|
|
100
|
+
data = event["data"]
|
|
101
|
+
assert data["source"] == "Network"
|
|
102
|
+
assert data["source_api"].startswith("http://")
|
|
103
|
+
assert isinstance(data["values"]["time"], int)
|
|
104
|
+
assert "test_public" in data["values"]["feature_gates"]
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def test_wildcard_subscription_receives_specs_updated(statsig):
|
|
108
|
+
recorder = EventRecorder()
|
|
109
|
+
statsig.subscribe("*", recorder)
|
|
110
|
+
|
|
111
|
+
statsig.initialize().wait()
|
|
112
|
+
|
|
113
|
+
assert wait_until(
|
|
114
|
+
lambda: any(e["event_name"] == "specs_updated" for e in recorder.events)
|
|
115
|
+
), "'*' subscription never received specs_updated"
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def test_unsubscribe_by_id_stops_only_that_subscription(statsig):
|
|
119
|
+
kept, dropped = EventRecorder(), EventRecorder()
|
|
120
|
+
statsig.subscribe("specs_updated", kept)
|
|
121
|
+
dropped_id = statsig.subscribe("specs_updated", dropped)
|
|
122
|
+
assert isinstance(dropped_id, str) and dropped_id
|
|
123
|
+
|
|
124
|
+
statsig.initialize().wait()
|
|
125
|
+
assert wait_until(lambda: dropped.count > 0), "specs_updated never fired"
|
|
126
|
+
|
|
127
|
+
statsig.unsubscribe_by_id(dropped_id)
|
|
128
|
+
dropped_at, kept_at = dropped.count, kept.count
|
|
129
|
+
|
|
130
|
+
assert wait_until(lambda: kept.count >= kept_at + 2), "specs stopped updating"
|
|
131
|
+
assert dropped.count == dropped_at
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def test_unsubscribe_removes_every_subscription_for_the_event(statsig):
|
|
135
|
+
first, second, wildcard = EventRecorder(), EventRecorder(), EventRecorder()
|
|
136
|
+
statsig.subscribe("specs_updated", first)
|
|
137
|
+
statsig.subscribe("specs_updated", second)
|
|
138
|
+
statsig.subscribe("*", wildcard)
|
|
139
|
+
|
|
140
|
+
statsig.initialize().wait()
|
|
141
|
+
assert wait_until(
|
|
142
|
+
lambda: first.count > 0 and second.count > 0
|
|
143
|
+
), "specs_updated never fired"
|
|
144
|
+
|
|
145
|
+
statsig.unsubscribe("specs_updated")
|
|
146
|
+
first_at, second_at, wildcard_at = first.count, second.count, wildcard.count
|
|
147
|
+
|
|
148
|
+
assert wait_until(
|
|
149
|
+
lambda: wildcard.count >= wildcard_at + 2
|
|
150
|
+
), "specs stopped updating"
|
|
151
|
+
assert first.count == first_at
|
|
152
|
+
assert second.count == second_at
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def test_unsubscribe_all_stops_every_subscription(statsig, specs_feed):
|
|
156
|
+
specs_updated, wildcard = EventRecorder(), EventRecorder()
|
|
157
|
+
statsig.subscribe("specs_updated", specs_updated)
|
|
158
|
+
statsig.subscribe("*", wildcard)
|
|
159
|
+
|
|
160
|
+
statsig.initialize().wait()
|
|
161
|
+
assert wait_until(
|
|
162
|
+
lambda: specs_updated.count > 0 and wildcard.count > 0
|
|
163
|
+
), "specs_updated never fired"
|
|
164
|
+
|
|
165
|
+
statsig.unsubscribe_all()
|
|
166
|
+
specs_updated_at, wildcard_at = specs_updated.count, wildcard.count
|
|
167
|
+
requests_at = specs_feed.request_count
|
|
168
|
+
|
|
169
|
+
assert wait_until(
|
|
170
|
+
lambda: specs_feed.request_count >= requests_at + 2
|
|
171
|
+
), "specs stopped updating"
|
|
172
|
+
assert specs_updated.count == specs_updated_at
|
|
173
|
+
assert wildcard.count == wildcard_at
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def test_subscriber_exception_does_not_break_other_subscribers(statsig):
|
|
177
|
+
healthy = EventRecorder()
|
|
178
|
+
|
|
179
|
+
def raises(_event: Any) -> None:
|
|
180
|
+
raise RuntimeError("subscriber blew up")
|
|
181
|
+
|
|
182
|
+
statsig.subscribe("specs_updated", raises)
|
|
183
|
+
statsig.subscribe("specs_updated", healthy)
|
|
184
|
+
|
|
185
|
+
statsig.initialize().wait()
|
|
186
|
+
|
|
187
|
+
assert wait_until(lambda: healthy.count >= 2), "throwing subscriber halted emission"
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-rust/Cargo.toml
RENAMED
|
@@ -44,7 +44,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
44
44
|
] }
|
|
45
45
|
serde_with = "3.4.0"
|
|
46
46
|
sha2 = "0.10.8"
|
|
47
|
-
sigstat-grpc = { path = "../statsig-grpc", version = "0.22.0", optional = true }
|
|
47
|
+
sigstat-grpc = { path = "../statsig-grpc", version = "0.22.0-rc.2609012332", optional = true }
|
|
48
48
|
simple_logger = { version = "5.0.0" }
|
|
49
49
|
tempfile = "3.8.1"
|
|
50
50
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -10,7 +10,7 @@ lazy_static! {
|
|
|
10
10
|
static ref STATSIG_METADATA: RwLock<StatsigMetadata> = RwLock::new(StatsigMetadata::new());
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
pub const SDK_VERSION: &str = "0.22.0";
|
|
13
|
+
pub const SDK_VERSION: &str = "0.22.0-rc.2609012332";
|
|
14
14
|
|
|
15
15
|
const TAG: &str = stringify!(StatsigMetadata);
|
|
16
16
|
|
|
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
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/Cargo.toml
RENAMED
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/README.md
RENAMED
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-grpc/src/lib.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/.gitignore
RENAMED
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/Cargo.toml
RENAMED
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/lib.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/pyo_utils.rs
RENAMED
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/safe_gil.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{statsig_python_core-0.22.0 → statsig_python_core-0.22.0rc2609012332}/statsig-pyo3/src/unit_id_py.rs
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
|