statsig-python-core 0.18.0__tar.gz → 0.18.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.
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/Cargo.lock +6 -6
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/Cargo.toml +1 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/PKG-INFO +1 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/statsig.py +2 -2
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/statsig_python_core.pyi +3 -5
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/statsig_types.py +2 -2
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/lib.rs +1 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/pyo_utils.rs +0 -89
- statsig_python_core-0.18.1/statsig-pyo3/src/raw_evaluation_compat_py.rs +200 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_base_py.rs +17 -79
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_data_store.py +23 -11
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_feature_gate_serialization.py +1 -2
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_get_dynamic_config.py +2 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_layer_serialization.py +3 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_observability_client.py +15 -8
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_user_exposure_e2e.py +3 -3
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/Cargo.toml +1 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/dynamic_returnable.rs +16 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +8 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +8 -2
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +9 -11
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +7 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +6 -3
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/exposure_sampling.rs +43 -6
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +1 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_metadata.rs +1 -1
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_types_raw.rs +19 -0
- statsig_python_core-0.18.1/statsig-rust/src/user/user_data.rs +78 -0
- statsig_python_core-0.18.1/statsig-rust/tests/exposure_sampling_key_tests.rs +195 -0
- statsig_python_core-0.18.0/statsig-rust/src/user/user_data.rs +0 -73
- statsig_python_core-0.18.0/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -102
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/pyproject.toml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/Cargo.toml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_user_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/profile_util.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/lib.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/http_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/network_client.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/network_error.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_options.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/statsig_user.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/check_gate_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/exposure_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/statsig_user_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-rust/tests/utils/mod.rs +0 -0
|
@@ -2869,7 +2869,7 @@ dependencies = [
|
|
|
2869
2869
|
|
|
2870
2870
|
[[package]]
|
|
2871
2871
|
name = "sigstat-grpc"
|
|
2872
|
-
version = "0.18.
|
|
2872
|
+
version = "0.18.1"
|
|
2873
2873
|
dependencies = [
|
|
2874
2874
|
"async-trait",
|
|
2875
2875
|
"chrono",
|
|
@@ -2961,7 +2961,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
2961
2961
|
|
|
2962
2962
|
[[package]]
|
|
2963
2963
|
name = "statsig-node"
|
|
2964
|
-
version = "0.18.
|
|
2964
|
+
version = "0.18.1"
|
|
2965
2965
|
dependencies = [
|
|
2966
2966
|
"async-trait",
|
|
2967
2967
|
"napi",
|
|
@@ -2975,7 +2975,7 @@ dependencies = [
|
|
|
2975
2975
|
|
|
2976
2976
|
[[package]]
|
|
2977
2977
|
name = "statsig-pyo3"
|
|
2978
|
-
version = "0.18.
|
|
2978
|
+
version = "0.18.1"
|
|
2979
2979
|
dependencies = [
|
|
2980
2980
|
"async-trait",
|
|
2981
2981
|
"lazy_static",
|
|
@@ -2989,7 +2989,7 @@ dependencies = [
|
|
|
2989
2989
|
|
|
2990
2990
|
[[package]]
|
|
2991
2991
|
name = "statsig-rust"
|
|
2992
|
-
version = "0.18.
|
|
2992
|
+
version = "0.18.1"
|
|
2993
2993
|
dependencies = [
|
|
2994
2994
|
"ahash",
|
|
2995
2995
|
"arc-swap",
|
|
@@ -3038,7 +3038,7 @@ dependencies = [
|
|
|
3038
3038
|
|
|
3039
3039
|
[[package]]
|
|
3040
3040
|
name = "statsig_elixir"
|
|
3041
|
-
version = "0.18.
|
|
3041
|
+
version = "0.18.1"
|
|
3042
3042
|
dependencies = [
|
|
3043
3043
|
"async-trait",
|
|
3044
3044
|
"parking_lot",
|
|
@@ -3051,7 +3051,7 @@ dependencies = [
|
|
|
3051
3051
|
|
|
3052
3052
|
[[package]]
|
|
3053
3053
|
name = "statsig_ffi"
|
|
3054
|
-
version = "0.18.
|
|
3054
|
+
version = "0.18.1"
|
|
3055
3055
|
dependencies = [
|
|
3056
3056
|
"async-trait",
|
|
3057
3057
|
"cbindgen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.1
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
{statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/py_src/statsig_python_core/statsig.py
RENAMED
|
@@ -85,7 +85,7 @@ class Statsig(StatsigBasePy):
|
|
|
85
85
|
name: str,
|
|
86
86
|
options: Optional[FeatureGateEvaluationOptions] = None,
|
|
87
87
|
) -> FeatureGate:
|
|
88
|
-
raw = super().
|
|
88
|
+
raw = super()._INTERNAL_get_feature_gate(user, name, options)
|
|
89
89
|
return FeatureGate(name, raw)
|
|
90
90
|
|
|
91
91
|
def get_dynamic_config(
|
|
@@ -94,7 +94,7 @@ class Statsig(StatsigBasePy):
|
|
|
94
94
|
name: str,
|
|
95
95
|
options: Optional[DynamicConfigEvaluationOptions] = None,
|
|
96
96
|
) -> DynamicConfig:
|
|
97
|
-
raw = super().
|
|
97
|
+
raw = super()._INTERNAL_get_dynamic_config(user, name, options)
|
|
98
98
|
return DynamicConfig(name, raw)
|
|
99
99
|
|
|
100
100
|
def get_experiment(
|
|
@@ -178,13 +178,11 @@ class StatsigBasePy:
|
|
|
178
178
|
def shutdown(self) -> typing.Any: ...
|
|
179
179
|
def log_event(self, user: StatsigUser, event_name: builtins.str, value: typing.Optional[typing.Any] = None, metadata: typing.Optional[dict] = None) -> None: ...
|
|
180
180
|
def check_gate(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) -> builtins.bool: ...
|
|
181
|
-
def _INTERNAL_get_feature_gate(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) ->
|
|
182
|
-
def _INTERNAL_get_feature_gate_as_dict(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) -> dict: ...
|
|
181
|
+
def _INTERNAL_get_feature_gate(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) -> dict: ...
|
|
183
182
|
def manually_log_gate_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
|
|
184
|
-
def _INTERNAL_get_dynamic_config(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) ->
|
|
185
|
-
def _INTERNAL_get_dynamic_config_as_dict(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) -> dict: ...
|
|
183
|
+
def _INTERNAL_get_dynamic_config(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) -> dict: ...
|
|
186
184
|
def manually_log_dynamic_config_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
|
|
187
|
-
def _INTERNAL_get_experiment(self, user: StatsigUser, name: builtins.str, options: typing.Optional[ExperimentEvaluationOptions] = None) ->
|
|
185
|
+
def _INTERNAL_get_experiment(self, user: StatsigUser, name: builtins.str, options: typing.Optional[ExperimentEvaluationOptions] = None) -> dict: ...
|
|
188
186
|
def manually_log_experiment_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
|
|
189
187
|
def _INTERNAL_get_layer(self, user: StatsigUser, name: builtins.str, options: typing.Optional[LayerEvaluationOptions] = None) -> builtins.str: ...
|
|
190
188
|
def _INTERNAL_log_layer_param_exposure(self, raw: builtins.str, param_name: builtins.str) -> None: ...
|
|
@@ -160,9 +160,9 @@ class DynamicConfig(BaseConfigEvaluation):
|
|
|
160
160
|
class Experiment(BaseConfigEvaluation):
|
|
161
161
|
group_name: Optional[str]
|
|
162
162
|
|
|
163
|
-
def __init__(self, name: str, raw:
|
|
163
|
+
def __init__(self, name: str, raw: dict):
|
|
164
164
|
try:
|
|
165
|
-
data =
|
|
165
|
+
data = raw or {}
|
|
166
166
|
super().__init__(name, data, "Experiment")
|
|
167
167
|
self.group_name = data.get("groupName")
|
|
168
168
|
except Exception as error:
|
|
@@ -62,16 +62,6 @@ pub fn map_to_py_dict(py: Python, map: &HashMap<String, Value>) -> Py<PyAny> {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
pub fn map_to_py_dict_direct(py: Python, map: &HashMap<String, Value>) -> PyResult<Py<PyDict>> {
|
|
66
|
-
let py_dict = PyDict::new(py);
|
|
67
|
-
|
|
68
|
-
for (key, value) in map {
|
|
69
|
-
set_json_value_in_dict(py, &py_dict, key, value)?;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
Ok(py_dict.unbind())
|
|
73
|
-
}
|
|
74
|
-
|
|
75
65
|
pub fn py_list_to_list(py_list: &Bound<PyList>) -> PyResult<Vec<String>> {
|
|
76
66
|
let mut converted_list = Vec::new();
|
|
77
67
|
for value in py_list {
|
|
@@ -111,85 +101,6 @@ pub fn list_of_values_to_py_list(py: Python, list: &Vec<Value>) -> PyResult<Py<P
|
|
|
111
101
|
Ok(py_list.into())
|
|
112
102
|
}
|
|
113
103
|
|
|
114
|
-
fn json_array_to_py_list(py: Python, values: &Vec<Value>) -> PyResult<Py<PyAny>> {
|
|
115
|
-
let py_list = PyList::empty(py);
|
|
116
|
-
|
|
117
|
-
for value in values {
|
|
118
|
-
append_json_value(py, &py_list, value)?;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
Ok(py_list.unbind().into())
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
fn json_object_to_py_dict(py: Python, map: &serde_json::Map<String, Value>) -> PyResult<Py<PyAny>> {
|
|
125
|
-
let py_dict = PyDict::new(py);
|
|
126
|
-
|
|
127
|
-
for (key, value) in map {
|
|
128
|
-
set_json_value_in_dict(py, &py_dict, key, value)?;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
Ok(py_dict.unbind().into())
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
fn set_json_value_in_dict(
|
|
135
|
-
py: Python,
|
|
136
|
-
py_dict: &Bound<PyDict>,
|
|
137
|
-
key: &str,
|
|
138
|
-
value: &Value,
|
|
139
|
-
) -> PyResult<()> {
|
|
140
|
-
match value {
|
|
141
|
-
Value::Null => py_dict.set_item(key, py.None())?,
|
|
142
|
-
Value::Bool(v) => py_dict.set_item(key, *v)?,
|
|
143
|
-
Value::Number(v) => set_number_in_dict(py_dict, key, v)?,
|
|
144
|
-
Value::String(v) => py_dict.set_item(key, v)?,
|
|
145
|
-
Value::Array(v) => py_dict.set_item(key, json_array_to_py_list(py, v)?)?,
|
|
146
|
-
Value::Object(v) => py_dict.set_item(key, json_object_to_py_dict(py, v)?)?,
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
Ok(())
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
fn append_json_value(py: Python, py_list: &Bound<PyList>, value: &Value) -> PyResult<()> {
|
|
153
|
-
match value {
|
|
154
|
-
Value::Null => py_list.append(py.None())?,
|
|
155
|
-
Value::Bool(v) => py_list.append(*v)?,
|
|
156
|
-
Value::Number(v) => append_number(py_list, v)?,
|
|
157
|
-
Value::String(v) => py_list.append(v)?,
|
|
158
|
-
Value::Array(v) => py_list.append(json_array_to_py_list(py, v)?)?,
|
|
159
|
-
Value::Object(v) => py_list.append(json_object_to_py_dict(py, v)?)?,
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
Ok(())
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
fn set_number_in_dict(py_dict: &Bound<PyDict>, key: &str, value: &Number) -> PyResult<()> {
|
|
166
|
-
if let Some(v) = value.as_i64() {
|
|
167
|
-
py_dict.set_item(key, v)?;
|
|
168
|
-
} else if let Some(v) = value.as_u64() {
|
|
169
|
-
py_dict.set_item(key, v)?;
|
|
170
|
-
} else if let Some(v) = value.as_f64() {
|
|
171
|
-
py_dict.set_item(key, v)?;
|
|
172
|
-
} else {
|
|
173
|
-
py_dict.set_item(key, value.to_string())?;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
Ok(())
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
fn append_number(py_list: &Bound<PyList>, value: &Number) -> PyResult<()> {
|
|
180
|
-
if let Some(v) = value.as_i64() {
|
|
181
|
-
py_list.append(v)?;
|
|
182
|
-
} else if let Some(v) = value.as_u64() {
|
|
183
|
-
py_list.append(v)?;
|
|
184
|
-
} else if let Some(v) = value.as_f64() {
|
|
185
|
-
py_list.append(v)?;
|
|
186
|
-
} else {
|
|
187
|
-
py_list.append(value.to_string())?;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
Ok(())
|
|
191
|
-
}
|
|
192
|
-
|
|
193
104
|
pub fn get_string_from_py_dict_throw_on_none(
|
|
194
105
|
py_dict: &Bound<PyDict>,
|
|
195
106
|
key: &str,
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
use pyo3::{
|
|
2
|
+
types::{PyAnyMethods, PyDict, PyList, PyListMethods},
|
|
3
|
+
Bound, Py, PyAny, PyResult, Python,
|
|
4
|
+
};
|
|
5
|
+
use serde_json::{Map as SerdeMap, Number as SerdeNumber, Value as SerdeValue};
|
|
6
|
+
use statsig_rust::{
|
|
7
|
+
interned_string::InternedString,
|
|
8
|
+
statsig_types_raw::{DynamicConfigRaw, ExperimentRaw, FeatureGateRaw, SuffixedRuleId},
|
|
9
|
+
DynamicReturnable, EvaluationDetails, SecondaryExposure,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
pub(crate) fn raw_gate_to_py_dict(py: Python, raw: &FeatureGateRaw) -> PyResult<Py<PyDict>> {
|
|
13
|
+
let dict = PyDict::new(py);
|
|
14
|
+
|
|
15
|
+
dict.set_item("name", raw.name)?;
|
|
16
|
+
dict.set_item("value", raw.value)?;
|
|
17
|
+
|
|
18
|
+
py_dict_insert_rule_id(&dict, &raw.rule_id)?;
|
|
19
|
+
|
|
20
|
+
dict.set_item("idType", opt_interned_str(&raw.id_type))?;
|
|
21
|
+
dict.set_item("details", evaluation_details_to_py_dict(py, raw.details)?)?;
|
|
22
|
+
|
|
23
|
+
Ok(dict.unbind())
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
pub(crate) fn raw_dynamic_config_to_py_dict(
|
|
27
|
+
py: Python,
|
|
28
|
+
raw: &DynamicConfigRaw,
|
|
29
|
+
) -> PyResult<Py<PyDict>> {
|
|
30
|
+
let dict = PyDict::new(py);
|
|
31
|
+
|
|
32
|
+
dict.set_item("name", raw.name)?;
|
|
33
|
+
|
|
34
|
+
if let Some(value) = raw.value {
|
|
35
|
+
py_dict_insert_json_value(py, &dict, value)?;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
py_dict_insert_rule_id(&dict, &raw.rule_id)?;
|
|
39
|
+
|
|
40
|
+
dict.set_item("idType", opt_interned_str(&raw.id_type))?;
|
|
41
|
+
dict.set_item("details", evaluation_details_to_py_dict(py, raw.details)?)?;
|
|
42
|
+
|
|
43
|
+
Ok(dict.unbind())
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
pub(crate) fn raw_experiment_to_py_dict(py: Python, raw: &ExperimentRaw) -> PyResult<Py<PyDict>> {
|
|
47
|
+
let dict = PyDict::new(py);
|
|
48
|
+
|
|
49
|
+
dict.set_item("name", raw.name)?;
|
|
50
|
+
|
|
51
|
+
if let Some(value) = raw.value {
|
|
52
|
+
py_dict_insert_json_value(py, &dict, value)?;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
py_dict_insert_rule_id(&dict, &raw.rule_id)?;
|
|
56
|
+
|
|
57
|
+
dict.set_item("idType", opt_interned_str(&raw.id_type))?;
|
|
58
|
+
dict.set_item("details", evaluation_details_to_py_dict(py, raw.details)?)?;
|
|
59
|
+
dict.set_item("groupName", opt_interned_str(&raw.group_name))?;
|
|
60
|
+
dict.set_item("isExperimentActive", raw.is_experiment_active)?;
|
|
61
|
+
|
|
62
|
+
if let Some(secondary_exposures) = raw.secondary_exposures {
|
|
63
|
+
dict.set_item(
|
|
64
|
+
"secondaryExposures",
|
|
65
|
+
secondary_exposures_to_py_list(py, secondary_exposures)?,
|
|
66
|
+
)?;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
Ok(dict.unbind())
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
fn evaluation_details_to_py_dict(py: Python, details: &EvaluationDetails) -> PyResult<Py<PyDict>> {
|
|
73
|
+
let raw = PyDict::new(py);
|
|
74
|
+
raw.set_item("reason", &details.reason)?;
|
|
75
|
+
raw.set_item("lcut", details.lcut)?;
|
|
76
|
+
raw.set_item("received_at", details.received_at)?;
|
|
77
|
+
raw.set_item("version", details.version)?;
|
|
78
|
+
|
|
79
|
+
Ok(raw.unbind())
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
fn secondary_exposures_to_py_list(
|
|
83
|
+
py: Python,
|
|
84
|
+
secondary_exposures: &Vec<SecondaryExposure>,
|
|
85
|
+
) -> PyResult<Py<PyList>> {
|
|
86
|
+
let py_list = PyList::empty(py);
|
|
87
|
+
for secondary_exposure in secondary_exposures {
|
|
88
|
+
let dict = PyDict::new(py);
|
|
89
|
+
dict.set_item("gate", secondary_exposure.gate.as_str())?;
|
|
90
|
+
dict.set_item("gateValue", secondary_exposure.gate_value.as_str())?;
|
|
91
|
+
dict.set_item("ruleID", secondary_exposure.rule_id.as_str())?;
|
|
92
|
+
py_list.append(dict.unbind())?;
|
|
93
|
+
}
|
|
94
|
+
Ok(py_list.unbind())
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
fn opt_interned_str<'a>(value: &'a Option<&'a InternedString>) -> Option<&'a str> {
|
|
98
|
+
value.as_ref().map(|value| value.as_str())
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
fn py_dict_insert_rule_id(py_dict: &Bound<PyDict>, rule_id: &SuffixedRuleId) -> PyResult<()> {
|
|
102
|
+
if let Some(rule_id) = rule_id.try_as_unprefixed_str() {
|
|
103
|
+
py_dict.set_item("ruleID", rule_id)?;
|
|
104
|
+
} else {
|
|
105
|
+
py_dict.set_item("ruleID", rule_id.unperformant_to_string())?;
|
|
106
|
+
}
|
|
107
|
+
Ok(())
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
fn py_dict_insert_json_value(
|
|
111
|
+
py: Python,
|
|
112
|
+
py_dict: &Bound<PyDict>,
|
|
113
|
+
returnable: &DynamicReturnable,
|
|
114
|
+
) -> PyResult<()> {
|
|
115
|
+
if let Some(value) = returnable.get_serde_map() {
|
|
116
|
+
py_dict.set_item("value", json_object_to_py_dict(py, value)?)?;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
Ok(())
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// ------------------------------------------------------------------------------- [ Serde to Pyo3 ]
|
|
123
|
+
|
|
124
|
+
fn json_array_to_py_list(py: Python, values: Vec<SerdeValue>) -> PyResult<Py<PyAny>> {
|
|
125
|
+
let py_list = PyList::empty(py);
|
|
126
|
+
|
|
127
|
+
for value in values {
|
|
128
|
+
py_list_insert_value(py, &py_list, value)?;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
Ok(py_list.unbind().into())
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
fn json_object_to_py_dict(py: Python, map: SerdeMap<String, SerdeValue>) -> PyResult<Py<PyDict>> {
|
|
135
|
+
let py_dict = PyDict::new(py);
|
|
136
|
+
|
|
137
|
+
for (key, value) in map {
|
|
138
|
+
py_dict_insert_value(py, &py_dict, key, value)?;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
Ok(py_dict.unbind())
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
fn py_dict_insert_value(
|
|
145
|
+
py: Python,
|
|
146
|
+
py_dict: &Bound<PyDict>,
|
|
147
|
+
key: String,
|
|
148
|
+
value: SerdeValue,
|
|
149
|
+
) -> PyResult<()> {
|
|
150
|
+
match value {
|
|
151
|
+
SerdeValue::Null => py_dict.set_item(key, py.None())?,
|
|
152
|
+
SerdeValue::Bool(v) => py_dict.set_item(key, v)?,
|
|
153
|
+
SerdeValue::Number(v) => py_dict_insert_number(py_dict, key, v)?,
|
|
154
|
+
SerdeValue::String(v) => py_dict.set_item(key, v)?,
|
|
155
|
+
SerdeValue::Array(v) => py_dict.set_item(key, json_array_to_py_list(py, v)?)?,
|
|
156
|
+
SerdeValue::Object(v) => py_dict.set_item(key, json_object_to_py_dict(py, v)?)?,
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
Ok(())
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
fn py_dict_insert_number(py_dict: &Bound<PyDict>, key: String, value: SerdeNumber) -> PyResult<()> {
|
|
163
|
+
if let Some(v) = value.as_i64() {
|
|
164
|
+
py_dict.set_item(key, v)?;
|
|
165
|
+
} else if let Some(v) = value.as_u64() {
|
|
166
|
+
py_dict.set_item(key, v)?;
|
|
167
|
+
} else if let Some(v) = value.as_f64() {
|
|
168
|
+
py_dict.set_item(key, v)?;
|
|
169
|
+
} else {
|
|
170
|
+
py_dict.set_item(key, value.to_string())?;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
Ok(())
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
fn py_list_insert_value(py: Python, py_list: &Bound<PyList>, value: SerdeValue) -> PyResult<()> {
|
|
177
|
+
match value {
|
|
178
|
+
SerdeValue::Null => py_list.append(py.None())?,
|
|
179
|
+
SerdeValue::Bool(v) => py_list.append(v)?,
|
|
180
|
+
SerdeValue::Number(v) => py_list_insert_number(py_list, v)?,
|
|
181
|
+
SerdeValue::String(v) => py_list.append(v)?,
|
|
182
|
+
SerdeValue::Array(v) => py_list.append(json_array_to_py_list(py, v)?)?,
|
|
183
|
+
SerdeValue::Object(v) => py_list.append(json_object_to_py_dict(py, v)?)?,
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
Ok(())
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
fn py_list_insert_number(py_list: &Bound<PyList>, value: SerdeNumber) -> PyResult<()> {
|
|
190
|
+
if let Some(v) = value.as_i64() {
|
|
191
|
+
py_list.append(v)?;
|
|
192
|
+
} else if let Some(v) = value.as_u64() {
|
|
193
|
+
py_list.append(v)?;
|
|
194
|
+
} else if let Some(v) = value.as_f64() {
|
|
195
|
+
py_list.append(v)?;
|
|
196
|
+
} else {
|
|
197
|
+
py_list.append(value.to_string())?;
|
|
198
|
+
}
|
|
199
|
+
Ok(())
|
|
200
|
+
}
|
{statsig_python_core-0.18.0 → statsig_python_core-0.18.1}/statsig-pyo3/src/statsig_base_py.rs
RENAMED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
use crate::pyo_utils::
|
|
1
|
+
use crate::pyo_utils::py_dict_to_json_value_map;
|
|
2
|
+
use crate::raw_evaluation_compat_py::{
|
|
3
|
+
raw_dynamic_config_to_py_dict, raw_experiment_to_py_dict, raw_gate_to_py_dict,
|
|
4
|
+
};
|
|
2
5
|
use crate::safe_gil::SafeGil;
|
|
3
6
|
use crate::statsig_options_py::{safe_convert_to_statsig_options, StatsigOptionsPy};
|
|
4
7
|
use crate::statsig_persistent_storage_override_adapter_py::convert_dict_to_user_persisted_values;
|
|
@@ -13,11 +16,13 @@ use crate::{
|
|
|
13
16
|
statsig_user_py::StatsigUserPy,
|
|
14
17
|
};
|
|
15
18
|
use parking_lot::Mutex;
|
|
16
|
-
use pyo3::{
|
|
19
|
+
use pyo3::{
|
|
20
|
+
call::PyCallArgs,
|
|
21
|
+
prelude::*,
|
|
22
|
+
types::{PyDict, PyModule},
|
|
23
|
+
};
|
|
17
24
|
use pyo3_stub_gen::derive::*;
|
|
18
25
|
use serde_json::Value;
|
|
19
|
-
use statsig_rust::evaluation::evaluation_details::EvaluationDetails;
|
|
20
|
-
use statsig_rust::statsig_types::{DynamicConfig, FeatureGate};
|
|
21
26
|
use statsig_rust::{
|
|
22
27
|
log_e, ClientInitResponseOptions, DynamicConfigEvaluationOptions, ExperimentEvaluationOptions,
|
|
23
28
|
FeatureGateEvaluationOptions, HashAlgorithm, LayerEvaluationOptions, ObservabilityClient,
|
|
@@ -241,35 +246,19 @@ impl StatsigBasePy {
|
|
|
241
246
|
#[pyo3(name="_INTERNAL_get_feature_gate", signature = (user, name, options=None))]
|
|
242
247
|
pub fn _internal_get_feature_gate(
|
|
243
248
|
&self,
|
|
249
|
+
py: Python,
|
|
244
250
|
user: &StatsigUserPy,
|
|
245
251
|
name: &str,
|
|
246
252
|
options: Option<FeatureGateEvaluationOptionsPy>,
|
|
247
|
-
) ->
|
|
253
|
+
) -> PyResult<Py<PyDict>> {
|
|
248
254
|
self.inner.use_raw_feature_gate_with_options(
|
|
249
255
|
&user.inner,
|
|
250
256
|
name,
|
|
251
257
|
options.map_or(FeatureGateEvaluationOptions::default(), |o| o.into()),
|
|
252
|
-
|raw| raw
|
|
258
|
+
|raw| raw_gate_to_py_dict(py, raw),
|
|
253
259
|
)
|
|
254
260
|
}
|
|
255
261
|
|
|
256
|
-
#[pyo3(name="_INTERNAL_get_feature_gate_as_dict", signature = (user, name, options=None))]
|
|
257
|
-
pub fn _internal_get_feature_gate_as_dict(
|
|
258
|
-
&self,
|
|
259
|
-
user: &StatsigUserPy,
|
|
260
|
-
name: &str,
|
|
261
|
-
options: Option<FeatureGateEvaluationOptionsPy>,
|
|
262
|
-
py: Python,
|
|
263
|
-
) -> PyResult<Py<PyDict>> {
|
|
264
|
-
let gate = self.inner.get_feature_gate_with_options(
|
|
265
|
-
&user.inner,
|
|
266
|
-
name,
|
|
267
|
-
options.map_or(FeatureGateEvaluationOptions::default(), |o| o.into()),
|
|
268
|
-
);
|
|
269
|
-
|
|
270
|
-
feature_gate_to_py_dict(py, &gate)
|
|
271
|
-
}
|
|
272
|
-
|
|
273
262
|
#[pyo3(signature = (user, name))]
|
|
274
263
|
pub fn manually_log_gate_exposure(&self, user: &StatsigUserPy, name: &str) -> PyResult<()> {
|
|
275
264
|
self.inner.manually_log_gate_exposure(&user.inner, name);
|
|
@@ -279,35 +268,19 @@ impl StatsigBasePy {
|
|
|
279
268
|
#[pyo3(name="_INTERNAL_get_dynamic_config", signature = (user, name, options=None))]
|
|
280
269
|
pub fn _internal_get_dynamic_config(
|
|
281
270
|
&self,
|
|
271
|
+
py: Python,
|
|
282
272
|
user: &StatsigUserPy,
|
|
283
273
|
name: &str,
|
|
284
274
|
options: Option<DynamicConfigEvaluationOptionsPy>,
|
|
285
|
-
) ->
|
|
275
|
+
) -> PyResult<Py<PyDict>> {
|
|
286
276
|
self.inner.use_raw_dynamic_config_with_options(
|
|
287
277
|
&user.inner,
|
|
288
278
|
name,
|
|
289
279
|
options.map_or(DynamicConfigEvaluationOptions::default(), |o| o.into()),
|
|
290
|
-
|raw| raw
|
|
280
|
+
|raw| raw_dynamic_config_to_py_dict(py, raw),
|
|
291
281
|
)
|
|
292
282
|
}
|
|
293
283
|
|
|
294
|
-
#[pyo3(name="_INTERNAL_get_dynamic_config_as_dict", signature = (user, name, options=None))]
|
|
295
|
-
pub fn _internal_get_dynamic_config_as_dict(
|
|
296
|
-
&self,
|
|
297
|
-
user: &StatsigUserPy,
|
|
298
|
-
name: &str,
|
|
299
|
-
options: Option<DynamicConfigEvaluationOptionsPy>,
|
|
300
|
-
py: Python,
|
|
301
|
-
) -> PyResult<Py<PyDict>> {
|
|
302
|
-
let config = self.inner.get_dynamic_config_with_options(
|
|
303
|
-
&user.inner,
|
|
304
|
-
name,
|
|
305
|
-
options.map_or(DynamicConfigEvaluationOptions::default(), |o| o.into()),
|
|
306
|
-
);
|
|
307
|
-
|
|
308
|
-
dynamic_config_to_py_dict(py, &config)
|
|
309
|
-
}
|
|
310
|
-
|
|
311
284
|
#[pyo3(signature = (user, name))]
|
|
312
285
|
pub fn manually_log_dynamic_config_exposure(
|
|
313
286
|
&self,
|
|
@@ -326,7 +299,7 @@ impl StatsigBasePy {
|
|
|
326
299
|
name: &str,
|
|
327
300
|
options: Option<ExperimentEvaluationOptionsPy>,
|
|
328
301
|
py: Python,
|
|
329
|
-
) ->
|
|
302
|
+
) -> PyResult<Py<PyDict>> {
|
|
330
303
|
let mut options_actual = options
|
|
331
304
|
.as_ref()
|
|
332
305
|
.map_or(ExperimentEvaluationOptions::default(), |o| o.into());
|
|
@@ -337,7 +310,7 @@ impl StatsigBasePy {
|
|
|
337
310
|
|
|
338
311
|
self.inner
|
|
339
312
|
.use_raw_experiment_with_options(&user.inner, name, options_actual, |raw| {
|
|
340
|
-
raw
|
|
313
|
+
raw_experiment_to_py_dict(py, raw)
|
|
341
314
|
})
|
|
342
315
|
}
|
|
343
316
|
|
|
@@ -605,41 +578,6 @@ fn convert_to_string(value: Option<&Bound<PyAny>>) -> Option<String> {
|
|
|
605
578
|
value.extract::<String>().ok()
|
|
606
579
|
}
|
|
607
580
|
|
|
608
|
-
fn feature_gate_to_py_dict(py: Python, gate: &FeatureGate) -> PyResult<Py<PyDict>> {
|
|
609
|
-
let raw = PyDict::new(py);
|
|
610
|
-
raw.set_item("name", &gate.name)?;
|
|
611
|
-
raw.set_item("value", gate.value)?;
|
|
612
|
-
raw.set_item("ruleID", &gate.rule_id)?;
|
|
613
|
-
raw.set_item("idType", &gate.id_type)?;
|
|
614
|
-
raw.set_item("details", evaluation_details_to_py_dict(py, &gate.details)?)?;
|
|
615
|
-
|
|
616
|
-
Ok(raw.unbind())
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
fn dynamic_config_to_py_dict(py: Python, config: &DynamicConfig) -> PyResult<Py<PyDict>> {
|
|
620
|
-
let raw = PyDict::new(py);
|
|
621
|
-
raw.set_item("name", &config.name)?;
|
|
622
|
-
raw.set_item("value", map_to_py_dict_direct(py, &config.value)?)?;
|
|
623
|
-
raw.set_item("ruleID", &config.rule_id)?;
|
|
624
|
-
raw.set_item("idType", &config.id_type)?;
|
|
625
|
-
raw.set_item(
|
|
626
|
-
"details",
|
|
627
|
-
evaluation_details_to_py_dict(py, &config.details)?,
|
|
628
|
-
)?;
|
|
629
|
-
|
|
630
|
-
Ok(raw.unbind())
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
fn evaluation_details_to_py_dict(py: Python, details: &EvaluationDetails) -> PyResult<Py<PyDict>> {
|
|
634
|
-
let raw = PyDict::new(py);
|
|
635
|
-
raw.set_item("reason", &details.reason)?;
|
|
636
|
-
raw.set_item("lcut", details.lcut)?;
|
|
637
|
-
raw.set_item("received_at", details.received_at)?;
|
|
638
|
-
raw.set_item("version", details.version)?;
|
|
639
|
-
|
|
640
|
-
Ok(raw.unbind())
|
|
641
|
-
}
|
|
642
|
-
|
|
643
581
|
fn extract_event_metadata(metadata: Option<Bound<PyDict>>) -> Option<HashMap<String, Value>> {
|
|
644
582
|
metadata.map(|m| py_dict_to_json_value_map(&m))
|
|
645
583
|
}
|