statsig-python-core 0.14.0__tar.gz → 0.14.1rc2512160223__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 (355) hide show
  1. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/Cargo.lock +6 -6
  2. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/Cargo.toml +2 -1
  3. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/PKG-INFO +1 -1
  4. {statsig_python_core-0.14.0/statsig-pyo3 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/__init__.py +1 -0
  5. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/statsig.py +46 -0
  6. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/statsig_python_core.pyi +9 -95
  7. statsig_python_core-0.14.1rc2512160223/py_src/statsig_python_core/statsig_types.py +262 -0
  8. statsig_python_core-0.14.1rc2512160223/statsig-grpc/build.rs +14 -0
  9. statsig_python_core-0.14.1rc2512160223/statsig-grpc/src/protos/statsig_forward_proxy.proto +28 -0
  10. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/Cargo.toml +4 -1
  11. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223/statsig-pyo3}/py_src/statsig_python_core/__init__.py +1 -0
  12. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/statsig.py +46 -0
  13. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/statsig_python_core.pyi +9 -95
  14. statsig_python_core-0.14.1rc2512160223/statsig-pyo3/py_src/statsig_python_core/statsig_types.py +262 -0
  15. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/lib.rs +0 -5
  16. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_base_py.rs +30 -64
  17. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_options_py.rs +8 -0
  18. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_types_py.rs +1 -165
  19. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_data_store.py +1 -1
  20. statsig_python_core-0.14.1rc2512160223/statsig-pyo3/tests/test_get_dynamic_config.py +60 -0
  21. statsig_python_core-0.14.1rc2512160223/statsig-pyo3/tests/test_performance.py +106 -0
  22. statsig_python_core-0.14.1rc2512160223/statsig-pyo3/tests/test_user_exposure_e2e.py +115 -0
  23. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/Cargo.toml +1 -1
  24. statsig_python_core-0.14.1rc2512160223/statsig-rust/build.rs +12 -0
  25. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/data_store_interface.rs +33 -10
  26. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +43 -41
  27. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/network_client.rs +15 -8
  28. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +129 -126
  29. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_diagnostics/marker.rs +30 -0
  30. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +30 -31
  31. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/spec_store.rs +27 -14
  32. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +4 -6
  33. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +3 -12
  34. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +7 -4
  35. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +3 -3
  36. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig.rs +175 -167
  37. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_metadata.rs +1 -1
  38. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_options.rs +2 -1
  39. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/customized_specs_adapter_tests.rs +2 -2
  40. statsig_python_core-0.14.1rc2512160223/statsig-rust/tests/data/demo_proj_dcs.json +1 -0
  41. statsig_python_core-0.14.1rc2512160223/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
  42. statsig_python_core-0.14.1rc2512160223/statsig-rust/tests/data/eval_proj_dcs.json +1 -0
  43. statsig_python_core-0.14.1rc2512160223/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
  44. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/perf_proj_dcs.json +1 -1
  45. statsig_python_core-0.14.1rc2512160223/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
  46. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/direct_gcir_tests.rs +1 -1
  47. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/observability_client_usage_tests.rs +1 -1
  48. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/proto_specs_usage_tests.rs +55 -3
  49. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +1 -1
  50. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +2 -2
  51. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_data_store.rs +19 -1
  52. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_log_provider.rs +11 -1
  53. statsig_python_core-0.14.0/statsig-grpc/build.rs +0 -4
  54. statsig_python_core-0.14.0/statsig-rust/build.rs +0 -10
  55. statsig_python_core-0.14.0/statsig-rust/tests/data/demo_proj_dcs.json +0 -1
  56. statsig_python_core-0.14.0/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
  57. statsig_python_core-0.14.0/statsig-rust/tests/data/eval_proj_dcs.json +0 -1
  58. statsig_python_core-0.14.0/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
  59. statsig_python_core-0.14.0/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
  60. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/data_store.py +0 -0
  61. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/error_boundary.py +0 -0
  62. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/observability_client.py +0 -0
  63. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/output_logger_provider.py +0 -0
  64. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/persistent_storage.py +0 -0
  65. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/py.typed +0 -0
  66. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/py_src/statsig_python_core/requirements.txt +0 -0
  67. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/pyproject.toml +0 -0
  68. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/Cargo.toml +0 -0
  69. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/README.md +0 -0
  70. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/src/lib.rs +0 -0
  71. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
  72. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
  73. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
  74. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
  75. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/.github/workflows/CI.yml +0 -0
  76. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/.gitignore +0 -0
  77. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/README.md +0 -0
  78. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/data_store.py +0 -0
  79. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/error_boundary.py +0 -0
  80. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/observability_client.py +0 -0
  81. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/output_logger_provider.py +0 -0
  82. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/persistent_storage.py +0 -0
  83. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/py.typed +0 -0
  84. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/py_src/statsig_python_core/requirements.txt +0 -0
  85. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
  86. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/data_store_base_py.rs +0 -0
  87. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
  88. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
  89. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/pyo_utils.rs +0 -0
  90. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/safe_gil.rs +0 -0
  91. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
  92. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
  93. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/statsig_user_py.rs +0 -0
  94. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/unit_id_py.rs +0 -0
  95. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
  96. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/fork_runner.py +0 -0
  97. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/mock_scrapi.py +0 -0
  98. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
  99. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_error_boundary.py +0 -0
  100. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
  101. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_forking.py +0 -0
  102. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
  103. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_observability_client.py +0 -0
  104. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
  105. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_override_adapter.py +0 -0
  106. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
  107. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_shutdown.py +0 -0
  108. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_statsig.py +0 -0
  109. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_statsig_options.py +0 -0
  110. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_statsig_user.py +0 -0
  111. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
  112. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-pyo3/tests/utils.py +0 -0
  113. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/resources/ip_supalite.table +0 -0
  114. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
  115. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
  116. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
  117. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/__tests__/mod.rs +0 -0
  118. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
  119. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/compression/compression_helper.rs +0 -0
  120. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/compression/mod.rs +0 -0
  121. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
  122. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
  123. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
  124. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
  125. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/console_capture/mod.rs +0 -0
  126. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/dcs_str.rs +0 -0
  127. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
  128. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
  129. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
  130. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
  131. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
  132. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
  133. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
  134. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
  135. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
  136. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
  137. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
  138. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
  139. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
  140. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
  141. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
  142. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
  143. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
  144. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
  145. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluator.rs +0 -0
  146. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
  147. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
  148. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
  149. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
  150. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/mod.rs +0 -0
  151. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
  152. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
  153. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
  154. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
  155. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
  156. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
  157. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
  158. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
  159. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
  160. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
  161. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
  162. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
  163. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
  164. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
  165. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
  166. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_logger.rs +0 -0
  167. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
  168. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
  169. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
  170. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
  171. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
  172. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
  173. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
  174. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
  175. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
  176. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
  177. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
  178. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
  179. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
  180. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
  181. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/flush_type.rs +0 -0
  182. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/mod.rs +0 -0
  183. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
  184. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
  185. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
  186. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
  187. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
  188. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
  189. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
  190. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
  191. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
  192. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
  193. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/gcir_options.rs +0 -0
  194. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
  195. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
  196. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/mod.rs +0 -0
  197. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
  198. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
  199. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
  200. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/global_configs.rs +0 -0
  201. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/hashing/ahash.rs +0 -0
  202. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/hashing/djb2.rs +0 -0
  203. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/hashing/hash_util.rs +0 -0
  204. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
  205. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/hashing/mod.rs +0 -0
  206. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
  207. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
  208. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
  209. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
  210. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/init_details.rs +0 -0
  211. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
  212. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/initialize_response.rs +0 -0
  213. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/initialize_v2_response.rs +0 -0
  214. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/instance_registry.rs +0 -0
  215. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/interned_string.rs +0 -0
  216. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/interned_value_store.rs +0 -0
  217. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/lib.rs +0 -0
  218. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/macros.rs +0 -0
  219. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
  220. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
  221. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/http_types.rs +0 -0
  222. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/mod.rs +0 -0
  223. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/network_error.rs +0 -0
  224. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/providers/mod.rs +0 -0
  225. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
  226. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
  227. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
  228. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/networking/proxy_config.rs +0 -0
  229. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
  230. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
  231. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/mod.rs +0 -0
  232. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
  233. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/ops_stats.rs +0 -0
  234. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
  235. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/output_logger.rs +0 -0
  236. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/override_adapter/mod.rs +0 -0
  237. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
  238. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
  239. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
  240. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
  241. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/persistent_storage/mod.rs +0 -0
  242. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
  243. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
  244. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
  245. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
  246. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
  247. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
  248. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
  249. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/mod.rs +0 -0
  250. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
  251. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
  252. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
  253. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
  254. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
  255. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
  256. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
  257. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
  258. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
  259. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
  260. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/mod.rs +0 -0
  261. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
  262. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
  263. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
  264. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/spec_types.rs +0 -0
  265. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
  266. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
  267. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_core_api_options.rs +0 -0
  268. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_err.rs +0 -0
  269. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_global.rs +0 -0
  270. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_runtime.rs +0 -0
  271. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_type_factories.rs +0 -0
  272. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_types.rs +0 -0
  273. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/statsig_types_raw.rs +0 -0
  274. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/into_optional.rs +0 -0
  275. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/mod.rs +0 -0
  276. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/statsig_user.rs +0 -0
  277. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
  278. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
  279. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
  280. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/unit_id.rs +0 -0
  281. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/user/user_data.rs +0 -0
  282. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/src/utils/mod.rs +0 -0
  283. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/check_gate_tests.rs +0 -0
  284. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/big_number_dcs.json +0 -0
  285. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
  286. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/company_id_list +0 -0
  287. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
  288. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
  289. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
  290. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
  291. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/get_id_lists.json +0 -0
  292. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
  293. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
  294. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
  295. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
  296. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
  297. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
  298. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/test_user_agents.txt +0 -0
  299. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/ua_string_cases.json +0 -0
  300. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
  301. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
  302. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
  303. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
  304. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
  305. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
  306. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
  307. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
  308. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
  309. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
  310. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
  311. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
  312. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/exposure_tests.rs +0 -0
  313. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/flushing_tests.rs +0 -0
  314. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
  315. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/gcir_tests.rs +0 -0
  316. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/global_configs_test.rs +0 -0
  317. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
  318. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
  319. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
  320. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
  321. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/instance_registry_tests.rs +0 -0
  322. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
  323. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/list_methods_tests.rs +0 -0
  324. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
  325. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/network_client_tests.rs +0 -0
  326. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/network_failure_tests.rs +0 -0
  327. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/output_logger_tests.rs +0 -0
  328. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/override_adapter_tests.rs +0 -0
  329. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/perf_tests.rs +0 -0
  330. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/spec_types_tests.rs +0 -0
  331. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
  332. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
  333. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_global_tests.rs +0 -0
  334. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
  335. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_options_tests.rs +0 -0
  336. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
  337. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_tests.rs +0 -0
  338. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
  339. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
  340. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
  341. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
  342. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/statsig_user_tests.rs +0 -0
  343. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
  344. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/typed_getters_tests.rs +0 -0
  345. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
  346. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
  347. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/user_agent_tests_third_party.rs +0 -0
  348. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/user_json_tests.rs +0 -0
  349. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/helpers.rs +0 -0
  350. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
  351. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
  352. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
  353. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
  354. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
  355. {statsig_python_core-0.14.0 → statsig_python_core-0.14.1rc2512160223}/statsig-rust/tests/utils/mod.rs +0 -0
@@ -2528,7 +2528,7 @@ dependencies = [
2528
2528
 
2529
2529
  [[package]]
2530
2530
  name = "sigstat-grpc"
2531
- version = "0.14.0"
2531
+ version = "0.14.1-rc.2512160223"
2532
2532
  dependencies = [
2533
2533
  "async-trait",
2534
2534
  "chrono",
@@ -2602,7 +2602,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
2602
2602
 
2603
2603
  [[package]]
2604
2604
  name = "statsig-node"
2605
- version = "0.14.0"
2605
+ version = "0.14.1-rc.2512160223"
2606
2606
  dependencies = [
2607
2607
  "async-trait",
2608
2608
  "napi",
@@ -2616,7 +2616,7 @@ dependencies = [
2616
2616
 
2617
2617
  [[package]]
2618
2618
  name = "statsig-pyo3"
2619
- version = "0.14.0"
2619
+ version = "0.14.1-rc.2512160223"
2620
2620
  dependencies = [
2621
2621
  "async-trait",
2622
2622
  "lazy_static",
@@ -2630,7 +2630,7 @@ dependencies = [
2630
2630
 
2631
2631
  [[package]]
2632
2632
  name = "statsig-rust"
2633
- version = "0.14.0"
2633
+ version = "0.14.1-rc.2512160223"
2634
2634
  dependencies = [
2635
2635
  "ahash",
2636
2636
  "arc-swap",
@@ -2676,7 +2676,7 @@ dependencies = [
2676
2676
 
2677
2677
  [[package]]
2678
2678
  name = "statsig_elixir"
2679
- version = "0.14.0"
2679
+ version = "0.14.1-rc.2512160223"
2680
2680
  dependencies = [
2681
2681
  "parking_lot",
2682
2682
  "rustler",
@@ -2688,7 +2688,7 @@ dependencies = [
2688
2688
 
2689
2689
  [[package]]
2690
2690
  name = "statsig_ffi"
2691
- version = "0.14.0"
2691
+ version = "0.14.1-rc.2512160223"
2692
2692
  dependencies = [
2693
2693
  "async-trait",
2694
2694
  "cbindgen",
@@ -12,13 +12,14 @@ exclude = [
12
12
  "examples/rust/perf-monitor",
13
13
  "examples/rust/mem-bench",
14
14
  "examples/rust/perf-bench",
15
+ "examples/rust/verify-package",
15
16
  "benchmarking/bench-cluster",
16
17
  ]
17
18
 
18
19
  [workspace.package]
19
20
  edition = "2021"
20
21
  license = "ISC"
21
- version = "0.14.0"
22
+ version = "0.14.1-rc.2512160223"
22
23
  homepage = "https://statsig.com/"
23
24
  authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"]
24
25
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statsig_python_core
3
- Version: 0.14.0
3
+ Version: 0.14.1rc2512160223
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -4,3 +4,4 @@ from statsig_python_core.observability_client import *
4
4
  from statsig_python_core.data_store import *
5
5
  from statsig_python_core.persistent_storage import *
6
6
  from statsig_python_core.output_logger_provider import *
7
+ from statsig_python_core.statsig_types import *
@@ -1,12 +1,18 @@
1
1
  import os
2
2
  from statsig_python_core import (
3
+ DynamicConfigEvaluationOptions,
4
+ ExperimentEvaluationOptions,
5
+ FeatureGateEvaluationOptions,
6
+ LayerEvaluationOptions,
3
7
  StatsigBasePy,
4
8
  StatsigOptions,
9
+ StatsigUser,
5
10
  notify_python_fork,
6
11
  notify_python_shutdown,
7
12
  )
8
13
  from typing import Optional
9
14
  from .error_boundary import ErrorBoundary
15
+ from .statsig_types import DynamicConfig, FeatureGate, Experiment, Layer
10
16
  import atexit
11
17
 
12
18
 
@@ -71,6 +77,46 @@ class Statsig(StatsigBasePy):
71
77
  and cls._statsig_shared_instance is not None
72
78
  )
73
79
 
80
+ # ------------------------------------------------------------ [ Core APIs ]
81
+
82
+ def get_feature_gate(
83
+ self,
84
+ user: StatsigUser,
85
+ name: str,
86
+ options: Optional[FeatureGateEvaluationOptions] = None,
87
+ ) -> FeatureGate:
88
+ raw = super()._INTERNAL_get_feature_gate(user, name, options)
89
+ return FeatureGate(name, raw)
90
+
91
+ def get_dynamic_config(
92
+ self,
93
+ user: StatsigUser,
94
+ name: str,
95
+ options: Optional[DynamicConfigEvaluationOptions] = None,
96
+ ) -> DynamicConfig:
97
+ raw = super()._INTERNAL_get_dynamic_config(user, name, options)
98
+ return DynamicConfig(name, raw)
99
+
100
+ def get_experiment(
101
+ self,
102
+ user: StatsigUser,
103
+ name: str,
104
+ options: Optional[ExperimentEvaluationOptions] = None,
105
+ ) -> Experiment:
106
+ raw = super()._INTERNAL_get_experiment(user, name, options)
107
+ return Experiment(name, raw)
108
+
109
+ def get_layer(
110
+ self,
111
+ user: StatsigUser,
112
+ name: str,
113
+ options: Optional[LayerEvaluationOptions] = None,
114
+ ) -> Layer:
115
+ raw = super()._INTERNAL_get_layer(user, name, options)
116
+ return Layer(
117
+ lambda param: self._INTERNAL_log_layer_param_exposure(raw, param), name, raw
118
+ )
119
+
74
120
 
75
121
  def create_statsig_error_instance(message: str) -> StatsigBasePy:
76
122
  print("Error: ", message)
@@ -8,67 +8,10 @@ class DataStoreBase:
8
8
  def __new__(cls,): ...
9
9
  ...
10
10
 
11
- class DynamicConfig:
12
- name: builtins.str
13
- rule_id: builtins.str
14
- id_type: builtins.str
15
- value: typing.Any
16
- details: EvaluationDetails
17
- def get_bool(self, param_name:builtins.str, fallback:builtins.bool) -> builtins.bool:
18
- ...
19
-
20
- def get_float(self, param_name:builtins.str, fallback:builtins.float) -> builtins.float:
21
- ...
22
-
23
- def get_integer(self, param_name:builtins.str, fallback:builtins.int) -> builtins.int:
24
- ...
25
-
26
- def get_string(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
27
- ...
28
-
29
- def get_array_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
30
- ...
31
-
32
- def get_object_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
33
- ...
34
-
35
-
36
11
  class DynamicConfigEvaluationOptions:
37
12
  disable_exposure_logging: builtins.bool
38
13
  def __new__(cls,disable_exposure_logging:builtins.bool=False): ...
39
14
 
40
- class EvaluationDetails:
41
- reason: builtins.str
42
- lcut: typing.Optional[builtins.int]
43
- received_at: typing.Optional[builtins.int]
44
- version: typing.Optional[builtins.int]
45
-
46
- class Experiment:
47
- name: builtins.str
48
- rule_id: builtins.str
49
- id_type: builtins.str
50
- group_name: typing.Optional[builtins.str]
51
- value: typing.Any
52
- details: EvaluationDetails
53
- def get_bool(self, param_name:builtins.str, fallback:builtins.bool) -> builtins.bool:
54
- ...
55
-
56
- def get_float(self, param_name:builtins.str, fallback:builtins.float) -> builtins.float:
57
- ...
58
-
59
- def get_integer(self, param_name:builtins.str, fallback:builtins.int) -> builtins.int:
60
- ...
61
-
62
- def get_string(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
63
- ...
64
-
65
- def get_array_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
66
- ...
67
-
68
- def get_object_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
69
- ...
70
-
71
-
72
15
  class ExperimentEvaluationOptions:
73
16
  disable_exposure_logging: builtins.bool
74
17
  user_persisted_values: typing.Optional[dict]
@@ -78,13 +21,6 @@ class FailureDetails:
78
21
  reason: builtins.str
79
22
  error: typing.Optional[builtins.str]
80
23
 
81
- class FeatureGate:
82
- name: builtins.str
83
- value: builtins.bool
84
- rule_id: builtins.str
85
- id_type: builtins.str
86
- details: EvaluationDetails
87
-
88
24
  class FeatureGateEvaluationOptions:
89
25
  disable_exposure_logging: builtins.bool
90
26
  def __new__(cls,disable_exposure_logging:builtins.bool=False): ...
@@ -98,32 +34,6 @@ class InitializeDetails:
98
34
  source: builtins.str
99
35
  failure_details: typing.Optional[FailureDetails]
100
36
 
101
- class Layer:
102
- name: builtins.str
103
- rule_id: builtins.str
104
- group_name: typing.Optional[builtins.str]
105
- allocated_experiment_name: typing.Optional[builtins.str]
106
- value: typing.Any
107
- details: EvaluationDetails
108
- def get_bool(self, param_name:builtins.str, fallback:builtins.bool) -> builtins.bool:
109
- ...
110
-
111
- def get_float(self, param_name:builtins.str, fallback:builtins.float) -> builtins.float:
112
- ...
113
-
114
- def get_integer(self, param_name:builtins.str, fallback:builtins.int) -> builtins.int:
115
- ...
116
-
117
- def get_string(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
118
- ...
119
-
120
- def get_array_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
121
- ...
122
-
123
- def get_object_json(self, param_name:builtins.str, fallback:builtins.str) -> builtins.str:
124
- ...
125
-
126
-
127
37
  class LayerEvaluationOptions:
128
38
  disable_exposure_logging: builtins.bool
129
39
  user_persisted_values: typing.Optional[dict]
@@ -204,25 +114,28 @@ class StatsigBasePy:
204
114
  def check_gate(self, user:StatsigUser, name:builtins.str, options:typing.Optional[FeatureGateEvaluationOptions]=None) -> builtins.bool:
205
115
  ...
206
116
 
207
- def get_feature_gate(self, user:StatsigUser, name:builtins.str, options:typing.Optional[FeatureGateEvaluationOptions]=None) -> FeatureGate:
117
+ def _INTERNAL_get_feature_gate(self, user:StatsigUser, name:builtins.str, options:typing.Optional[FeatureGateEvaluationOptions]=None) -> builtins.str:
208
118
  ...
209
119
 
210
120
  def manually_log_gate_exposure(self, user:StatsigUser, name:builtins.str) -> None:
211
121
  ...
212
122
 
213
- def get_dynamic_config(self, user:StatsigUser, name:builtins.str, options:typing.Optional[DynamicConfigEvaluationOptions]=None) -> DynamicConfig:
123
+ def _INTERNAL_get_dynamic_config(self, user:StatsigUser, name:builtins.str, options:typing.Optional[DynamicConfigEvaluationOptions]=None) -> builtins.str:
214
124
  ...
215
125
 
216
126
  def manually_log_dynamic_config_exposure(self, user:StatsigUser, name:builtins.str) -> None:
217
127
  ...
218
128
 
219
- def get_experiment(self, user:StatsigUser, name:builtins.str, options:typing.Optional[ExperimentEvaluationOptions]=None) -> Experiment:
129
+ def _INTERNAL_get_experiment(self, user:StatsigUser, name:builtins.str, options:typing.Optional[ExperimentEvaluationOptions]=None) -> builtins.str:
220
130
  ...
221
131
 
222
132
  def manually_log_experiment_exposure(self, user:StatsigUser, name:builtins.str) -> None:
223
133
  ...
224
134
 
225
- def get_layer(self, user:StatsigUser, name:builtins.str, options:typing.Optional[LayerEvaluationOptions]=None) -> Layer:
135
+ def _INTERNAL_get_layer(self, user:StatsigUser, name:builtins.str, options:typing.Optional[LayerEvaluationOptions]=None) -> builtins.str:
136
+ ...
137
+
138
+ def _INTERNAL_log_layer_param_exposure(self, raw:builtins.str, param_name:builtins.str) -> None:
226
139
  ...
227
140
 
228
141
  def manually_log_layer_parameter_exposure(self, user:StatsigUser, name:builtins.str, param_name:builtins.str) -> None:
@@ -303,6 +216,7 @@ class StatsigOptions:
303
216
  observability_client: typing.Optional[ObservabilityClientBase]
304
217
  output_logger_provider: typing.Optional[OutputLoggerProviderBase]
305
218
  data_store: typing.Optional[DataStoreBase]
219
+ data_store_key_schema_version: typing.Optional[builtins.str]
306
220
  persistent_storage: typing.Optional[PersistentStorageBaseClass]
307
221
  config_compression_mode: typing.Optional[builtins.str]
308
222
  proxy_config: typing.Optional[ProxyConfig]
@@ -310,7 +224,7 @@ class StatsigOptions:
310
224
  use_third_party_ua_parser: typing.Optional[builtins.bool]
311
225
  disable_disk_access: typing.Optional[builtins.bool]
312
226
  experimental_flags: typing.Optional[builtins.set[builtins.str]]
313
- def __new__(cls,specs_url:typing.Optional[builtins.str]=None, specs_sync_interval_ms:typing.Optional[builtins.int]=None, init_timeout_ms:typing.Optional[builtins.int]=None, log_event_url:typing.Optional[builtins.str]=None, disable_all_logging:typing.Optional[builtins.bool]=None, disable_network:typing.Optional[builtins.bool]=None, event_logging_flush_interval_ms:typing.Optional[builtins.int]=None, event_logging_max_queue_size:typing.Optional[builtins.int]=None, event_logging_max_pending_batch_queue_size:typing.Optional[builtins.int]=None, enable_id_lists:typing.Optional[builtins.bool]=None, wait_for_user_agent_init:typing.Optional[builtins.bool]=None, wait_for_country_lookup_init:typing.Optional[builtins.bool]=None, disable_country_lookup:typing.Optional[builtins.bool]=None, id_lists_url:typing.Optional[builtins.str]=None, id_lists_sync_interval_ms:typing.Optional[builtins.int]=None, fallback_to_statsig_api:typing.Optional[builtins.bool]=None, environment:typing.Optional[builtins.str]=None, output_log_level:typing.Optional[builtins.str]=None, global_custom_fields:typing.Optional[typing.Mapping[builtins.str, typing.Union[builtins.str, builtins.int, builtins.float, builtins.bool, typing.List[typing.Union[builtins.str, builtins.int, builtins.float, builtins.bool]]]]]=None, observability_client:typing.Optional[ObservabilityClientBase]=None, data_store:typing.Optional[DataStoreBase]=None, persistent_storage:typing.Optional[PersistentStorageBaseClass]=None, config_compression_mode:typing.Optional[builtins.str]=None, proxy_config:typing.Optional[ProxyConfig]=None, output_logger_provider:typing.Optional[OutputLoggerProviderBase]=None, spec_adapter_configs:typing.Optional[list]=None, use_third_party_ua_parser:typing.Optional[builtins.bool]=None, disable_disk_access:typing.Optional[builtins.bool]=None, experimental_flags:typing.Optional[builtins.set[builtins.str]]=None): ...
227
+ def __new__(cls,specs_url:typing.Optional[builtins.str]=None, specs_sync_interval_ms:typing.Optional[builtins.int]=None, init_timeout_ms:typing.Optional[builtins.int]=None, log_event_url:typing.Optional[builtins.str]=None, disable_all_logging:typing.Optional[builtins.bool]=None, disable_network:typing.Optional[builtins.bool]=None, event_logging_flush_interval_ms:typing.Optional[builtins.int]=None, event_logging_max_queue_size:typing.Optional[builtins.int]=None, event_logging_max_pending_batch_queue_size:typing.Optional[builtins.int]=None, enable_id_lists:typing.Optional[builtins.bool]=None, wait_for_user_agent_init:typing.Optional[builtins.bool]=None, wait_for_country_lookup_init:typing.Optional[builtins.bool]=None, disable_country_lookup:typing.Optional[builtins.bool]=None, id_lists_url:typing.Optional[builtins.str]=None, id_lists_sync_interval_ms:typing.Optional[builtins.int]=None, fallback_to_statsig_api:typing.Optional[builtins.bool]=None, environment:typing.Optional[builtins.str]=None, output_log_level:typing.Optional[builtins.str]=None, global_custom_fields:typing.Optional[typing.Mapping[builtins.str, typing.Union[builtins.str, builtins.int, builtins.float, builtins.bool, typing.List[typing.Union[builtins.str, builtins.int, builtins.float, builtins.bool]]]]]=None, observability_client:typing.Optional[ObservabilityClientBase]=None, data_store:typing.Optional[DataStoreBase]=None, data_store_key_schema_version:typing.Optional[builtins.str]=None, persistent_storage:typing.Optional[PersistentStorageBaseClass]=None, config_compression_mode:typing.Optional[builtins.str]=None, proxy_config:typing.Optional[ProxyConfig]=None, output_logger_provider:typing.Optional[OutputLoggerProviderBase]=None, spec_adapter_configs:typing.Optional[list]=None, use_third_party_ua_parser:typing.Optional[builtins.bool]=None, disable_disk_access:typing.Optional[builtins.bool]=None, experimental_flags:typing.Optional[builtins.set[builtins.str]]=None): ...
314
228
 
315
229
  class StatsigUser:
316
230
  user_id: builtins.str
@@ -0,0 +1,262 @@
1
+ import json
2
+ from typing import Any, Callable, Optional
3
+
4
+
5
+ def _log_error(tag: str, message: str):
6
+ print(f"[Statsig::{tag}]: {message}")
7
+
8
+
9
+ class EvaluationDetails:
10
+ reason: str
11
+ lcut: Optional[int]
12
+ received_at: Optional[int]
13
+ version: Optional[int]
14
+
15
+ def __init__(self, data: Optional[dict]):
16
+ data = data or {}
17
+ try:
18
+ self.reason = data.get("reason") or ""
19
+ self.lcut = data.get("lcut")
20
+ self.received_at = data.get("received_at")
21
+ self.version = data.get("version")
22
+ except Exception as error:
23
+ _log_error("EvaluationDetails", f"Failed to parse. {error}")
24
+
25
+ def to_dict(self) -> dict:
26
+ return {
27
+ "reason": self.reason,
28
+ "lcut": self.lcut,
29
+ "received_at": self.received_at,
30
+ "version": self.version,
31
+ }
32
+
33
+
34
+ class BaseEvaluation:
35
+ name: str
36
+ rule_id: str
37
+ id_type: str
38
+ details: EvaluationDetails
39
+
40
+ def __init__(self, name: str, data: dict):
41
+ self.name = name
42
+ self.rule_id = data.get("ruleID") or ""
43
+ self.id_type = data.get("idType") or ""
44
+ self.details = EvaluationDetails(data.get("details"))
45
+
46
+ def to_dict(self) -> dict:
47
+ return {
48
+ "name": self.name,
49
+ "rule_id": self.rule_id,
50
+ "id_type": self.id_type,
51
+ "details": self.details.to_dict(),
52
+ }
53
+
54
+ def get_evaluation_details(self) -> EvaluationDetails:
55
+ return self.details
56
+
57
+ def get_name(self) -> str:
58
+ return self.name
59
+
60
+ def get_rule_id(self) -> str:
61
+ return self.rule_id
62
+
63
+ def get_id_type(self) -> str:
64
+ return self.id_type
65
+
66
+ def _get_typed(
67
+ self,
68
+ tag: str,
69
+ value: dict,
70
+ key: str,
71
+ fallback: Any,
72
+ exposure_func: Optional[Callable] = None,
73
+ ) -> Any:
74
+ res = value.get(key, None)
75
+ if fallback is not None and not isinstance(fallback, type(res)):
76
+ _log_error(
77
+ tag,
78
+ f"Type mismatch - '{self.name}.{key}'. Expected {type(fallback)}, got {type(res)}",
79
+ )
80
+ return fallback
81
+
82
+ if res is not None:
83
+ if exposure_func is not None:
84
+ exposure_func(key)
85
+ return res
86
+
87
+ return fallback
88
+
89
+
90
+ class FeatureGate(BaseEvaluation):
91
+ value: bool
92
+
93
+ def __init__(self, name: str, raw: str):
94
+ try:
95
+ data = json.loads(raw) or {}
96
+ super().__init__(name, data)
97
+ self.value = data.get("value") or False
98
+ except Exception as error:
99
+ super().__init__(name, {})
100
+ self.value = False
101
+ _log_error("FeatureGate", f"Failed to parse. {error}")
102
+
103
+ def to_dict(self) -> dict:
104
+ base_dict = super().to_dict()
105
+ base_dict["value"] = self.value
106
+ return base_dict
107
+
108
+
109
+ class BaseConfigEvaluation(BaseEvaluation):
110
+ value: dict
111
+ __tag: str
112
+
113
+ def __init__(self, name: str, data: dict, tag: str):
114
+ self.__tag = tag
115
+ super().__init__(name, data)
116
+ self.value = data.get("value") or {}
117
+
118
+ def get_value(self) -> dict:
119
+ return self.value
120
+
121
+ def get(self, param_name: str, fallback: Any = None) -> Any:
122
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
123
+
124
+ def get_typed(self, param_name: str, fallback: Any = None) -> Any:
125
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
126
+
127
+ def get_string(self, param_name: str, fallback: str) -> str:
128
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
129
+
130
+ def get_integer(self, param_name: str, fallback: int) -> int:
131
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
132
+
133
+ def get_float(self, param_name: str, fallback: float) -> float:
134
+ actual_fallback = float(fallback) if isinstance(fallback, int) else fallback
135
+ return self._get_typed(self.__tag, self.value, param_name, actual_fallback)
136
+
137
+ def get_bool(self, param_name: str, fallback: bool) -> bool:
138
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
139
+
140
+ def get_array(self, param_name: str, fallback: list) -> list:
141
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
142
+
143
+ def get_object(self, param_name: str, fallback: dict) -> dict:
144
+ return self._get_typed(self.__tag, self.value, param_name, fallback)
145
+
146
+ def to_dict(self) -> dict:
147
+ base_dict = super().to_dict()
148
+ base_dict["value"] = self.value
149
+ return base_dict
150
+
151
+
152
+ class DynamicConfig(BaseConfigEvaluation):
153
+ def __init__(self, name: str, raw: str):
154
+ try:
155
+ data = json.loads(raw) or {}
156
+ super().__init__(name, data, "DynamicConfig")
157
+ except Exception as error:
158
+ super().__init__(name, {}, "DynamicConfig")
159
+ _log_error("DynamicConfig", f"Failed to parse. {error}")
160
+
161
+
162
+ class Experiment(BaseConfigEvaluation):
163
+ group_name: Optional[str]
164
+
165
+ def __init__(self, name: str, raw: str):
166
+ try:
167
+ data = json.loads(raw) or {}
168
+ super().__init__(name, data, "Experiment")
169
+ self.group_name = data.get("groupName")
170
+ except Exception as error:
171
+ super().__init__(name, {}, "Experiment")
172
+ self.group_name = None
173
+ _log_error("Experiment", f"Failed to parse. {error}")
174
+
175
+ def to_dict(self) -> dict:
176
+ base_dict = super().to_dict()
177
+ base_dict["group_name"] = self.group_name
178
+ return base_dict
179
+
180
+
181
+ class Layer(BaseEvaluation):
182
+ group_name: Optional[str]
183
+ allocated_experiment_name: Optional[str]
184
+ __value: dict
185
+ __exposure_func: Optional[Callable]
186
+
187
+ def __init__(self, exposure_func: Callable, name: str, raw: str):
188
+ try:
189
+ data = json.loads(raw) or {}
190
+ super().__init__(name, data)
191
+ self.group_name = data.get("groupName")
192
+ self.allocated_experiment_name = data.get("allocatedExperimentName")
193
+ self.__value = data.get("value") or {}
194
+ self.__exposure_func = exposure_func
195
+ except Exception as error:
196
+ super().__init__(name, {})
197
+ self.group_name = None
198
+ self.allocated_experiment_name = None
199
+ self.__value = {}
200
+ self.__exposure_func = None
201
+ _log_error("Layer", f"Failed to parse. {error}")
202
+
203
+ def get_value(self) -> dict:
204
+ return self.__value
205
+
206
+ def get(self, param_name: str, fallback: Any = None) -> Any:
207
+ return self._get_typed(
208
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
209
+ )
210
+
211
+ def get_typed(self, param_name: str, fallback: Any = None) -> Any:
212
+ return self._get_typed(
213
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
214
+ )
215
+
216
+ def get_string(self, param_name: str, fallback: str) -> str:
217
+ return self._get_typed(
218
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
219
+ )
220
+
221
+ def get_integer(self, param_name: str, fallback: int) -> int:
222
+ return self._get_typed(
223
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
224
+ )
225
+
226
+ def get_float(self, param_name: str, fallback: float) -> float:
227
+ actual_fallback = float(fallback) if isinstance(fallback, int) else fallback
228
+ return self._get_typed(
229
+ "Layer",
230
+ self.__value,
231
+ param_name,
232
+ actual_fallback,
233
+ self._log_layer_param_exposure,
234
+ )
235
+
236
+ def get_bool(self, param_name: str, fallback: bool) -> bool:
237
+ return self._get_typed(
238
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
239
+ )
240
+
241
+ def get_array(self, param_name: str, fallback: list) -> list:
242
+ return self._get_typed(
243
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
244
+ )
245
+
246
+ def get_object(self, param_name: str, fallback: dict) -> dict:
247
+ return self._get_typed(
248
+ "Layer", self.__value, param_name, fallback, self._log_layer_param_exposure
249
+ )
250
+
251
+ def to_dict(self) -> dict:
252
+ base_dict = super().to_dict()
253
+ base_dict["group_name"] = self.group_name
254
+ base_dict["allocated_experiment_name"] = self.allocated_experiment_name
255
+ base_dict["__value"] = self.__value
256
+ return base_dict
257
+
258
+ def _log_layer_param_exposure(self, param_name: str):
259
+ if self.__exposure_func is None:
260
+ return
261
+
262
+ self.__exposure_func(param_name)
@@ -0,0 +1,14 @@
1
+ fn main() -> Result<(), Box<dyn std::error::Error>> {
2
+ if std::fs::exists("../api-interface-definitions/protos/statsig_forward_proxy.proto")
3
+ .unwrap_or(false)
4
+ {
5
+ std::fs::copy(
6
+ "../api-interface-definitions/protos/statsig_forward_proxy.proto",
7
+ "src/protos/statsig_forward_proxy.proto",
8
+ )?;
9
+ }
10
+
11
+ tonic_build::compile_protos("src/protos/statsig_forward_proxy.proto")?;
12
+
13
+ Ok(())
14
+ }
@@ -0,0 +1,28 @@
1
+ syntax = "proto3";
2
+
3
+ package statsig_forward_proxy;
4
+ option java_package = "grpc.generated.statsig_forward_proxy";
5
+
6
+ service StatsigForwardProxy {
7
+ rpc getConfigSpec (ConfigSpecRequest) returns (ConfigSpecResponse);
8
+ rpc StreamConfigSpec(ConfigSpecRequest) returns (stream ConfigSpecResponse) {}
9
+ }
10
+
11
+ message ConfigSpecRequest {
12
+ enum apiVersion {
13
+ no_version = 0;
14
+ v1 = 1;
15
+ v2 = 2;
16
+ }
17
+
18
+ string sdkKey = 1;
19
+ optional uint64 sinceTime = 12; // This was a typo but you can't delete it
20
+ optional apiVersion version = 3;
21
+ optional string zstdDictId = 4;
22
+ }
23
+
24
+ message ConfigSpecResponse {
25
+ string spec = 1;
26
+ uint64 lastUpdated = 2;
27
+ optional string zstdDictId = 3;
28
+ }
@@ -18,7 +18,10 @@ parking_lot = "0.12.1"
18
18
  pyo3 = { version = "0.23.1", features = ["abi3-py37"] }
19
19
  pyo3-stub-gen = "0.7.0"
20
20
  serde_json = { version = "1.0.125", features = ["float_roundtrip"] }
21
- statsig-rust = { path = "../statsig-rust", features = ["with_grpc"] }
21
+ statsig-rust = { path = "../statsig-rust", features = [
22
+ "with_grpc",
23
+ "ffi-support",
24
+ ] }
22
25
  async-trait = "0.1.81"
23
26
  serde = { version = "1.0.204", features = ["derive"] }
24
27
  lazy_static = "1.5.0"
@@ -4,3 +4,4 @@ from statsig_python_core.observability_client import *
4
4
  from statsig_python_core.data_store import *
5
5
  from statsig_python_core.persistent_storage import *
6
6
  from statsig_python_core.output_logger_provider import *
7
+ from statsig_python_core.statsig_types import *