statsig-python-core 0.17.3b2603290312__tar.gz → 0.18.0__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.
Files changed (361) hide show
  1. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/Cargo.lock +6 -6
  2. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/Cargo.toml +1 -1
  3. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/PKG-INFO +1 -1
  4. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/statsig.py +2 -2
  5. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/statsig_python_core.pyi +5 -3
  6. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/statsig_types.py +2 -2
  7. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/lib.rs +0 -1
  8. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/pyo_utils.rs +89 -0
  9. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_base_py.rs +79 -17
  10. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_data_store.py +11 -23
  11. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_feature_gate_serialization.py +2 -1
  12. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_get_dynamic_config.py +1 -2
  13. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_layer_serialization.py +0 -3
  14. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_observability_client.py +8 -15
  15. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/Cargo.toml +1 -1
  16. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -16
  17. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_metadata.rs +1 -1
  18. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_types_raw.rs +0 -19
  19. statsig_python_core-0.17.3b2603290312/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -200
  20. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/__init__.py +0 -0
  21. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/data_store.py +0 -0
  22. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/error_boundary.py +0 -0
  23. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/observability_client.py +0 -0
  24. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/output_logger_provider.py +0 -0
  25. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/persistent_storage.py +0 -0
  26. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/py.typed +0 -0
  27. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/py_src/statsig_python_core/requirements.txt +0 -0
  28. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/pyproject.toml +0 -0
  29. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/Cargo.toml +0 -0
  30. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/README.md +0 -0
  31. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/build.rs +0 -0
  32. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/lib.rs +0 -0
  33. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
  34. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
  35. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
  36. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
  37. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
  38. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/.github/workflows/CI.yml +0 -0
  39. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/.gitignore +0 -0
  40. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/Cargo.toml +0 -0
  41. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/README.md +0 -0
  42. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
  43. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/data_store_base_py.rs +0 -0
  44. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/interned_store_py.rs +0 -0
  45. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
  46. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
  47. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/safe_gil.rs +0 -0
  48. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
  49. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_options_py.rs +0 -0
  50. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
  51. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_types_py.rs +0 -0
  52. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/statsig_user_py.rs +0 -0
  53. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/unit_id_py.rs +0 -0
  54. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
  55. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/fork_runner.py +0 -0
  56. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/mock_output_logger.py +0 -0
  57. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/mock_scrapi.py +0 -0
  58. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/profile_util.py +0 -0
  59. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
  60. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_error_boundary.py +0 -0
  61. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
  62. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
  63. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_forking.py +0 -0
  64. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
  65. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
  66. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
  67. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_override_adapter.py +0 -0
  68. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_performance.py +0 -0
  69. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
  70. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_shutdown.py +0 -0
  71. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig.py +0 -0
  72. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig_options.py +0 -0
  73. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig_user.py +0 -0
  74. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
  75. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
  76. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
  77. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
  78. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-pyo3/tests/utils.py +0 -0
  79. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/build.rs +0 -0
  80. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/resources/ip_supalite.table +0 -0
  81. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
  82. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
  83. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
  84. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/__tests__/mod.rs +0 -0
  85. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
  86. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/compression/compression_helper.rs +0 -0
  87. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/compression/mod.rs +0 -0
  88. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
  89. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
  90. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
  91. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
  92. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/console_capture/mod.rs +0 -0
  93. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/data_store_interface.rs +0 -0
  94. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/dcs_str.rs +0 -0
  95. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
  96. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
  97. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
  98. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
  99. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
  100. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
  101. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
  102. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
  103. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
  104. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
  105. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
  106. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
  107. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
  108. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
  109. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
  110. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
  111. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
  112. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
  113. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluator.rs +0 -0
  114. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
  115. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
  116. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
  117. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
  118. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/mod.rs +0 -0
  119. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
  120. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
  121. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
  122. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
  123. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
  124. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
  125. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
  126. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
  127. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
  128. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
  129. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
  130. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
  131. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
  132. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
  133. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
  134. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
  135. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_logger.rs +0 -0
  136. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
  137. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
  138. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
  139. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
  140. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
  141. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
  142. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
  143. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
  144. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
  145. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
  146. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
  147. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
  148. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
  149. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
  150. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
  151. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/flush_type.rs +0 -0
  152. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/mod.rs +0 -0
  153. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
  154. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
  155. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
  156. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
  157. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
  158. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
  159. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
  160. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
  161. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
  162. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
  163. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/gcir_options.rs +0 -0
  164. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
  165. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
  166. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/mod.rs +0 -0
  167. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
  168. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
  169. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
  170. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/global_configs.rs +0 -0
  171. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/hashing/ahash.rs +0 -0
  172. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/hashing/djb2.rs +0 -0
  173. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/hashing/hash_util.rs +0 -0
  174. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
  175. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/hashing/mod.rs +0 -0
  176. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
  177. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
  178. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
  179. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
  180. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/init_details.rs +0 -0
  181. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
  182. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/initialize_response.rs +0 -0
  183. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/initialize_v2_response.rs +0 -0
  184. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/instance_registry.rs +0 -0
  185. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_string.rs +0 -0
  186. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
  187. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
  188. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
  189. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
  190. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/interned_store.rs +0 -0
  191. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/interned_values/mod.rs +0 -0
  192. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/lib.rs +0 -0
  193. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/logging_utils.rs +0 -0
  194. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/macros.rs +0 -0
  195. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
  196. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
  197. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/http_types.rs +0 -0
  198. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/mod.rs +0 -0
  199. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/network_client.rs +0 -0
  200. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/network_error.rs +0 -0
  201. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/providers/mod.rs +0 -0
  202. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
  203. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
  204. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
  205. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/networking/proxy_config.rs +0 -0
  206. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
  207. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
  208. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/mod.rs +0 -0
  209. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
  210. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/ops_stats.rs +0 -0
  211. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
  212. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/output_logger.rs +0 -0
  213. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/override_adapter/mod.rs +0 -0
  214. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
  215. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
  216. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
  217. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
  218. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/persistent_storage/mod.rs +0 -0
  219. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
  220. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
  221. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
  222. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
  223. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
  224. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
  225. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
  226. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
  227. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
  228. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
  229. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/spec_store.rs +0 -0
  230. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
  231. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/mod.rs +0 -0
  232. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
  233. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
  234. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
  235. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
  236. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
  237. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
  238. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
  239. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
  240. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
  241. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
  242. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
  243. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
  244. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
  245. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
  246. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
  247. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/mod.rs +0 -0
  248. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
  249. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
  250. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
  251. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/spec_types.rs +0 -0
  252. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
  253. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
  254. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig.rs +0 -0
  255. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_core_api_options.rs +0 -0
  256. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_err.rs +0 -0
  257. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_global.rs +0 -0
  258. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_options.rs +0 -0
  259. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_runtime.rs +0 -0
  260. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_type_factories.rs +0 -0
  261. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/statsig_types.rs +0 -0
  262. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/into_optional.rs +0 -0
  263. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/mod.rs +0 -0
  264. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/statsig_user.rs +0 -0
  265. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
  266. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
  267. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
  268. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/unit_id.rs +0 -0
  269. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/user/user_data.rs +0 -0
  270. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/src/utils/mod.rs +0 -0
  271. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/check_gate_tests.rs +0 -0
  272. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
  273. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/big_number_dcs.json +0 -0
  274. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
  275. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/company_id_list +0 -0
  276. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_error.json +0 -0
  277. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
  278. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
  279. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
  280. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
  281. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
  282. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
  283. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
  284. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
  285. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
  286. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
  287. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/get_id_lists.json +0 -0
  288. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
  289. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
  290. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
  291. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
  292. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
  293. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
  294. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
  295. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
  296. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/test_user_agents.txt +0 -0
  297. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/ua_string_cases.json +0 -0
  298. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
  299. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
  300. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
  301. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
  302. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
  303. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
  304. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
  305. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
  306. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
  307. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
  308. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
  309. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
  310. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
  311. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
  312. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/exposure_tests.rs +0 -0
  313. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/flushing_tests.rs +0 -0
  314. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
  315. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/gcir_tests.rs +0 -0
  316. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/global_configs_test.rs +0 -0
  317. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
  318. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
  319. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
  320. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
  321. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/instance_registry_tests.rs +0 -0
  322. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
  323. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/list_methods_tests.rs +0 -0
  324. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
  325. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/network_client_tests.rs +0 -0
  326. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/network_failure_tests.rs +0 -0
  327. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
  328. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/output_logger_tests.rs +0 -0
  329. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/override_adapter_tests.rs +0 -0
  330. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/perf_tests.rs +0 -0
  331. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
  332. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
  333. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/spec_types_tests.rs +0 -0
  334. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
  335. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
  336. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
  337. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_global_tests.rs +0 -0
  338. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
  339. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
  340. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_options_tests.rs +0 -0
  341. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
  342. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_tests.rs +0 -0
  343. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
  344. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
  345. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
  346. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
  347. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/statsig_user_tests.rs +0 -0
  348. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
  349. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/typed_getters_tests.rs +0 -0
  350. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
  351. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
  352. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/user_json_tests.rs +0 -0
  353. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/helpers.rs +0 -0
  354. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
  355. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
  356. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
  357. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
  358. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
  359. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
  360. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
  361. {statsig_python_core-0.17.3b2603290312 → statsig_python_core-0.18.0}/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.17.3-beta.2603290312"
2872
+ version = "0.18.0"
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.17.3-beta.2603290312"
2964
+ version = "0.18.0"
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.17.3-beta.2603290312"
2978
+ version = "0.18.0"
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.17.3-beta.2603290312"
2992
+ version = "0.18.0"
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.17.3-beta.2603290312"
3041
+ version = "0.18.0"
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.17.3-beta.2603290312"
3054
+ version = "0.18.0"
3055
3055
  dependencies = [
3056
3056
  "async-trait",
3057
3057
  "cbindgen",
@@ -18,7 +18,7 @@ exclude = [
18
18
  [workspace.package]
19
19
  edition = "2021"
20
20
  license = "ISC"
21
- version = "0.17.3-beta.2603290312"
21
+ version = "0.18.0"
22
22
  homepage = "https://statsig.com/"
23
23
  authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"]
24
24
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statsig_python_core
3
- Version: 0.17.3b2603290312
3
+ Version: 0.18.0
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -85,7 +85,7 @@ class Statsig(StatsigBasePy):
85
85
  name: str,
86
86
  options: Optional[FeatureGateEvaluationOptions] = None,
87
87
  ) -> FeatureGate:
88
- raw = super()._INTERNAL_get_feature_gate(user, name, options)
88
+ raw = super()._INTERNAL_get_feature_gate_as_dict(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()._INTERNAL_get_dynamic_config(user, name, options)
97
+ raw = super()._INTERNAL_get_dynamic_config_as_dict(user, name, options)
98
98
  return DynamicConfig(name, raw)
99
99
 
100
100
  def get_experiment(
@@ -178,11 +178,13 @@ 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) -> dict: ...
181
+ def _INTERNAL_get_feature_gate(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) -> builtins.str: ...
182
+ def _INTERNAL_get_feature_gate_as_dict(self, user: StatsigUser, name: builtins.str, options: typing.Optional[FeatureGateEvaluationOptions] = None) -> dict: ...
182
183
  def manually_log_gate_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
183
- def _INTERNAL_get_dynamic_config(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) -> dict: ...
184
+ def _INTERNAL_get_dynamic_config(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) -> builtins.str: ...
185
+ def _INTERNAL_get_dynamic_config_as_dict(self, user: StatsigUser, name: builtins.str, options: typing.Optional[DynamicConfigEvaluationOptions] = None) -> dict: ...
184
186
  def manually_log_dynamic_config_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
185
- def _INTERNAL_get_experiment(self, user: StatsigUser, name: builtins.str, options: typing.Optional[ExperimentEvaluationOptions] = None) -> dict: ...
187
+ def _INTERNAL_get_experiment(self, user: StatsigUser, name: builtins.str, options: typing.Optional[ExperimentEvaluationOptions] = None) -> builtins.str: ...
186
188
  def manually_log_experiment_exposure(self, user: StatsigUser, name: builtins.str) -> None: ...
187
189
  def _INTERNAL_get_layer(self, user: StatsigUser, name: builtins.str, options: typing.Optional[LayerEvaluationOptions] = None) -> builtins.str: ...
188
190
  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: dict):
163
+ def __init__(self, name: str, raw: str):
164
164
  try:
165
- data = raw or {}
165
+ data = json.loads(raw) or {}
166
166
  super().__init__(name, data, "Experiment")
167
167
  self.group_name = data.get("groupName")
168
168
  except Exception as error:
@@ -3,7 +3,6 @@ mod interned_store_py;
3
3
  mod observability_client_base_py;
4
4
  mod output_logger_provider_base_py;
5
5
  mod pyo_utils;
6
- mod raw_evaluation_compat_py;
7
6
  mod safe_gil;
8
7
  mod statsig_base_py;
9
8
  mod statsig_metadata_py;
@@ -62,6 +62,16 @@ 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
+
65
75
  pub fn py_list_to_list(py_list: &Bound<PyList>) -> PyResult<Vec<String>> {
66
76
  let mut converted_list = Vec::new();
67
77
  for value in py_list {
@@ -101,6 +111,85 @@ pub fn list_of_values_to_py_list(py: Python, list: &Vec<Value>) -> PyResult<Py<P
101
111
  Ok(py_list.into())
102
112
  }
103
113
 
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
+
104
193
  pub fn get_string_from_py_dict_throw_on_none(
105
194
  py_dict: &Bound<PyDict>,
106
195
  key: &str,
@@ -1,7 +1,4 @@
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
- };
1
+ use crate::pyo_utils::{map_to_py_dict_direct, py_dict_to_json_value_map};
5
2
  use crate::safe_gil::SafeGil;
6
3
  use crate::statsig_options_py::{safe_convert_to_statsig_options, StatsigOptionsPy};
7
4
  use crate::statsig_persistent_storage_override_adapter_py::convert_dict_to_user_persisted_values;
@@ -16,13 +13,11 @@ use crate::{
16
13
  statsig_user_py::StatsigUserPy,
17
14
  };
18
15
  use parking_lot::Mutex;
19
- use pyo3::{
20
- call::PyCallArgs,
21
- prelude::*,
22
- types::{PyDict, PyModule},
23
- };
16
+ use pyo3::{call::PyCallArgs, prelude::*, types::PyDict};
24
17
  use pyo3_stub_gen::derive::*;
25
18
  use serde_json::Value;
19
+ use statsig_rust::evaluation::evaluation_details::EvaluationDetails;
20
+ use statsig_rust::statsig_types::{DynamicConfig, FeatureGate};
26
21
  use statsig_rust::{
27
22
  log_e, ClientInitResponseOptions, DynamicConfigEvaluationOptions, ExperimentEvaluationOptions,
28
23
  FeatureGateEvaluationOptions, HashAlgorithm, LayerEvaluationOptions, ObservabilityClient,
@@ -246,19 +241,35 @@ impl StatsigBasePy {
246
241
  #[pyo3(name="_INTERNAL_get_feature_gate", signature = (user, name, options=None))]
247
242
  pub fn _internal_get_feature_gate(
248
243
  &self,
249
- py: Python,
250
244
  user: &StatsigUserPy,
251
245
  name: &str,
252
246
  options: Option<FeatureGateEvaluationOptionsPy>,
253
- ) -> PyResult<Py<PyDict>> {
247
+ ) -> String {
254
248
  self.inner.use_raw_feature_gate_with_options(
255
249
  &user.inner,
256
250
  name,
257
251
  options.map_or(FeatureGateEvaluationOptions::default(), |o| o.into()),
258
- |raw| raw_gate_to_py_dict(py, raw),
252
+ |raw| raw.unperformant_to_json_string(),
259
253
  )
260
254
  }
261
255
 
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
+
262
273
  #[pyo3(signature = (user, name))]
263
274
  pub fn manually_log_gate_exposure(&self, user: &StatsigUserPy, name: &str) -> PyResult<()> {
264
275
  self.inner.manually_log_gate_exposure(&user.inner, name);
@@ -268,19 +279,35 @@ impl StatsigBasePy {
268
279
  #[pyo3(name="_INTERNAL_get_dynamic_config", signature = (user, name, options=None))]
269
280
  pub fn _internal_get_dynamic_config(
270
281
  &self,
271
- py: Python,
272
282
  user: &StatsigUserPy,
273
283
  name: &str,
274
284
  options: Option<DynamicConfigEvaluationOptionsPy>,
275
- ) -> PyResult<Py<PyDict>> {
285
+ ) -> String {
276
286
  self.inner.use_raw_dynamic_config_with_options(
277
287
  &user.inner,
278
288
  name,
279
289
  options.map_or(DynamicConfigEvaluationOptions::default(), |o| o.into()),
280
- |raw| raw_dynamic_config_to_py_dict(py, raw),
290
+ |raw| raw.unperformant_to_json_string(),
281
291
  )
282
292
  }
283
293
 
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
+
284
311
  #[pyo3(signature = (user, name))]
285
312
  pub fn manually_log_dynamic_config_exposure(
286
313
  &self,
@@ -299,7 +326,7 @@ impl StatsigBasePy {
299
326
  name: &str,
300
327
  options: Option<ExperimentEvaluationOptionsPy>,
301
328
  py: Python,
302
- ) -> PyResult<Py<PyDict>> {
329
+ ) -> String {
303
330
  let mut options_actual = options
304
331
  .as_ref()
305
332
  .map_or(ExperimentEvaluationOptions::default(), |o| o.into());
@@ -310,7 +337,7 @@ impl StatsigBasePy {
310
337
 
311
338
  self.inner
312
339
  .use_raw_experiment_with_options(&user.inner, name, options_actual, |raw| {
313
- raw_experiment_to_py_dict(py, raw)
340
+ raw.unperformant_to_json_string()
314
341
  })
315
342
  }
316
343
 
@@ -578,6 +605,41 @@ fn convert_to_string(value: Option<&Bound<PyAny>>) -> Option<String> {
578
605
  value.extract::<String>().ok()
579
606
  }
580
607
 
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
+
581
643
  fn extract_event_metadata(metadata: Option<Bound<PyDict>>) -> Option<HashMap<String, Value>> {
582
644
  metadata.map(|m| py_dict_to_json_value_map(&m))
583
645
  }
@@ -28,8 +28,6 @@ if "time" in updated_dcs_json_data:
28
28
 
29
29
 
30
30
  class MockDataStore(DataStore):
31
- VERBOSE = False
32
-
33
31
  def __init__(self, test_param: str = ""):
34
32
  super().__init__()
35
33
  self.test_param = test_param
@@ -47,34 +45,28 @@ class MockDataStore(DataStore):
47
45
 
48
46
  def initialize(self):
49
47
  self.init_called = True
50
- self._log("Initializing MockDataStore")
48
+ print("Initializing MockDataStore")
51
49
 
52
50
  def shutdown(self):
53
- self._log("Shutting down MockDataStore")
51
+ print("Shutting down MockDataStore")
54
52
 
55
53
  def get(self, key: str) -> Optional[DataStoreResponse]:
56
- self._log(f"Getting value for key: {key}")
54
+ print(f"Getting value for key: {key}")
57
55
  self.get_called_count += 1
58
56
  return DataStoreResponse(result=dcs_content, time=1234567890)
59
57
 
60
58
  def set(self, key: str, value: str, time: Optional[int] = None):
61
59
  self.content_set = value
62
- self._log(f"Setting value for key: {key}")
60
+ print(f"Setting value for key: {key}")
63
61
 
64
62
  def support_polling_updates_for(self, key: str) -> bool:
65
- self._log(
63
+ print(
66
64
  f"Checking if polling updates are supported for key: {key}: should_poll={self.should_poll}"
67
65
  )
68
66
  return self.should_poll
69
67
 
70
- def _log(self, message: str):
71
- if self.VERBOSE:
72
- print(message)
73
-
74
68
 
75
69
  class MockBytesDataStore(DataStore):
76
- VERBOSE = False
77
-
78
70
  def __init__(self, test_param: str = ""):
79
71
  super().__init__()
80
72
  self.test_param = test_param
@@ -95,10 +87,10 @@ class MockBytesDataStore(DataStore):
95
87
 
96
88
  def initialize(self):
97
89
  self.init_called = True
98
- self._log("Initializing MockBytesDataStore")
90
+ print("Initializing MockBytesDataStore")
99
91
 
100
92
  def shutdown(self):
101
- self._log("Shutting down MockBytesDataStore")
93
+ print("Shutting down MockBytesDataStore")
102
94
 
103
95
  def get(self, key: str) -> Optional[DataStoreResponse]:
104
96
  self.get_called_count += 1
@@ -106,31 +98,27 @@ class MockBytesDataStore(DataStore):
106
98
 
107
99
  def set(self, key: str, value: str, time: Optional[int] = None):
108
100
  self.set_called_count += 1
109
- self._log(f"Setting value for key via string path: {key}")
101
+ print(f"Setting value for key via string path: {key}")
110
102
 
111
103
  def get_bytes(self, key: str) -> Optional[DataStoreBytesResponse]:
112
- self._log(f"Getting bytes for key: {key}")
104
+ print(f"Getting bytes for key: {key}")
113
105
  self.get_bytes_called_count += 1
114
106
  return DataStoreBytesResponse(result=eval_proj_protobuf, time=1234567890)
115
107
 
116
108
  def set_bytes(self, key: str, value: bytes, time: Optional[int] = None):
117
109
  self.content_set = value
118
110
  self.set_bytes_called_count += 1
119
- self._log(f"Setting bytes for key: {key}")
111
+ print(f"Setting bytes for key: {key}")
120
112
 
121
113
  def supports_bytes(self) -> bool:
122
114
  return True
123
115
 
124
116
  def support_polling_updates_for(self, key: str) -> bool:
125
- self._log(
117
+ print(
126
118
  f"Checking if polling updates are supported for key: {key}: should_poll={self.should_poll}"
127
119
  )
128
120
  return self.should_poll
129
121
 
130
- def _log(self, message: str):
131
- if self.VERBOSE:
132
- print(message)
133
-
134
122
 
135
123
  @pytest.fixture
136
124
  def statsig_setup(httpserver: HTTPServer):
@@ -47,7 +47,7 @@ def test_feature_gate_to_py_dict_round_trip_preserves_data(statsig_setup):
47
47
  user = StatsigUser("a-user")
48
48
  gate_name = "test_public"
49
49
 
50
- raw_from_json = statsig._INTERNAL_get_feature_gate(user, gate_name)
50
+ raw_from_json = json.loads(statsig._INTERNAL_get_feature_gate(user, gate_name))
51
51
  expected_payload = {
52
52
  "name": raw_from_json.get("name"),
53
53
  "value": raw_from_json.get("value"),
@@ -60,3 +60,4 @@ def test_feature_gate_to_py_dict_round_trip_preserves_data(statsig_setup):
60
60
  expected_gate = FeatureGate(gate_name, expected_payload)
61
61
 
62
62
  assert gate.to_dict() == expected_gate.to_dict()
63
+
@@ -2,7 +2,6 @@
2
2
  Tests focused on get_dynamic_config API.
3
3
  Verifies that dynamicConfig.value is a valid JSON object (dict) and tests all related functionality.
4
4
  """
5
-
6
5
  import json
7
6
  import pytest
8
7
  from statsig_python_core import DynamicConfig, Statsig, StatsigOptions, StatsigUser
@@ -68,7 +67,7 @@ def test_dynamic_config_to_py_dict_round_trip_preserves_data(statsig_setup):
68
67
 
69
68
  # get_dynamic_config performs:
70
69
  # Rust DynamicConfig -> dynamic_config_to_py_dict -> Python DynamicConfig
71
- raw_from_json = statsig._INTERNAL_get_dynamic_config(user, config_name)
70
+ raw_from_json = json.loads(statsig._INTERNAL_get_dynamic_config(user, config_name))
72
71
  expected_rule_id = raw_from_json.get("rule_id", raw_from_json.get("ruleID"))
73
72
  expected_id_type = raw_from_json.get("id_type", raw_from_json.get("idType"))
74
73
  config = statsig.get_dynamic_config(user, config_name)
@@ -33,14 +33,11 @@ def test_layer_value_is_json_dict(statsig_setup):
33
33
 
34
34
  value = layer.get_value()
35
35
  assert isinstance(value, dict)
36
- assert "a_string" in value
37
- assert layer.get_string("a_string", "ERR") != "ERR"
38
36
 
39
37
  json_str = json.dumps(value)
40
38
  parsed = json.loads(json_str)
41
39
  assert parsed == value
42
40
 
43
-
44
41
  def test_layer_to_dict_is_json_serializable(statsig_setup):
45
42
  statsig = statsig_setup
46
43
  layer = statsig.get_layer(StatsigUser("my_user"), "layer_with_many_params")
@@ -19,11 +19,9 @@ class MockObservabilityClient(ObservabilityClient):
19
19
  init_called = False
20
20
  dist_called = False
21
21
  error_called = False
22
- metrics: List[
23
- Tuple[str, str, Any, Optional[Dict[str, str]]]
24
- ] = [] # Stores (type, metric_name, value, tags)
25
-
26
- VERBOSE = False
22
+ metrics: List[Tuple[str, str, Any, Optional[Dict[str, str]]]] = (
23
+ []
24
+ ) # Stores (type, metric_name, value, tags)
27
25
 
28
26
  def __new__(cls, test_param: str = ""):
29
27
  instance = super().__new__(cls)
@@ -32,40 +30,35 @@ class MockObservabilityClient(ObservabilityClient):
32
30
 
33
31
  def init(self) -> None:
34
32
  self.init_called = True
35
-
36
- self._log("Initializing ExampleObservationClient")
33
+ print("Initializing ExampleObservationClient")
37
34
 
38
35
  def increment(
39
36
  self, metric_name: str, value: int = 1, tags: Optional[Dict[str, str]] = None
40
37
  ) -> None:
41
- self._log(f"Incrementing {metric_name} by {value} with tags {tags}")
38
+ print(f"Incrementing {metric_name} by {value} with tags {tags}")
42
39
  self.metrics.append(("increment", metric_name, value, tags))
43
40
 
44
41
  def gauge(
45
42
  self, metric_name: str, value: float, tags: Optional[Dict[str, str]] = None
46
43
  ) -> None:
47
- self._log(f"Gauging {metric_name} by {value} with tags {tags}")
44
+ print(f"Gauging {metric_name} by {value} with tags {tags}")
48
45
  self.metrics.append(("gauge", metric_name, value, tags))
49
46
 
50
47
  def dist(
51
48
  self, metric_name: str, value: float, tags: Optional[Dict[str, str]] = None
52
49
  ) -> None:
53
- self._log(f"Distribution {metric_name} by {value} with tags {tags}")
50
+ print(f"Distribution {metric_name} by {value} with tags {tags}")
54
51
  self.dist_called = True
55
52
  self.metrics.append(("distribution", metric_name, value, tags))
56
53
 
57
54
  def error(self, tag: str, error: str) -> None:
58
- self._log(f"Error callback for {tag}: {error}")
55
+ print(f"Error callback for {tag}: {error}")
59
56
  self.error_called = True
60
57
  self.metrics.append(("error", tag, error, None))
61
58
 
62
59
  def should_enable_high_cardinality_for_this_tag(self, tag):
63
60
  return True
64
61
 
65
- def _log(self, message: str):
66
- if self.VERBOSE:
67
- print(message)
68
-
69
62
 
70
63
  @pytest.fixture
71
64
  def statsig_setup(httpserver: HTTPServer):
@@ -39,7 +39,7 @@ serde_json = { version = "1.0.143", features = [
39
39
  ] }
40
40
  serde_with = "3.4.0"
41
41
  sha2 = "0.10.8"
42
- sigstat-grpc = { path = "../statsig-grpc", version = "0.17.3-beta.2603290312", optional = true }
42
+ sigstat-grpc = { path = "../statsig-grpc", version = "0.18.0", optional = true }
43
43
  simple_logger = { version = "5.0.0" }
44
44
  tempfile = "3.8.1"
45
45
  tokio = { version = "1.39.1", features = ["full"] }
@@ -66,22 +66,6 @@ impl DynamicReturnable {
66
66
  }
67
67
  }
68
68
 
69
- pub fn get_serde_map(&self) -> Option<serde_json::Map<String, JsonValue>> {
70
- let bytes = match &self.value {
71
- DynamicReturnableValue::JsonPointer(bytes) => bytes.get().as_bytes(),
72
- DynamicReturnableValue::JsonStatic(bytes) => bytes.get().as_bytes(),
73
- _ => return None,
74
- };
75
-
76
- match serde_json::from_slice(bytes) {
77
- Ok(json) => Some(json),
78
- Err(e) => {
79
- log_e!(TAG, "Failed to parse json. Error: {}", e);
80
- None
81
- }
82
- }
83
- }
84
-
85
69
  pub fn get_json(&self) -> Option<HashMap<String, JsonValue>> {
86
70
  let bytes = match &self.value {
87
71
  DynamicReturnableValue::JsonPointer(bytes) => bytes.get().as_bytes(),
@@ -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.17.3-beta.2603290312";
13
+ pub const SDK_VERSION: &str = "0.18.0";
14
14
 
15
15
  const TAG: &str = stringify!(StatsigMetadata);
16
16