morta 1.0.0__py3-none-any.whl
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.
- morta/__init__.py +90 -0
- morta/_base_client.py +1985 -0
- morta/_client.py +455 -0
- morta/_compat.py +219 -0
- morta/_constants.py +14 -0
- morta/_exceptions.py +108 -0
- morta/_files.py +123 -0
- morta/_models.py +805 -0
- morta/_qs.py +150 -0
- morta/_resource.py +43 -0
- morta/_response.py +830 -0
- morta/_streaming.py +333 -0
- morta/_types.py +219 -0
- morta/_utils/__init__.py +57 -0
- morta/_utils/_logs.py +25 -0
- morta/_utils/_proxy.py +65 -0
- morta/_utils/_reflection.py +42 -0
- morta/_utils/_resources_proxy.py +24 -0
- morta/_utils/_streams.py +12 -0
- morta/_utils/_sync.py +86 -0
- morta/_utils/_transform.py +447 -0
- morta/_utils/_typing.py +151 -0
- morta/_utils/_utils.py +422 -0
- morta/_version.py +4 -0
- morta/lib/.keep +4 -0
- morta/py.typed +0 -0
- morta/resources/__init__.py +117 -0
- morta/resources/comment_thread/__init__.py +33 -0
- morta/resources/comment_thread/comment.py +372 -0
- morta/resources/comment_thread/comment_thread.py +768 -0
- morta/resources/document/__init__.py +47 -0
- morta/resources/document/document.py +1535 -0
- morta/resources/document/duplicate.py +290 -0
- morta/resources/document/section/__init__.py +33 -0
- morta/resources/document/section/response.py +744 -0
- morta/resources/document/section/section.py +822 -0
- morta/resources/hub/__init__.py +61 -0
- morta/resources/hub/ai_answer.py +191 -0
- morta/resources/hub/hub.py +3317 -0
- morta/resources/hub/invite.py +475 -0
- morta/resources/hub/secrets.py +450 -0
- morta/resources/integrations.py +328 -0
- morta/resources/notifications.py +598 -0
- morta/resources/permissions.py +794 -0
- morta/resources/table/__init__.py +89 -0
- morta/resources/table/column.py +1019 -0
- morta/resources/table/join.py +399 -0
- morta/resources/table/row.py +553 -0
- morta/resources/table/sync.py +691 -0
- morta/resources/table/table.py +2158 -0
- morta/resources/table/views/__init__.py +47 -0
- morta/resources/table/views/columns.py +1013 -0
- morta/resources/table/views/rows.py +611 -0
- morta/resources/table/views/views.py +1623 -0
- morta/resources/user/__init__.py +61 -0
- morta/resources/user/apikey.py +380 -0
- morta/resources/user/hubs.py +423 -0
- morta/resources/user/tags.py +357 -0
- morta/resources/user/user.py +1358 -0
- morta/types/__init__.py +204 -0
- morta/types/access_policy.py +57 -0
- morta/types/action.py +25 -0
- morta/types/answer.py +29 -0
- morta/types/base_request_context_param.py +20 -0
- morta/types/comment_thread/__init__.py +11 -0
- morta/types/comment_thread/comment_create_params.py +16 -0
- morta/types/comment_thread/comment_create_response.py +27 -0
- morta/types/comment_thread/comment_delete_response.py +27 -0
- morta/types/comment_thread/comment_model.py +27 -0
- morta/types/comment_thread/comment_thread.py +33 -0
- morta/types/comment_thread/comment_update_params.py +18 -0
- morta/types/comment_thread/comment_update_response.py +27 -0
- morta/types/comment_thread_create_params.py +22 -0
- morta/types/comment_thread_create_response.py +27 -0
- morta/types/comment_thread_delete_response.py +27 -0
- morta/types/comment_thread_get_stats_params.py +18 -0
- morta/types/comment_thread_get_stats_response.py +23 -0
- morta/types/comment_thread_list_params.py +21 -0
- morta/types/comment_thread_list_response.py +14 -0
- morta/types/comment_thread_reopen_response.py +27 -0
- morta/types/comment_thread_resolve_response.py +27 -0
- morta/types/comment_thread_retrieve_response.py +14 -0
- morta/types/create_notification_schema_header_param.py +13 -0
- morta/types/document/__init__.py +19 -0
- morta/types/document/create_document_section_param.py +26 -0
- morta/types/document/document.py +15 -0
- morta/types/document/duplicate_duplicate_params.py +21 -0
- morta/types/document/duplicate_global_params.py +19 -0
- morta/types/document/duplicate_global_response.py +24 -0
- morta/types/document/section/__init__.py +14 -0
- morta/types/document/section/document_response.py +41 -0
- morta/types/document/section/response_create_params.py +18 -0
- morta/types/document/section/response_create_response.py +14 -0
- morta/types/document/section/response_delete_response.py +24 -0
- morta/types/document/section/response_reset_response.py +24 -0
- morta/types/document/section/response_restore_response.py +14 -0
- morta/types/document/section/response_submit_params.py +19 -0
- morta/types/document/section/response_submit_response.py +24 -0
- morta/types/document/section/response_update_params.py +29 -0
- morta/types/document/section/response_update_response.py +47 -0
- morta/types/document/section_create_params.py +27 -0
- morta/types/document/section_create_response.py +24 -0
- morta/types/document/section_delete_response.py +24 -0
- morta/types/document/section_duplicate_async_response.py +13 -0
- morta/types/document/section_duplicate_response.py +24 -0
- morta/types/document/section_restore_response.py +24 -0
- morta/types/document/section_retrieve_params.py +14 -0
- morta/types/document/section_retrieve_response.py +24 -0
- morta/types/document/section_update_params.py +33 -0
- morta/types/document/section_update_response.py +24 -0
- morta/types/document_create_multiple_sections_params.py +17 -0
- morta/types/document_create_multiple_sections_response.py +20 -0
- morta/types/document_create_params.py +20 -0
- morta/types/document_create_response.py +27 -0
- morta/types/document_create_sections_params.py +17 -0
- morta/types/document_create_sections_response.py +24 -0
- morta/types/document_delete_response.py +24 -0
- morta/types/document_export_params.py +18 -0
- morta/types/document_get_deleted_sections_params.py +12 -0
- morta/types/document_get_deleted_sections_response.py +12 -0
- morta/types/document_get_duplicated_children_response.py +26 -0
- morta/types/document_restore_response.py +24 -0
- morta/types/document_retrieve_params.py +12 -0
- morta/types/document_retrieve_response.py +24 -0
- morta/types/document_section_1.py +51 -0
- morta/types/document_sync_template_response.py +14 -0
- morta/types/document_update_multiple_sections_params.py +39 -0
- morta/types/document_update_multiple_sections_response.py +24 -0
- morta/types/document_update_params.py +39 -0
- morta/types/document_update_response.py +14 -0
- morta/types/document_update_section_order_params.py +25 -0
- morta/types/document_update_section_order_response.py +24 -0
- morta/types/document_update_views_permissions_params.py +12 -0
- morta/types/document_update_views_permissions_response.py +11 -0
- morta/types/draftjs.py +51 -0
- morta/types/draftjs_param.py +54 -0
- morta/types/event.py +46 -0
- morta/types/hub/__init__.py +20 -0
- morta/types/hub/ai_answer_vote_params.py +15 -0
- morta/types/hub/ai_answer_vote_response.py +13 -0
- morta/types/hub/hub_secret.py +22 -0
- morta/types/hub/invite_create_params.py +18 -0
- morta/types/hub/invite_create_response.py +13 -0
- morta/types/hub/invite_delete_response.py +13 -0
- morta/types/hub/invite_resend_response.py +13 -0
- morta/types/hub/invite_update_params.py +18 -0
- morta/types/hub/invite_update_response.py +14 -0
- morta/types/hub/invited_member.py +26 -0
- morta/types/hub/secret_create_params.py +13 -0
- morta/types/hub/secret_create_response.py +14 -0
- morta/types/hub/secret_delete_response.py +13 -0
- morta/types/hub/secret_list_response.py +14 -0
- morta/types/hub/secret_update_params.py +15 -0
- morta/types/hub/secret_update_response.py +14 -0
- morta/types/hub_ai_search_params.py +15 -0
- morta/types/hub_ai_search_response.py +14 -0
- morta/types/hub_change_user_role_params.py +13 -0
- morta/types/hub_change_user_role_response.py +14 -0
- morta/types/hub_create_heading_styling_response.py +14 -0
- morta/types/hub_create_knowledge_base_params.py +20 -0
- morta/types/hub_create_params.py +11 -0
- morta/types/hub_create_response.py +14 -0
- morta/types/hub_delete_response.py +13 -0
- morta/types/hub_delete_top_heading_styling_response.py +14 -0
- morta/types/hub_duplicate_params.py +18 -0
- morta/types/hub_get_ai_answers_response.py +35 -0
- morta/types/hub_get_deleted_documents_response.py +14 -0
- morta/types/hub_get_deleted_tables_response.py +14 -0
- morta/types/hub_get_documents_response.py +14 -0
- morta/types/hub_get_duplicated_children_response.py +26 -0
- morta/types/hub_get_invited_members_response.py +14 -0
- morta/types/hub_get_members_response.py +44 -0
- morta/types/hub_get_notifications_response.py +14 -0
- morta/types/hub_get_resources_params.py +26 -0
- morta/types/hub_get_resources_response.py +69 -0
- morta/types/hub_get_sent_notifications_params.py +19 -0
- morta/types/hub_get_sent_notifications_response.py +50 -0
- morta/types/hub_get_tables_response.py +14 -0
- morta/types/hub_get_tags_response.py +37 -0
- morta/types/hub_get_variables_response.py +37 -0
- morta/types/hub_invite_multiple_users_params.py +18 -0
- morta/types/hub_invite_multiple_users_response.py +13 -0
- morta/types/hub_permanently_delete_response.py +13 -0
- morta/types/hub_remove_user_response.py +14 -0
- morta/types/hub_restore_response.py +13 -0
- morta/types/hub_retrieve_response.py +35 -0
- morta/types/hub_search_resources_params.py +15 -0
- morta/types/hub_search_resources_response.py +14 -0
- morta/types/hub_update_heading_styling_params.py +30 -0
- morta/types/hub_update_heading_styling_response.py +14 -0
- morta/types/hub_update_params.py +73 -0
- morta/types/hub_update_response.py +14 -0
- morta/types/hub_upload_template_params.py +13 -0
- morta/types/hub_upload_template_response.py +14 -0
- morta/types/integration_create_passthrough_download_params.py +32 -0
- morta/types/integration_create_passthrough_params.py +32 -0
- morta/types/integration_create_passthrough_response.py +25 -0
- morta/types/morta_document.py +59 -0
- morta/types/morta_document_section.py +51 -0
- morta/types/notification.py +33 -0
- morta/types/notification_create_params.py +33 -0
- morta/types/notification_create_response.py +14 -0
- morta/types/notification_delete_response.py +13 -0
- morta/types/notification_list_event_types_response.py +13 -0
- morta/types/notification_list_events_params.py +34 -0
- morta/types/notification_list_events_response.py +14 -0
- morta/types/notification_update_params.py +33 -0
- morta/types/notification_update_response.py +14 -0
- morta/types/permission_create_all_params.py +28 -0
- morta/types/permission_create_all_response.py +14 -0
- morta/types/permission_create_params.py +28 -0
- morta/types/permission_create_response.py +14 -0
- morta/types/permission_retrieve_params.py +18 -0
- morta/types/permission_retrieve_response.py +14 -0
- morta/types/permission_retrieve_tag_params.py +12 -0
- morta/types/permission_retrieve_tag_response.py +14 -0
- morta/types/permission_update_params.py +15 -0
- morta/types/permission_update_response.py +14 -0
- morta/types/project.py +15 -0
- morta/types/simple_document.py +54 -0
- morta/types/simple_hub.py +120 -0
- morta/types/summary_user.py +21 -0
- morta/types/table/__init__.py +76 -0
- morta/types/table/chart.py +54 -0
- morta/types/table/chart_param.py +55 -0
- morta/types/table/colour.py +47 -0
- morta/types/table/colour_param.py +52 -0
- morta/types/table/column_check_views_response.py +14 -0
- morta/types/table/column_create_params.py +112 -0
- morta/types/table/column_create_response.py +14 -0
- morta/types/table/column_delete_response.py +13 -0
- morta/types/table/column_get_distinct_values_params.py +18 -0
- morta/types/table/column_get_distinct_values_response.py +13 -0
- morta/types/table/column_restore_response.py +14 -0
- morta/types/table/column_update_params.py +114 -0
- morta/types/table/column_update_response.py +14 -0
- morta/types/table/filter.py +45 -0
- morta/types/table/filter_param.py +50 -0
- morta/types/table/group.py +17 -0
- morta/types/table/group_param.py +17 -0
- morta/types/table/join_create_params.py +24 -0
- morta/types/table/join_create_response.py +14 -0
- morta/types/table/join_delete_response.py +13 -0
- morta/types/table/join_update_params.py +26 -0
- morta/types/table/join_update_response.py +14 -0
- morta/types/table/row_add_params.py +17 -0
- morta/types/table/row_add_response.py +23 -0
- morta/types/table/row_get_rows_params.py +40 -0
- morta/types/table/row_get_rows_response.py +33 -0
- morta/types/table/row_update_params.py +27 -0
- morta/types/table/row_update_response.py +23 -0
- morta/types/table/row_upsert_params.py +20 -0
- morta/types/table/row_upsert_response.py +23 -0
- morta/types/table/select_options_lookup.py +35 -0
- morta/types/table/select_options_lookup_param.py +36 -0
- morta/types/table/sort.py +17 -0
- morta/types/table/sort_param.py +17 -0
- morta/types/table/sync_delete_integration_response.py +13 -0
- morta/types/table/sync_get_sync_info_response.py +80 -0
- morta/types/table/sync_retry_integration_sync_response.py +13 -0
- morta/types/table/sync_sync_with_integration_params.py +56 -0
- morta/types/table/sync_sync_with_integration_response.py +13 -0
- morta/types/table/sync_update_params.py +56 -0
- morta/types/table/sync_update_response.py +13 -0
- morta/types/table/table.py +113 -0
- morta/types/table/table_column.py +110 -0
- morta/types/table/table_column_alter.py +18 -0
- morta/types/table/table_column_alter_param.py +17 -0
- morta/types/table/table_column_join.py +15 -0
- morta/types/table/table_column_join_param.py +15 -0
- morta/types/table/table_column_param.py +108 -0
- morta/types/table/table_row_action_param.py +19 -0
- morta/types/table/table_view.py +60 -0
- morta/types/table/view_create_params.py +93 -0
- morta/types/table/view_create_response.py +14 -0
- morta/types/table/view_delete_response.py +13 -0
- morta/types/table/view_download_csv_params.py +18 -0
- morta/types/table/view_download_csv_response.py +7 -0
- morta/types/table/view_duplicate_default_params.py +17 -0
- morta/types/table/view_duplicate_default_response.py +14 -0
- morta/types/table/view_duplicate_response.py +14 -0
- morta/types/table/view_list_params.py +12 -0
- morta/types/table/view_list_response.py +14 -0
- morta/types/table/view_preview_row_params.py +17 -0
- morta/types/table/view_preview_row_response.py +23 -0
- morta/types/table/view_retrieve_params.py +12 -0
- morta/types/table/view_retrieve_response.py +81 -0
- morta/types/table/view_set_default_response.py +14 -0
- morta/types/table/view_stats_params.py +21 -0
- morta/types/table/view_stats_response.py +14 -0
- morta/types/table/view_stream_rows_params.py +24 -0
- morta/types/table/view_update_cells_params.py +27 -0
- morta/types/table/view_update_cells_response.py +23 -0
- morta/types/table/view_update_params.py +63 -0
- morta/types/table/view_update_response.py +14 -0
- morta/types/table/views/__init__.py +24 -0
- morta/types/table/views/column_add_params.py +130 -0
- morta/types/table/views/column_add_response.py +14 -0
- morta/types/table/views/column_ai_formula_helper_params.py +13 -0
- morta/types/table/views/column_ai_formula_helper_response.py +17 -0
- morta/types/table/views/column_distinct_params.py +18 -0
- morta/types/table/views/column_distinct_response.py +13 -0
- morta/types/table/views/column_formula_info_response.py +17 -0
- morta/types/table/views/column_update_params.py +132 -0
- morta/types/table/views/column_update_response.py +14 -0
- morta/types/table/views/row_add_params.py +17 -0
- morta/types/table/views/row_add_response.py +23 -0
- morta/types/table/views/row_delete_response.py +13 -0
- morta/types/table/views/row_list_params.py +38 -0
- morta/types/table/views/row_list_response.py +31 -0
- morta/types/table/views/row_update_params.py +27 -0
- morta/types/table/views/row_update_response.py +23 -0
- morta/types/table/views/row_upsert_params.py +20 -0
- morta/types/table/views/row_upsert_response.py +23 -0
- morta/types/table/views/table_view_column.py +128 -0
- morta/types/table/views/update_table_view_column_param.py +129 -0
- morta/types/table1.py +17 -0
- morta/types/table3.py +15 -0
- morta/types/table_check_usage_response.py +24 -0
- morta/types/table_column_with_aggregation.py +23 -0
- morta/types/table_create_index_params.py +18 -0
- morta/types/table_create_index_response.py +14 -0
- morta/types/table_create_params.py +42 -0
- morta/types/table_create_response.py +14 -0
- morta/types/table_delete_response.py +13 -0
- morta/types/table_delete_rows_response.py +13 -0
- morta/types/table_download_csv_params.py +15 -0
- morta/types/table_download_csv_response.py +7 -0
- morta/types/table_duplicate_params.py +21 -0
- morta/types/table_duplicate_response.py +13 -0
- morta/types/table_get_duplicated_children_response.py +26 -0
- morta/types/table_get_file_params.py +15 -0
- morta/types/table_get_statistics_params.py +16 -0
- morta/types/table_get_statistics_response.py +14 -0
- morta/types/table_join.py +25 -0
- morta/types/table_join_imported_columns.py +15 -0
- morta/types/table_join_imported_columns_param.py +15 -0
- morta/types/table_list_columns_response.py +14 -0
- morta/types/table_list_joins_response.py +14 -0
- morta/types/table_restore_response.py +14 -0
- morta/types/table_retrieve_params.py +43 -0
- morta/types/table_retrieve_response.py +25 -0
- morta/types/table_stream_rows_params.py +21 -0
- morta/types/table_truncate_response.py +13 -0
- morta/types/table_update_cells_params.py +27 -0
- morta/types/table_update_cells_response.py +13 -0
- morta/types/table_update_params.py +51 -0
- morta/types/table_update_response.py +14 -0
- morta/types/trigger.py +15 -0
- morta/types/user/__init__.py +23 -0
- morta/types/user/api_key.py +27 -0
- morta/types/user/apikey_create_params.py +22 -0
- morta/types/user/apikey_create_response.py +14 -0
- morta/types/user/apikey_delete_response.py +14 -0
- morta/types/user/apikey_update_params.py +22 -0
- morta/types/user/apikey_update_response.py +14 -0
- morta/types/user/home_hub.py +38 -0
- morta/types/user/hub_list_favourites_response.py +30 -0
- morta/types/user/hub_list_response.py +15 -0
- morta/types/user/hub_list_tags_response.py +15 -0
- morta/types/user/hub_toggle_favourite_response.py +30 -0
- morta/types/user/hub_toggle_pin_response.py +33 -0
- morta/types/user/tag.py +21 -0
- morta/types/user/tag_add_params.py +13 -0
- morta/types/user/tag_add_response.py +15 -0
- morta/types/user/tag_bulk_apply_params.py +18 -0
- morta/types/user/tag_bulk_apply_response.py +15 -0
- morta/types/user/tag_delete_response.py +13 -0
- morta/types/user/user.py +106 -0
- morta/types/user_create_params.py +32 -0
- morta/types/user_create_response.py +24 -0
- morta/types/user_hub.py +13 -0
- morta/types/user_list_achievements_response.py +24 -0
- morta/types/user_list_contributions_response.py +15 -0
- morta/types/user_list_owner_hubs_response.py +15 -0
- morta/types/user_list_pinned_hubs_response.py +33 -0
- morta/types/user_list_public_contributions_response.py +15 -0
- morta/types/user_list_public_hubs_response.py +15 -0
- morta/types/user_list_templates_response.py +20 -0
- morta/types/user_retrieve_by_public_id_response.py +25 -0
- morta/types/user_retrieve_me_response.py +25 -0
- morta/types/user_retrieve_response.py +25 -0
- morta/types/user_search_params.py +21 -0
- morta/types/user_search_response.py +15 -0
- morta/types/user_update_account_params.py +32 -0
- morta/types/user_update_account_response.py +140 -0
- morta/types/user_update_profile_params.py +34 -0
- morta/types/user_update_profile_response.py +24 -0
- morta-1.0.0.dist-info/METADATA +432 -0
- morta-1.0.0.dist-info/RECORD +392 -0
- morta-1.0.0.dist-info/WHEEL +4 -0
- morta-1.0.0.dist-info/licenses/LICENSE +201 -0
morta/__init__.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import typing as _t
|
|
4
|
+
|
|
5
|
+
from . import types
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
|
|
7
|
+
from ._utils import file_from_path
|
|
8
|
+
from ._client import Morta, Client, Stream, Timeout, Transport, AsyncMorta, AsyncClient, AsyncStream, RequestOptions
|
|
9
|
+
from ._models import BaseModel
|
|
10
|
+
from ._version import __title__, __version__
|
|
11
|
+
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
|
|
12
|
+
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
|
|
13
|
+
from ._exceptions import (
|
|
14
|
+
APIError,
|
|
15
|
+
MortaError,
|
|
16
|
+
ConflictError,
|
|
17
|
+
NotFoundError,
|
|
18
|
+
APIStatusError,
|
|
19
|
+
RateLimitError,
|
|
20
|
+
APITimeoutError,
|
|
21
|
+
BadRequestError,
|
|
22
|
+
APIConnectionError,
|
|
23
|
+
AuthenticationError,
|
|
24
|
+
InternalServerError,
|
|
25
|
+
PermissionDeniedError,
|
|
26
|
+
UnprocessableEntityError,
|
|
27
|
+
APIResponseValidationError,
|
|
28
|
+
)
|
|
29
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
30
|
+
from ._utils._logs import setup_logging as _setup_logging
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"types",
|
|
34
|
+
"__version__",
|
|
35
|
+
"__title__",
|
|
36
|
+
"NoneType",
|
|
37
|
+
"Transport",
|
|
38
|
+
"ProxiesTypes",
|
|
39
|
+
"NotGiven",
|
|
40
|
+
"NOT_GIVEN",
|
|
41
|
+
"Omit",
|
|
42
|
+
"MortaError",
|
|
43
|
+
"APIError",
|
|
44
|
+
"APIStatusError",
|
|
45
|
+
"APITimeoutError",
|
|
46
|
+
"APIConnectionError",
|
|
47
|
+
"APIResponseValidationError",
|
|
48
|
+
"BadRequestError",
|
|
49
|
+
"AuthenticationError",
|
|
50
|
+
"PermissionDeniedError",
|
|
51
|
+
"NotFoundError",
|
|
52
|
+
"ConflictError",
|
|
53
|
+
"UnprocessableEntityError",
|
|
54
|
+
"RateLimitError",
|
|
55
|
+
"InternalServerError",
|
|
56
|
+
"Timeout",
|
|
57
|
+
"RequestOptions",
|
|
58
|
+
"Client",
|
|
59
|
+
"AsyncClient",
|
|
60
|
+
"Stream",
|
|
61
|
+
"AsyncStream",
|
|
62
|
+
"Morta",
|
|
63
|
+
"AsyncMorta",
|
|
64
|
+
"file_from_path",
|
|
65
|
+
"BaseModel",
|
|
66
|
+
"DEFAULT_TIMEOUT",
|
|
67
|
+
"DEFAULT_MAX_RETRIES",
|
|
68
|
+
"DEFAULT_CONNECTION_LIMITS",
|
|
69
|
+
"DefaultHttpxClient",
|
|
70
|
+
"DefaultAsyncHttpxClient",
|
|
71
|
+
"DefaultAioHttpClient",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
if not _t.TYPE_CHECKING:
|
|
75
|
+
from ._utils._resources_proxy import resources as resources
|
|
76
|
+
|
|
77
|
+
_setup_logging()
|
|
78
|
+
|
|
79
|
+
# Update the __module__ attribute for exported symbols so that
|
|
80
|
+
# error messages point to this module instead of the module
|
|
81
|
+
# it was originally defined in, e.g.
|
|
82
|
+
# morta._exceptions.NotFoundError -> morta.NotFoundError
|
|
83
|
+
__locals = locals()
|
|
84
|
+
for __name in __all__:
|
|
85
|
+
if not __name.startswith("__"):
|
|
86
|
+
try:
|
|
87
|
+
__locals[__name].__module__ = "morta"
|
|
88
|
+
except (TypeError, AttributeError):
|
|
89
|
+
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
90
|
+
pass
|