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.
- schematichq-0.0.6/PKG-INFO +156 -0
- schematichq-0.0.6/README.md +140 -0
- schematichq-0.0.6/pyproject.toml +33 -0
- schematichq-0.0.6/src/schematic/__init__.py +547 -0
- schematichq-0.0.6/src/schematic/accounts/__init__.py +45 -0
- schematichq-0.0.6/src/schematic/accounts/client.py +2200 -0
- schematichq-0.0.6/src/schematic/accounts/types/__init__.py +43 -0
- schematichq-0.0.6/src/schematic/accounts/types/count_api_keys_params.py +32 -0
- schematichq-0.0.6/src/schematic/accounts/types/count_api_keys_response.py +31 -0
- schematichq-0.0.6/src/schematic/accounts/types/count_api_requests_params.py +33 -0
- schematichq-0.0.6/src/schematic/accounts/types/count_api_requests_response.py +31 -0
- schematichq-0.0.6/src/schematic/accounts/types/create_api_key_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/create_environment_request_body_environment_type.py +7 -0
- schematichq-0.0.6/src/schematic/accounts/types/create_environment_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/delete_api_key_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/delete_environment_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/get_api_key_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/get_api_request_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/get_environment_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/list_api_keys_params.py +32 -0
- schematichq-0.0.6/src/schematic/accounts/types/list_api_keys_response.py +35 -0
- schematichq-0.0.6/src/schematic/accounts/types/list_api_requests_params.py +33 -0
- schematichq-0.0.6/src/schematic/accounts/types/list_api_requests_response.py +35 -0
- schematichq-0.0.6/src/schematic/accounts/types/update_api_key_response.py +30 -0
- schematichq-0.0.6/src/schematic/accounts/types/update_environment_request_body_environment_type.py +7 -0
- schematichq-0.0.6/src/schematic/accounts/types/update_environment_response.py +30 -0
- schematichq-0.0.6/src/schematic/base_client.py +158 -0
- schematichq-0.0.6/src/schematic/billing/__init__.py +15 -0
- schematichq-0.0.6/src/schematic/billing/client.py +632 -0
- schematichq-0.0.6/src/schematic/billing/types/__init__.py +13 -0
- schematichq-0.0.6/src/schematic/billing/types/list_products_params.py +32 -0
- schematichq-0.0.6/src/schematic/billing/types/list_products_response.py +35 -0
- schematichq-0.0.6/src/schematic/billing/types/upsert_billing_product_response.py +30 -0
- schematichq-0.0.6/src/schematic/billing/types/upsert_billing_subscription_response.py +30 -0
- schematichq-0.0.6/src/schematic/client.py +12 -0
- schematichq-0.0.6/src/schematic/companies/__init__.py +103 -0
- schematichq-0.0.6/src/schematic/companies/client.py +5594 -0
- schematichq-0.0.6/src/schematic/companies/types/__init__.py +101 -0
- schematichq-0.0.6/src/schematic/companies/types/count_companies_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/count_companies_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/count_entity_key_definitions_params.py +33 -0
- schematichq-0.0.6/src/schematic/companies/types/count_entity_key_definitions_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/count_entity_trait_definitions_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/count_entity_trait_definitions_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/count_users_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/count_users_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/create_company_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/create_entity_trait_definition_request_body_entity_type.py +5 -0
- schematichq-0.0.6/src/schematic/companies/types/create_entity_trait_definition_request_body_trait_type.py +7 -0
- schematichq-0.0.6/src/schematic/companies/types/create_user_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/delete_company_by_keys_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/delete_company_membership_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/delete_company_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/delete_user_by_keys_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/delete_user_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/get_active_company_subscription_params.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/get_active_company_subscription_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/get_company_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_definition_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_values_params.py +32 -0
- schematichq-0.0.6/src/schematic/companies/types/get_entity_trait_values_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/get_or_create_company_membership_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/get_or_create_entity_trait_definition_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/get_user_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/list_companies_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/list_companies_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/list_company_memberships_params.py +32 -0
- schematichq-0.0.6/src/schematic/companies/types/list_company_memberships_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/list_company_plans_params.py +32 -0
- schematichq-0.0.6/src/schematic/companies/types/list_company_plans_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/list_entity_key_definitions_params.py +33 -0
- schematichq-0.0.6/src/schematic/companies/types/list_entity_key_definitions_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/list_entity_trait_definitions_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/list_entity_trait_definitions_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/list_users_params.py +34 -0
- schematichq-0.0.6/src/schematic/companies/types/list_users_response.py +35 -0
- schematichq-0.0.6/src/schematic/companies/types/lookup_company_params.py +29 -0
- schematichq-0.0.6/src/schematic/companies/types/lookup_company_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/lookup_user_params.py +29 -0
- schematichq-0.0.6/src/schematic/companies/types/lookup_user_response.py +31 -0
- schematichq-0.0.6/src/schematic/companies/types/update_entity_trait_definition_request_body_trait_type.py +7 -0
- schematichq-0.0.6/src/schematic/companies/types/update_entity_trait_definition_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/upsert_company_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/upsert_company_trait_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/upsert_user_response.py +30 -0
- schematichq-0.0.6/src/schematic/companies/types/upsert_user_trait_response.py +30 -0
- schematichq-0.0.6/src/schematic/core/__init__.py +27 -0
- schematichq-0.0.6/src/schematic/core/api_error.py +15 -0
- schematichq-0.0.6/src/schematic/core/client_wrapper.py +45 -0
- schematichq-0.0.6/src/schematic/core/datetime_utils.py +28 -0
- schematichq-0.0.6/src/schematic/core/file.py +38 -0
- schematichq-0.0.6/src/schematic/core/http_client.py +130 -0
- schematichq-0.0.6/src/schematic/core/jsonable_encoder.py +99 -0
- schematichq-0.0.6/src/schematic/core/pydantic_utilities.py +12 -0
- schematichq-0.0.6/src/schematic/core/remove_none_from_dict.py +11 -0
- schematichq-0.0.6/src/schematic/core/request_options.py +32 -0
- schematichq-0.0.6/src/schematic/entitlements/__init__.py +83 -0
- schematichq-0.0.6/src/schematic/entitlements/client.py +3596 -0
- schematichq-0.0.6/src/schematic/entitlements/types/__init__.py +81 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_company_overrides_params.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_company_overrides_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_companies_params.py +32 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_companies_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_usage_params.py +34 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_usage_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_users_params.py +32 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_feature_users_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_plan_entitlements_params.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/count_plan_entitlements_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_request_body_metric_period.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_request_body_value_type.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_company_override_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_request_body_value_type.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/create_plan_entitlement_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/delete_company_override_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/delete_plan_entitlement_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/get_company_override_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/get_feature_usage_by_company_params.py +29 -0
- schematichq-0.0.6/src/schematic/entitlements/types/get_feature_usage_by_company_response.py +31 -0
- schematichq-0.0.6/src/schematic/entitlements/types/get_plan_entitlement_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_company_overrides_params.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_company_overrides_response.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_companies_params.py +32 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_companies_response.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_usage_params.py +34 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_usage_response.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_users_params.py +32 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_feature_users_response.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_plan_entitlements_params.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/list_plan_entitlements_response.py +35 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_request_body_metric_period.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_request_body_value_type.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_company_override_response.py +30 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_request_body_value_type.py +7 -0
- schematichq-0.0.6/src/schematic/entitlements/types/update_plan_entitlement_response.py +30 -0
- schematichq-0.0.6/src/schematic/environment.py +7 -0
- schematichq-0.0.6/src/schematic/errors/__init__.py +9 -0
- schematichq-0.0.6/src/schematic/errors/bad_request_error.py +9 -0
- schematichq-0.0.6/src/schematic/errors/forbidden_error.py +9 -0
- schematichq-0.0.6/src/schematic/errors/internal_server_error.py +9 -0
- schematichq-0.0.6/src/schematic/errors/not_found_error.py +9 -0
- schematichq-0.0.6/src/schematic/errors/unauthorized_error.py +9 -0
- schematichq-0.0.6/src/schematic/events/__init__.py +27 -0
- schematichq-0.0.6/src/schematic/events/client.py +1255 -0
- schematichq-0.0.6/src/schematic/events/types/__init__.py +25 -0
- schematichq-0.0.6/src/schematic/events/types/create_event_batch_response.py +30 -0
- schematichq-0.0.6/src/schematic/events/types/create_event_response.py +30 -0
- schematichq-0.0.6/src/schematic/events/types/get_event_response.py +30 -0
- schematichq-0.0.6/src/schematic/events/types/get_event_summaries_params.py +32 -0
- schematichq-0.0.6/src/schematic/events/types/get_event_summaries_response.py +35 -0
- schematichq-0.0.6/src/schematic/events/types/get_event_summary_by_subtype_response.py +30 -0
- schematichq-0.0.6/src/schematic/events/types/list_events_params.py +33 -0
- schematichq-0.0.6/src/schematic/events/types/list_events_response.py +35 -0
- schematichq-0.0.6/src/schematic/events/types/list_metric_counts_params.py +38 -0
- schematichq-0.0.6/src/schematic/events/types/list_metric_counts_response.py +35 -0
- schematichq-0.0.6/src/schematic/features/__init__.py +71 -0
- schematichq-0.0.6/src/schematic/features/client.py +4518 -0
- schematichq-0.0.6/src/schematic/features/types/__init__.py +69 -0
- schematichq-0.0.6/src/schematic/features/types/check_flag_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/check_flags_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/count_audience_companies_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/count_audience_users_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/count_features_params.py +34 -0
- schematichq-0.0.6/src/schematic/features/types/count_features_response.py +31 -0
- schematichq-0.0.6/src/schematic/features/types/count_flag_checks_params.py +33 -0
- schematichq-0.0.6/src/schematic/features/types/count_flag_checks_response.py +31 -0
- schematichq-0.0.6/src/schematic/features/types/count_flags_params.py +33 -0
- schematichq-0.0.6/src/schematic/features/types/count_flags_response.py +31 -0
- schematichq-0.0.6/src/schematic/features/types/create_feature_request_body_feature_type.py +5 -0
- schematichq-0.0.6/src/schematic/features/types/create_feature_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/create_flag_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/delete_feature_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/delete_flag_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/get_feature_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/get_flag_check_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/get_flag_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/get_latest_flag_checks_params.py +33 -0
- schematichq-0.0.6/src/schematic/features/types/get_latest_flag_checks_response.py +35 -0
- schematichq-0.0.6/src/schematic/features/types/list_audience_companies_response.py +34 -0
- schematichq-0.0.6/src/schematic/features/types/list_audience_users_response.py +34 -0
- schematichq-0.0.6/src/schematic/features/types/list_features_params.py +34 -0
- schematichq-0.0.6/src/schematic/features/types/list_features_response.py +35 -0
- schematichq-0.0.6/src/schematic/features/types/list_flag_checks_params.py +33 -0
- schematichq-0.0.6/src/schematic/features/types/list_flag_checks_response.py +35 -0
- schematichq-0.0.6/src/schematic/features/types/list_flags_params.py +33 -0
- schematichq-0.0.6/src/schematic/features/types/list_flags_response.py +35 -0
- schematichq-0.0.6/src/schematic/features/types/update_feature_request_body_feature_type.py +5 -0
- schematichq-0.0.6/src/schematic/features/types/update_feature_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/update_flag_response.py +30 -0
- schematichq-0.0.6/src/schematic/features/types/update_flag_rules_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/__init__.py +33 -0
- schematichq-0.0.6/src/schematic/plans/client.py +1572 -0
- schematichq-0.0.6/src/schematic/plans/types/__init__.py +31 -0
- schematichq-0.0.6/src/schematic/plans/types/count_plans_params.py +34 -0
- schematichq-0.0.6/src/schematic/plans/types/count_plans_response.py +31 -0
- schematichq-0.0.6/src/schematic/plans/types/create_plan_request_body_plan_type.py +7 -0
- schematichq-0.0.6/src/schematic/plans/types/create_plan_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/delete_audience_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/delete_plan_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/get_audience_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/get_plan_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/list_plans_params.py +34 -0
- schematichq-0.0.6/src/schematic/plans/types/list_plans_response.py +35 -0
- schematichq-0.0.6/src/schematic/plans/types/update_audience_response.py +30 -0
- schematichq-0.0.6/src/schematic/plans/types/update_plan_request_body_plan_type.py +7 -0
- schematichq-0.0.6/src/schematic/plans/types/update_plan_response.py +30 -0
- schematichq-0.0.6/src/schematic/py.typed +0 -0
- schematichq-0.0.6/src/schematic/types/__init__.py +185 -0
- schematichq-0.0.6/src/schematic/types/api_error.py +28 -0
- schematichq-0.0.6/src/schematic/types/api_key_create_response_data.py +37 -0
- schematichq-0.0.6/src/schematic/types/api_key_request_list_response_data.py +40 -0
- schematichq-0.0.6/src/schematic/types/api_key_request_response_data.py +47 -0
- schematichq-0.0.6/src/schematic/types/api_key_response_data.py +36 -0
- schematichq-0.0.6/src/schematic/types/audience_request_body.py +39 -0
- schematichq-0.0.6/src/schematic/types/billing_product_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/billing_subscription_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/check_flag_output_with_flag_key.py +31 -0
- schematichq-0.0.6/src/schematic/types/check_flag_request_body.py +26 -0
- schematichq-0.0.6/src/schematic/types/check_flag_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/check_flags_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/company_detail_response_data.py +43 -0
- schematichq-0.0.6/src/schematic/types/company_membership_detail_response_data.py +31 -0
- schematichq-0.0.6/src/schematic/types/company_membership_response_data.py +29 -0
- schematichq-0.0.6/src/schematic/types/company_override_response_data.py +46 -0
- schematichq-0.0.6/src/schematic/types/company_plan_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/company_response_data.py +31 -0
- schematichq-0.0.6/src/schematic/types/company_subscription_response_data.py +29 -0
- schematichq-0.0.6/src/schematic/types/count_response.py +29 -0
- schematichq-0.0.6/src/schematic/types/create_event_request_body.py +36 -0
- schematichq-0.0.6/src/schematic/types/create_event_request_body_event_type.py +5 -0
- schematichq-0.0.6/src/schematic/types/create_flag_request_body.py +30 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_condition_group_request_body.py +29 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body.py +64 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_condition_type.py +7 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_metric_period.py +7 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_condition_request_body_operator.py +7 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_flag_request_body.py +31 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_rule_request_body.py +34 -0
- schematichq-0.0.6/src/schematic/types/create_or_update_rule_request_body_rule_type.py +8 -0
- schematichq-0.0.6/src/schematic/types/create_req_common.py +32 -0
- schematichq-0.0.6/src/schematic/types/create_req_common_metric_period.py +5 -0
- schematichq-0.0.6/src/schematic/types/create_req_common_value_type.py +5 -0
- schematichq-0.0.6/src/schematic/types/delete_response.py +28 -0
- schematichq-0.0.6/src/schematic/types/entity_key_definition_response_data.py +29 -0
- schematichq-0.0.6/src/schematic/types/entity_key_detail_response_data.py +35 -0
- schematichq-0.0.6/src/schematic/types/entity_key_response_data.py +33 -0
- schematichq-0.0.6/src/schematic/types/entity_trait_definition_response_data.py +31 -0
- schematichq-0.0.6/src/schematic/types/entity_trait_detail_response_data.py +32 -0
- schematichq-0.0.6/src/schematic/types/entity_trait_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/entity_trait_value.py +26 -0
- schematichq-0.0.6/src/schematic/types/environment_detail_response_data.py +35 -0
- schematichq-0.0.6/src/schematic/types/environment_response_data.py +29 -0
- schematichq-0.0.6/src/schematic/types/event_body.py +8 -0
- schematichq-0.0.6/src/schematic/types/event_body_identify.py +44 -0
- schematichq-0.0.6/src/schematic/types/event_body_identify_company.py +42 -0
- schematichq-0.0.6/src/schematic/types/event_body_track.py +43 -0
- schematichq-0.0.6/src/schematic/types/event_detail_response_data.py +46 -0
- schematichq-0.0.6/src/schematic/types/event_response_data.py +42 -0
- schematichq-0.0.6/src/schematic/types/event_summary_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/feature_company_response_data.py +51 -0
- schematichq-0.0.6/src/schematic/types/feature_company_user_response_data.py +54 -0
- schematichq-0.0.6/src/schematic/types/feature_detail_response_data.py +41 -0
- schematichq-0.0.6/src/schematic/types/feature_response_data.py +33 -0
- schematichq-0.0.6/src/schematic/types/feature_usage_detail_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/feature_usage_response_data.py +49 -0
- schematichq-0.0.6/src/schematic/types/flag_check_log_detail_response_data.py +49 -0
- schematichq-0.0.6/src/schematic/types/flag_check_log_response_data.py +39 -0
- schematichq-0.0.6/src/schematic/types/flag_detail_response_data.py +39 -0
- schematichq-0.0.6/src/schematic/types/flag_response_data.py +33 -0
- schematichq-0.0.6/src/schematic/types/keys_request_body.py +25 -0
- schematichq-0.0.6/src/schematic/types/metric_counts_hourly_response_data.py +31 -0
- schematichq-0.0.6/src/schematic/types/pagination_filter.py +33 -0
- schematichq-0.0.6/src/schematic/types/plan_audience_detail_response_data.py +42 -0
- schematichq-0.0.6/src/schematic/types/plan_audience_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/plan_detail_response_data.py +37 -0
- schematichq-0.0.6/src/schematic/types/plan_entitlement_response_data.py +46 -0
- schematichq-0.0.6/src/schematic/types/plan_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/preview_object.py +27 -0
- schematichq-0.0.6/src/schematic/types/raw_event_batch_response_data.py +30 -0
- schematichq-0.0.6/src/schematic/types/raw_event_response_data.py +29 -0
- schematichq-0.0.6/src/schematic/types/rule_condition_detail_response_data.py +47 -0
- schematichq-0.0.6/src/schematic/types/rule_condition_group_detail_response_data.py +33 -0
- schematichq-0.0.6/src/schematic/types/rule_condition_group_response_data.py +31 -0
- schematichq-0.0.6/src/schematic/types/rule_condition_resource_response_data.py +26 -0
- schematichq-0.0.6/src/schematic/types/rule_condition_response_data.py +42 -0
- schematichq-0.0.6/src/schematic/types/rule_detail_response_data.py +38 -0
- schematichq-0.0.6/src/schematic/types/rule_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/rules_detail_response_data.py +34 -0
- schematichq-0.0.6/src/schematic/types/update_req_common.py +31 -0
- schematichq-0.0.6/src/schematic/types/update_req_common_metric_period.py +5 -0
- schematichq-0.0.6/src/schematic/types/update_req_common_value_type.py +5 -0
- schematichq-0.0.6/src/schematic/types/update_rule_request_body.py +31 -0
- schematichq-0.0.6/src/schematic/types/upsert_company_request_body.py +34 -0
- schematichq-0.0.6/src/schematic/types/upsert_trait_request_body.py +50 -0
- schematichq-0.0.6/src/schematic/types/upsert_user_request_body.py +43 -0
- schematichq-0.0.6/src/schematic/types/upsert_user_sub_request_body.py +38 -0
- schematichq-0.0.6/src/schematic/types/user_detail_response_data.py +41 -0
- schematichq-0.0.6/src/schematic/types/user_response_data.py +30 -0
- 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
|
+
[](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
|
+
[](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"
|