schematichq 0.0.6__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 (301) hide show
  1. schematichq-0.0.6/PKG-INFO +156 -0
  2. schematichq-0.0.6/README.md +140 -0
  3. schematichq-0.0.6/pyproject.toml +33 -0
  4. schematichq-0.0.6/src/schematic/__init__.py +547 -0
  5. schematichq-0.0.6/src/schematic/accounts/__init__.py +45 -0
  6. schematichq-0.0.6/src/schematic/accounts/client.py +2200 -0
  7. schematichq-0.0.6/src/schematic/accounts/types/__init__.py +43 -0
  8. schematichq-0.0.6/src/schematic/accounts/types/count_api_keys_params.py +32 -0
  9. schematichq-0.0.6/src/schematic/accounts/types/count_api_keys_response.py +31 -0
  10. schematichq-0.0.6/src/schematic/accounts/types/count_api_requests_params.py +33 -0
  11. schematichq-0.0.6/src/schematic/accounts/types/count_api_requests_response.py +31 -0
  12. schematichq-0.0.6/src/schematic/accounts/types/create_api_key_response.py +30 -0
  13. schematichq-0.0.6/src/schematic/accounts/types/create_environment_request_body_environment_type.py +7 -0
  14. schematichq-0.0.6/src/schematic/accounts/types/create_environment_response.py +30 -0
  15. schematichq-0.0.6/src/schematic/accounts/types/delete_api_key_response.py +30 -0
  16. schematichq-0.0.6/src/schematic/accounts/types/delete_environment_response.py +30 -0
  17. schematichq-0.0.6/src/schematic/accounts/types/get_api_key_response.py +30 -0
  18. schematichq-0.0.6/src/schematic/accounts/types/get_api_request_response.py +30 -0
  19. schematichq-0.0.6/src/schematic/accounts/types/get_environment_response.py +30 -0
  20. schematichq-0.0.6/src/schematic/accounts/types/list_api_keys_params.py +32 -0
  21. schematichq-0.0.6/src/schematic/accounts/types/list_api_keys_response.py +35 -0
  22. schematichq-0.0.6/src/schematic/accounts/types/list_api_requests_params.py +33 -0
  23. schematichq-0.0.6/src/schematic/accounts/types/list_api_requests_response.py +35 -0
  24. schematichq-0.0.6/src/schematic/accounts/types/update_api_key_response.py +30 -0
  25. schematichq-0.0.6/src/schematic/accounts/types/update_environment_request_body_environment_type.py +7 -0
  26. schematichq-0.0.6/src/schematic/accounts/types/update_environment_response.py +30 -0
  27. schematichq-0.0.6/src/schematic/base_client.py +158 -0
  28. schematichq-0.0.6/src/schematic/billing/__init__.py +15 -0
  29. schematichq-0.0.6/src/schematic/billing/client.py +632 -0
  30. schematichq-0.0.6/src/schematic/billing/types/__init__.py +13 -0
  31. schematichq-0.0.6/src/schematic/billing/types/list_products_params.py +32 -0
  32. schematichq-0.0.6/src/schematic/billing/types/list_products_response.py +35 -0
  33. schematichq-0.0.6/src/schematic/billing/types/upsert_billing_product_response.py +30 -0
  34. schematichq-0.0.6/src/schematic/billing/types/upsert_billing_subscription_response.py +30 -0
  35. schematichq-0.0.6/src/schematic/client.py +12 -0
  36. schematichq-0.0.6/src/schematic/companies/__init__.py +103 -0
  37. schematichq-0.0.6/src/schematic/companies/client.py +5594 -0
  38. schematichq-0.0.6/src/schematic/companies/types/__init__.py +101 -0
  39. schematichq-0.0.6/src/schematic/companies/types/count_companies_params.py +34 -0
  40. schematichq-0.0.6/src/schematic/companies/types/count_companies_response.py +31 -0
  41. schematichq-0.0.6/src/schematic/companies/types/count_entity_key_definitions_params.py +33 -0
  42. schematichq-0.0.6/src/schematic/companies/types/count_entity_key_definitions_response.py +31 -0
  43. schematichq-0.0.6/src/schematic/companies/types/count_entity_trait_definitions_params.py +34 -0
  44. schematichq-0.0.6/src/schematic/companies/types/count_entity_trait_definitions_response.py +31 -0
  45. schematichq-0.0.6/src/schematic/companies/types/count_users_params.py +34 -0
  46. schematichq-0.0.6/src/schematic/companies/types/count_users_response.py +31 -0
  47. schematichq-0.0.6/src/schematic/companies/types/create_company_response.py +30 -0
  48. schematichq-0.0.6/src/schematic/companies/types/create_entity_trait_definition_request_body_entity_type.py +5 -0
  49. schematichq-0.0.6/src/schematic/companies/types/create_entity_trait_definition_request_body_trait_type.py +7 -0
  50. schematichq-0.0.6/src/schematic/companies/types/create_user_response.py +30 -0
  51. schematichq-0.0.6/src/schematic/companies/types/delete_company_by_keys_response.py +30 -0
  52. schematichq-0.0.6/src/schematic/companies/types/delete_company_membership_response.py +30 -0
  53. schematichq-0.0.6/src/schematic/companies/types/delete_company_response.py +30 -0
  54. schematichq-0.0.6/src/schematic/companies/types/delete_user_by_keys_response.py +30 -0
  55. schematichq-0.0.6/src/schematic/companies/types/delete_user_response.py +30 -0
  56. schematichq-0.0.6/src/schematic/companies/types/get_active_company_subscription_params.py +31 -0
  57. schematichq-0.0.6/src/schematic/companies/types/get_active_company_subscription_response.py +35 -0
  58. schematichq-0.0.6/src/schematic/companies/types/get_company_response.py +30 -0
  59. schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_definition_response.py +30 -0
  60. schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_values_params.py +32 -0
  61. schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_values_response.py +35 -0
  62. schematichq-0.0.6/src/schematic/companies/types/get_or_create_company_membership_response.py +30 -0
  63. schematichq-0.0.6/src/schematic/companies/types/get_or_create_entity_trait_definition_response.py +30 -0
  64. schematichq-0.0.6/src/schematic/companies/types/get_user_response.py +30 -0
  65. schematichq-0.0.6/src/schematic/companies/types/list_companies_params.py +34 -0
  66. schematichq-0.0.6/src/schematic/companies/types/list_companies_response.py +35 -0
  67. schematichq-0.0.6/src/schematic/companies/types/list_company_memberships_params.py +32 -0
  68. schematichq-0.0.6/src/schematic/companies/types/list_company_memberships_response.py +35 -0
  69. schematichq-0.0.6/src/schematic/companies/types/list_company_plans_params.py +32 -0
  70. schematichq-0.0.6/src/schematic/companies/types/list_company_plans_response.py +35 -0
  71. schematichq-0.0.6/src/schematic/companies/types/list_entity_key_definitions_params.py +33 -0
  72. schematichq-0.0.6/src/schematic/companies/types/list_entity_key_definitions_response.py +35 -0
  73. schematichq-0.0.6/src/schematic/companies/types/list_entity_trait_definitions_params.py +34 -0
  74. schematichq-0.0.6/src/schematic/companies/types/list_entity_trait_definitions_response.py +35 -0
  75. schematichq-0.0.6/src/schematic/companies/types/list_users_params.py +34 -0
  76. schematichq-0.0.6/src/schematic/companies/types/list_users_response.py +35 -0
  77. schematichq-0.0.6/src/schematic/companies/types/lookup_company_params.py +29 -0
  78. schematichq-0.0.6/src/schematic/companies/types/lookup_company_response.py +31 -0
  79. schematichq-0.0.6/src/schematic/companies/types/lookup_user_params.py +29 -0
  80. schematichq-0.0.6/src/schematic/companies/types/lookup_user_response.py +31 -0
  81. schematichq-0.0.6/src/schematic/companies/types/update_entity_trait_definition_request_body_trait_type.py +7 -0
  82. schematichq-0.0.6/src/schematic/companies/types/update_entity_trait_definition_response.py +30 -0
  83. schematichq-0.0.6/src/schematic/companies/types/upsert_company_response.py +30 -0
  84. schematichq-0.0.6/src/schematic/companies/types/upsert_company_trait_response.py +30 -0
  85. schematichq-0.0.6/src/schematic/companies/types/upsert_user_response.py +30 -0
  86. schematichq-0.0.6/src/schematic/companies/types/upsert_user_trait_response.py +30 -0
  87. schematichq-0.0.6/src/schematic/core/__init__.py +27 -0
  88. schematichq-0.0.6/src/schematic/core/api_error.py +15 -0
  89. schematichq-0.0.6/src/schematic/core/client_wrapper.py +45 -0
  90. schematichq-0.0.6/src/schematic/core/datetime_utils.py +28 -0
  91. schematichq-0.0.6/src/schematic/core/file.py +38 -0
  92. schematichq-0.0.6/src/schematic/core/http_client.py +130 -0
  93. schematichq-0.0.6/src/schematic/core/jsonable_encoder.py +99 -0
  94. schematichq-0.0.6/src/schematic/core/pydantic_utilities.py +12 -0
  95. schematichq-0.0.6/src/schematic/core/remove_none_from_dict.py +11 -0
  96. schematichq-0.0.6/src/schematic/core/request_options.py +32 -0
  97. schematichq-0.0.6/src/schematic/entitlements/__init__.py +83 -0
  98. schematichq-0.0.6/src/schematic/entitlements/client.py +3596 -0
  99. schematichq-0.0.6/src/schematic/entitlements/types/__init__.py +81 -0
  100. schematichq-0.0.6/src/schematic/entitlements/types/count_company_overrides_params.py +35 -0
  101. schematichq-0.0.6/src/schematic/entitlements/types/count_company_overrides_response.py +31 -0
  102. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_companies_params.py +32 -0
  103. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_companies_response.py +31 -0
  104. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_usage_params.py +34 -0
  105. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_usage_response.py +31 -0
  106. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_users_params.py +32 -0
  107. schematichq-0.0.6/src/schematic/entitlements/types/count_feature_users_response.py +31 -0
  108. schematichq-0.0.6/src/schematic/entitlements/types/count_plan_entitlements_params.py +35 -0
  109. schematichq-0.0.6/src/schematic/entitlements/types/count_plan_entitlements_response.py +31 -0
  110. schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_request_body_metric_period.py +7 -0
  111. schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_request_body_value_type.py +7 -0
  112. schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_response.py +30 -0
  113. schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.py +7 -0
  114. schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_request_body_value_type.py +7 -0
  115. schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_response.py +30 -0
  116. schematichq-0.0.6/src/schematic/entitlements/types/delete_company_override_response.py +30 -0
  117. schematichq-0.0.6/src/schematic/entitlements/types/delete_plan_entitlement_response.py +30 -0
  118. schematichq-0.0.6/src/schematic/entitlements/types/get_company_override_response.py +30 -0
  119. schematichq-0.0.6/src/schematic/entitlements/types/get_feature_usage_by_company_params.py +29 -0
  120. schematichq-0.0.6/src/schematic/entitlements/types/get_feature_usage_by_company_response.py +31 -0
  121. schematichq-0.0.6/src/schematic/entitlements/types/get_plan_entitlement_response.py +30 -0
  122. schematichq-0.0.6/src/schematic/entitlements/types/list_company_overrides_params.py +35 -0
  123. schematichq-0.0.6/src/schematic/entitlements/types/list_company_overrides_response.py +35 -0
  124. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_companies_params.py +32 -0
  125. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_companies_response.py +35 -0
  126. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_usage_params.py +34 -0
  127. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_usage_response.py +35 -0
  128. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_users_params.py +32 -0
  129. schematichq-0.0.6/src/schematic/entitlements/types/list_feature_users_response.py +35 -0
  130. schematichq-0.0.6/src/schematic/entitlements/types/list_plan_entitlements_params.py +35 -0
  131. schematichq-0.0.6/src/schematic/entitlements/types/list_plan_entitlements_response.py +35 -0
  132. schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_request_body_metric_period.py +7 -0
  133. schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_request_body_value_type.py +7 -0
  134. schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_response.py +30 -0
  135. schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.py +7 -0
  136. schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_request_body_value_type.py +7 -0
  137. schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_response.py +30 -0
  138. schematichq-0.0.6/src/schematic/environment.py +7 -0
  139. schematichq-0.0.6/src/schematic/errors/__init__.py +9 -0
  140. schematichq-0.0.6/src/schematic/errors/bad_request_error.py +9 -0
  141. schematichq-0.0.6/src/schematic/errors/forbidden_error.py +9 -0
  142. schematichq-0.0.6/src/schematic/errors/internal_server_error.py +9 -0
  143. schematichq-0.0.6/src/schematic/errors/not_found_error.py +9 -0
  144. schematichq-0.0.6/src/schematic/errors/unauthorized_error.py +9 -0
  145. schematichq-0.0.6/src/schematic/events/__init__.py +27 -0
  146. schematichq-0.0.6/src/schematic/events/client.py +1255 -0
  147. schematichq-0.0.6/src/schematic/events/types/__init__.py +25 -0
  148. schematichq-0.0.6/src/schematic/events/types/create_event_batch_response.py +30 -0
  149. schematichq-0.0.6/src/schematic/events/types/create_event_response.py +30 -0
  150. schematichq-0.0.6/src/schematic/events/types/get_event_response.py +30 -0
  151. schematichq-0.0.6/src/schematic/events/types/get_event_summaries_params.py +32 -0
  152. schematichq-0.0.6/src/schematic/events/types/get_event_summaries_response.py +35 -0
  153. schematichq-0.0.6/src/schematic/events/types/get_event_summary_by_subtype_response.py +30 -0
  154. schematichq-0.0.6/src/schematic/events/types/list_events_params.py +33 -0
  155. schematichq-0.0.6/src/schematic/events/types/list_events_response.py +35 -0
  156. schematichq-0.0.6/src/schematic/events/types/list_metric_counts_params.py +38 -0
  157. schematichq-0.0.6/src/schematic/events/types/list_metric_counts_response.py +35 -0
  158. schematichq-0.0.6/src/schematic/features/__init__.py +71 -0
  159. schematichq-0.0.6/src/schematic/features/client.py +4518 -0
  160. schematichq-0.0.6/src/schematic/features/types/__init__.py +69 -0
  161. schematichq-0.0.6/src/schematic/features/types/check_flag_response.py +30 -0
  162. schematichq-0.0.6/src/schematic/features/types/check_flags_response.py +30 -0
  163. schematichq-0.0.6/src/schematic/features/types/count_audience_companies_response.py +30 -0
  164. schematichq-0.0.6/src/schematic/features/types/count_audience_users_response.py +30 -0
  165. schematichq-0.0.6/src/schematic/features/types/count_features_params.py +34 -0
  166. schematichq-0.0.6/src/schematic/features/types/count_features_response.py +31 -0
  167. schematichq-0.0.6/src/schematic/features/types/count_flag_checks_params.py +33 -0
  168. schematichq-0.0.6/src/schematic/features/types/count_flag_checks_response.py +31 -0
  169. schematichq-0.0.6/src/schematic/features/types/count_flags_params.py +33 -0
  170. schematichq-0.0.6/src/schematic/features/types/count_flags_response.py +31 -0
  171. schematichq-0.0.6/src/schematic/features/types/create_feature_request_body_feature_type.py +5 -0
  172. schematichq-0.0.6/src/schematic/features/types/create_feature_response.py +30 -0
  173. schematichq-0.0.6/src/schematic/features/types/create_flag_response.py +30 -0
  174. schematichq-0.0.6/src/schematic/features/types/delete_feature_response.py +30 -0
  175. schematichq-0.0.6/src/schematic/features/types/delete_flag_response.py +30 -0
  176. schematichq-0.0.6/src/schematic/features/types/get_feature_response.py +30 -0
  177. schematichq-0.0.6/src/schematic/features/types/get_flag_check_response.py +30 -0
  178. schematichq-0.0.6/src/schematic/features/types/get_flag_response.py +30 -0
  179. schematichq-0.0.6/src/schematic/features/types/get_latest_flag_checks_params.py +33 -0
  180. schematichq-0.0.6/src/schematic/features/types/get_latest_flag_checks_response.py +35 -0
  181. schematichq-0.0.6/src/schematic/features/types/list_audience_companies_response.py +34 -0
  182. schematichq-0.0.6/src/schematic/features/types/list_audience_users_response.py +34 -0
  183. schematichq-0.0.6/src/schematic/features/types/list_features_params.py +34 -0
  184. schematichq-0.0.6/src/schematic/features/types/list_features_response.py +35 -0
  185. schematichq-0.0.6/src/schematic/features/types/list_flag_checks_params.py +33 -0
  186. schematichq-0.0.6/src/schematic/features/types/list_flag_checks_response.py +35 -0
  187. schematichq-0.0.6/src/schematic/features/types/list_flags_params.py +33 -0
  188. schematichq-0.0.6/src/schematic/features/types/list_flags_response.py +35 -0
  189. schematichq-0.0.6/src/schematic/features/types/update_feature_request_body_feature_type.py +5 -0
  190. schematichq-0.0.6/src/schematic/features/types/update_feature_response.py +30 -0
  191. schematichq-0.0.6/src/schematic/features/types/update_flag_response.py +30 -0
  192. schematichq-0.0.6/src/schematic/features/types/update_flag_rules_response.py +30 -0
  193. schematichq-0.0.6/src/schematic/plans/__init__.py +33 -0
  194. schematichq-0.0.6/src/schematic/plans/client.py +1572 -0
  195. schematichq-0.0.6/src/schematic/plans/types/__init__.py +31 -0
  196. schematichq-0.0.6/src/schematic/plans/types/count_plans_params.py +34 -0
  197. schematichq-0.0.6/src/schematic/plans/types/count_plans_response.py +31 -0
  198. schematichq-0.0.6/src/schematic/plans/types/create_plan_request_body_plan_type.py +7 -0
  199. schematichq-0.0.6/src/schematic/plans/types/create_plan_response.py +30 -0
  200. schematichq-0.0.6/src/schematic/plans/types/delete_audience_response.py +30 -0
  201. schematichq-0.0.6/src/schematic/plans/types/delete_plan_response.py +30 -0
  202. schematichq-0.0.6/src/schematic/plans/types/get_audience_response.py +30 -0
  203. schematichq-0.0.6/src/schematic/plans/types/get_plan_response.py +30 -0
  204. schematichq-0.0.6/src/schematic/plans/types/list_plans_params.py +34 -0
  205. schematichq-0.0.6/src/schematic/plans/types/list_plans_response.py +35 -0
  206. schematichq-0.0.6/src/schematic/plans/types/update_audience_response.py +30 -0
  207. schematichq-0.0.6/src/schematic/plans/types/update_plan_request_body_plan_type.py +7 -0
  208. schematichq-0.0.6/src/schematic/plans/types/update_plan_response.py +30 -0
  209. schematichq-0.0.6/src/schematic/py.typed +0 -0
  210. schematichq-0.0.6/src/schematic/types/__init__.py +185 -0
  211. schematichq-0.0.6/src/schematic/types/api_error.py +28 -0
  212. schematichq-0.0.6/src/schematic/types/api_key_create_response_data.py +37 -0
  213. schematichq-0.0.6/src/schematic/types/api_key_request_list_response_data.py +40 -0
  214. schematichq-0.0.6/src/schematic/types/api_key_request_response_data.py +47 -0
  215. schematichq-0.0.6/src/schematic/types/api_key_response_data.py +36 -0
  216. schematichq-0.0.6/src/schematic/types/audience_request_body.py +39 -0
  217. schematichq-0.0.6/src/schematic/types/billing_product_response_data.py +34 -0
  218. schematichq-0.0.6/src/schematic/types/billing_subscription_response_data.py +34 -0
  219. schematichq-0.0.6/src/schematic/types/check_flag_output_with_flag_key.py +31 -0
  220. schematichq-0.0.6/src/schematic/types/check_flag_request_body.py +26 -0
  221. schematichq-0.0.6/src/schematic/types/check_flag_response_data.py +34 -0
  222. schematichq-0.0.6/src/schematic/types/check_flags_response_data.py +30 -0
  223. schematichq-0.0.6/src/schematic/types/company_detail_response_data.py +43 -0
  224. schematichq-0.0.6/src/schematic/types/company_membership_detail_response_data.py +31 -0
  225. schematichq-0.0.6/src/schematic/types/company_membership_response_data.py +29 -0
  226. schematichq-0.0.6/src/schematic/types/company_override_response_data.py +46 -0
  227. schematichq-0.0.6/src/schematic/types/company_plan_response_data.py +30 -0
  228. schematichq-0.0.6/src/schematic/types/company_response_data.py +31 -0
  229. schematichq-0.0.6/src/schematic/types/company_subscription_response_data.py +29 -0
  230. schematichq-0.0.6/src/schematic/types/count_response.py +29 -0
  231. schematichq-0.0.6/src/schematic/types/create_event_request_body.py +36 -0
  232. schematichq-0.0.6/src/schematic/types/create_event_request_body_event_type.py +5 -0
  233. schematichq-0.0.6/src/schematic/types/create_flag_request_body.py +30 -0
  234. schematichq-0.0.6/src/schematic/types/create_or_update_condition_group_request_body.py +29 -0
  235. schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body.py +64 -0
  236. schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_condition_type.py +7 -0
  237. schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_metric_period.py +7 -0
  238. schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_operator.py +7 -0
  239. schematichq-0.0.6/src/schematic/types/create_or_update_flag_request_body.py +31 -0
  240. schematichq-0.0.6/src/schematic/types/create_or_update_rule_request_body.py +34 -0
  241. schematichq-0.0.6/src/schematic/types/create_or_update_rule_request_body_rule_type.py +8 -0
  242. schematichq-0.0.6/src/schematic/types/create_req_common.py +32 -0
  243. schematichq-0.0.6/src/schematic/types/create_req_common_metric_period.py +5 -0
  244. schematichq-0.0.6/src/schematic/types/create_req_common_value_type.py +5 -0
  245. schematichq-0.0.6/src/schematic/types/delete_response.py +28 -0
  246. schematichq-0.0.6/src/schematic/types/entity_key_definition_response_data.py +29 -0
  247. schematichq-0.0.6/src/schematic/types/entity_key_detail_response_data.py +35 -0
  248. schematichq-0.0.6/src/schematic/types/entity_key_response_data.py +33 -0
  249. schematichq-0.0.6/src/schematic/types/entity_trait_definition_response_data.py +31 -0
  250. schematichq-0.0.6/src/schematic/types/entity_trait_detail_response_data.py +32 -0
  251. schematichq-0.0.6/src/schematic/types/entity_trait_response_data.py +30 -0
  252. schematichq-0.0.6/src/schematic/types/entity_trait_value.py +26 -0
  253. schematichq-0.0.6/src/schematic/types/environment_detail_response_data.py +35 -0
  254. schematichq-0.0.6/src/schematic/types/environment_response_data.py +29 -0
  255. schematichq-0.0.6/src/schematic/types/event_body.py +8 -0
  256. schematichq-0.0.6/src/schematic/types/event_body_identify.py +44 -0
  257. schematichq-0.0.6/src/schematic/types/event_body_identify_company.py +42 -0
  258. schematichq-0.0.6/src/schematic/types/event_body_track.py +43 -0
  259. schematichq-0.0.6/src/schematic/types/event_detail_response_data.py +46 -0
  260. schematichq-0.0.6/src/schematic/types/event_response_data.py +42 -0
  261. schematichq-0.0.6/src/schematic/types/event_summary_response_data.py +30 -0
  262. schematichq-0.0.6/src/schematic/types/feature_company_response_data.py +51 -0
  263. schematichq-0.0.6/src/schematic/types/feature_company_user_response_data.py +54 -0
  264. schematichq-0.0.6/src/schematic/types/feature_detail_response_data.py +41 -0
  265. schematichq-0.0.6/src/schematic/types/feature_response_data.py +33 -0
  266. schematichq-0.0.6/src/schematic/types/feature_usage_detail_response_data.py +30 -0
  267. schematichq-0.0.6/src/schematic/types/feature_usage_response_data.py +49 -0
  268. schematichq-0.0.6/src/schematic/types/flag_check_log_detail_response_data.py +49 -0
  269. schematichq-0.0.6/src/schematic/types/flag_check_log_response_data.py +39 -0
  270. schematichq-0.0.6/src/schematic/types/flag_detail_response_data.py +39 -0
  271. schematichq-0.0.6/src/schematic/types/flag_response_data.py +33 -0
  272. schematichq-0.0.6/src/schematic/types/keys_request_body.py +25 -0
  273. schematichq-0.0.6/src/schematic/types/metric_counts_hourly_response_data.py +31 -0
  274. schematichq-0.0.6/src/schematic/types/pagination_filter.py +33 -0
  275. schematichq-0.0.6/src/schematic/types/plan_audience_detail_response_data.py +42 -0
  276. schematichq-0.0.6/src/schematic/types/plan_audience_response_data.py +34 -0
  277. schematichq-0.0.6/src/schematic/types/plan_detail_response_data.py +37 -0
  278. schematichq-0.0.6/src/schematic/types/plan_entitlement_response_data.py +46 -0
  279. schematichq-0.0.6/src/schematic/types/plan_response_data.py +30 -0
  280. schematichq-0.0.6/src/schematic/types/preview_object.py +27 -0
  281. schematichq-0.0.6/src/schematic/types/raw_event_batch_response_data.py +30 -0
  282. schematichq-0.0.6/src/schematic/types/raw_event_response_data.py +29 -0
  283. schematichq-0.0.6/src/schematic/types/rule_condition_detail_response_data.py +47 -0
  284. schematichq-0.0.6/src/schematic/types/rule_condition_group_detail_response_data.py +33 -0
  285. schematichq-0.0.6/src/schematic/types/rule_condition_group_response_data.py +31 -0
  286. schematichq-0.0.6/src/schematic/types/rule_condition_resource_response_data.py +26 -0
  287. schematichq-0.0.6/src/schematic/types/rule_condition_response_data.py +42 -0
  288. schematichq-0.0.6/src/schematic/types/rule_detail_response_data.py +38 -0
  289. schematichq-0.0.6/src/schematic/types/rule_response_data.py +34 -0
  290. schematichq-0.0.6/src/schematic/types/rules_detail_response_data.py +34 -0
  291. schematichq-0.0.6/src/schematic/types/update_req_common.py +31 -0
  292. schematichq-0.0.6/src/schematic/types/update_req_common_metric_period.py +5 -0
  293. schematichq-0.0.6/src/schematic/types/update_req_common_value_type.py +5 -0
  294. schematichq-0.0.6/src/schematic/types/update_rule_request_body.py +31 -0
  295. schematichq-0.0.6/src/schematic/types/upsert_company_request_body.py +34 -0
  296. schematichq-0.0.6/src/schematic/types/upsert_trait_request_body.py +50 -0
  297. schematichq-0.0.6/src/schematic/types/upsert_user_request_body.py +43 -0
  298. schematichq-0.0.6/src/schematic/types/upsert_user_sub_request_body.py +38 -0
  299. schematichq-0.0.6/src/schematic/types/user_detail_response_data.py +41 -0
  300. schematichq-0.0.6/src/schematic/types/user_response_data.py +30 -0
  301. schematichq-0.0.6/src/schematic/version.py +4 -0
@@ -0,0 +1,156 @@
1
+ Metadata-Version: 2.1
2
+ Name: schematichq
3
+ Version: 0.0.6
4
+ Summary:
5
+ Requires-Python: >=3.8,<4.0
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.8
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Requires-Dist: httpx (>=0.21.2)
12
+ Requires-Dist: pydantic (>=1.9.2)
13
+ Requires-Dist: typing_extensions (>=4.0.0)
14
+ Description-Content-Type: text/markdown
15
+
16
+ # Schematic Python Library
17
+
18
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
19
+
20
+ The Schematic Python Library provides convenient access to the Schematic API from
21
+ applications written in Python.
22
+
23
+ The library includes type definitions for all
24
+ request and response fields, and offers both synchronous and asynchronous clients powered by httpx.
25
+
26
+ ## Installation
27
+
28
+ Add this dependency to your project's build file:
29
+
30
+ ```bash
31
+ pip install schematichq
32
+ # or
33
+ poetry add schematichq
34
+ ```
35
+
36
+ ## Usage
37
+ Simply import `Schematic` and start making calls to our API.
38
+
39
+ ```python
40
+ from schematic.client import Schematic
41
+
42
+ client = Schematic(
43
+ api_key = "YOUR_API_KEY" # Defaults to SCHEMATIC_API_KEY
44
+ )
45
+ client.companies.get_company(
46
+ company_id="company_id",
47
+ )
48
+ ```
49
+
50
+ ## Async Client
51
+ The SDK also exports an async client so that you can make non-blocking
52
+ calls to our API.
53
+
54
+ ```python
55
+ from schematic.client import AsyncSchematic
56
+
57
+ client = AsyncSchematic(
58
+ api_key = "YOUR_API_KEY" # Defaults to SCHEMATIC_API_KEY
59
+ )
60
+ async def main() -> None:
61
+ await client.companies.get_company(
62
+ company_id="company_id",
63
+ )
64
+
65
+ asyncio.run(main())
66
+ ```
67
+
68
+ ## Exception Handling
69
+ All errors thrown by the SDK will be subclasses of [`ApiError`](./src/schematic/core/api_error.py).
70
+
71
+ ```python
72
+ import schematic
73
+
74
+ try:
75
+ client.companies.get_company(
76
+ company_id="company_id",
77
+ )
78
+ except schematic.core.ApiError as e: # Handle all errors
79
+ print(e.status_code)
80
+ print(e.body)
81
+ ```
82
+
83
+ ## Advanced
84
+
85
+ ### Timeouts
86
+ By default, requests time out after 60 seconds. You can configure this with a
87
+ timeout option at the client or request level.
88
+
89
+ ```python
90
+ from schematic.client import Schematic
91
+
92
+ client = Schematic(
93
+ # All timeouts are 20 seconds
94
+ timeout=20.0,
95
+ )
96
+
97
+ # Override timeout for a specific method
98
+ client.companies.get_company(..., {
99
+ timeout_in_seconds=20.0
100
+ })
101
+ ```
102
+
103
+ ### Retries
104
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be
105
+ retried as long as the request is deemed retriable and the number of retry attempts has not grown larger
106
+ than the configured retry limit (default: 2).
107
+
108
+ A request is deemed retriable when any of the following HTTP status codes is returned:
109
+
110
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
111
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
112
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
113
+
114
+ Use the `max_retries` request option to configure this behavior.
115
+
116
+ ```python
117
+ # Override timeout for a specific method
118
+ client.companies.get_company(..., {
119
+ max_retries=1 # Only retry once on failure
120
+ })
121
+ ```
122
+
123
+ ### Custom HTTP client
124
+ You can override the httpx client to customize it for your use-case. Some common use-cases
125
+ include support for proxies and transports.
126
+
127
+ ```python
128
+ import httpx
129
+
130
+ from schematic.client import Schematic
131
+
132
+ client = Schematic(
133
+ http_client=httpx.Client(
134
+ proxies="http://my.test.proxy.example.com",
135
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
136
+ ),
137
+ )
138
+ ```
139
+
140
+ ## Beta Status
141
+
142
+ This SDK is in **Preview**, and there may be breaking changes between versions without a major
143
+ version update.
144
+
145
+ To ensure a reproducible environment (and minimize risk of breaking changes), we recommend pinning a specific package version.
146
+
147
+ ## Contributing
148
+
149
+ While we value open-source contributions to this SDK, this library is generated programmatically.
150
+ Additions made directly to this library would have to be moved over to our generation code,
151
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
152
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
153
+ an issue first to discuss with us!
154
+
155
+ On the other hand, contributions to the README are always very welcome!
156
+
@@ -0,0 +1,140 @@
1
+ # Schematic Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
4
+
5
+ The Schematic Python Library provides convenient access to the Schematic API from
6
+ applications written in Python.
7
+
8
+ The library includes type definitions for all
9
+ request and response fields, and offers both synchronous and asynchronous clients powered by httpx.
10
+
11
+ ## Installation
12
+
13
+ Add this dependency to your project's build file:
14
+
15
+ ```bash
16
+ pip install schematichq
17
+ # or
18
+ poetry add schematichq
19
+ ```
20
+
21
+ ## Usage
22
+ Simply import `Schematic` and start making calls to our API.
23
+
24
+ ```python
25
+ from schematic.client import Schematic
26
+
27
+ client = Schematic(
28
+ api_key = "YOUR_API_KEY" # Defaults to SCHEMATIC_API_KEY
29
+ )
30
+ client.companies.get_company(
31
+ company_id="company_id",
32
+ )
33
+ ```
34
+
35
+ ## Async Client
36
+ The SDK also exports an async client so that you can make non-blocking
37
+ calls to our API.
38
+
39
+ ```python
40
+ from schematic.client import AsyncSchematic
41
+
42
+ client = AsyncSchematic(
43
+ api_key = "YOUR_API_KEY" # Defaults to SCHEMATIC_API_KEY
44
+ )
45
+ async def main() -> None:
46
+ await client.companies.get_company(
47
+ company_id="company_id",
48
+ )
49
+
50
+ asyncio.run(main())
51
+ ```
52
+
53
+ ## Exception Handling
54
+ All errors thrown by the SDK will be subclasses of [`ApiError`](./src/schematic/core/api_error.py).
55
+
56
+ ```python
57
+ import schematic
58
+
59
+ try:
60
+ client.companies.get_company(
61
+ company_id="company_id",
62
+ )
63
+ except schematic.core.ApiError as e: # Handle all errors
64
+ print(e.status_code)
65
+ print(e.body)
66
+ ```
67
+
68
+ ## Advanced
69
+
70
+ ### Timeouts
71
+ By default, requests time out after 60 seconds. You can configure this with a
72
+ timeout option at the client or request level.
73
+
74
+ ```python
75
+ from schematic.client import Schematic
76
+
77
+ client = Schematic(
78
+ # All timeouts are 20 seconds
79
+ timeout=20.0,
80
+ )
81
+
82
+ # Override timeout for a specific method
83
+ client.companies.get_company(..., {
84
+ timeout_in_seconds=20.0
85
+ })
86
+ ```
87
+
88
+ ### Retries
89
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be
90
+ retried as long as the request is deemed retriable and the number of retry attempts has not grown larger
91
+ than the configured retry limit (default: 2).
92
+
93
+ A request is deemed retriable when any of the following HTTP status codes is returned:
94
+
95
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
96
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
97
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
98
+
99
+ Use the `max_retries` request option to configure this behavior.
100
+
101
+ ```python
102
+ # Override timeout for a specific method
103
+ client.companies.get_company(..., {
104
+ max_retries=1 # Only retry once on failure
105
+ })
106
+ ```
107
+
108
+ ### Custom HTTP client
109
+ You can override the httpx client to customize it for your use-case. Some common use-cases
110
+ include support for proxies and transports.
111
+
112
+ ```python
113
+ import httpx
114
+
115
+ from schematic.client import Schematic
116
+
117
+ client = Schematic(
118
+ http_client=httpx.Client(
119
+ proxies="http://my.test.proxy.example.com",
120
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
121
+ ),
122
+ )
123
+ ```
124
+
125
+ ## Beta Status
126
+
127
+ This SDK is in **Preview**, and there may be breaking changes between versions without a major
128
+ version update.
129
+
130
+ To ensure a reproducible environment (and minimize risk of breaking changes), we recommend pinning a specific package version.
131
+
132
+ ## Contributing
133
+
134
+ While we value open-source contributions to this SDK, this library is generated programmatically.
135
+ Additions made directly to this library would have to be moved over to our generation code,
136
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
137
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
138
+ an issue first to discuss with us!
139
+
140
+ On the other hand, contributions to the README are always very welcome!
@@ -0,0 +1,33 @@
1
+ [tool.poetry]
2
+ name = "schematichq"
3
+ version = "0.0.6"
4
+ description = ""
5
+ readme = "README.md"
6
+ authors = []
7
+ packages = [
8
+ { include = "schematic", from = "src"}
9
+ ]
10
+
11
+ [tool.poetry.dependencies]
12
+ python = "^3.8"
13
+ httpx = ">=0.21.2"
14
+ pydantic = ">= 1.9.2"
15
+ typing_extensions = ">= 4.0.0"
16
+
17
+ [tool.poetry.dev-dependencies]
18
+ mypy = "1.9.0"
19
+ pytest = "^7.4.0"
20
+ pytest-asyncio = "^0.23.5"
21
+ python-dateutil = "^2.9.0"
22
+
23
+ [tool.pytest.ini_options]
24
+ testpaths = [ "tests" ]
25
+ asyncio_mode = "auto"
26
+
27
+ [tool.mypy]
28
+ plugins = ["pydantic.mypy"]
29
+
30
+
31
+ [build-system]
32
+ requires = ["poetry-core"]
33
+ build-backend = "poetry.core.masonry.api"