newscatcher-catchall-sdk 0.0.0.dev0__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 (195) hide show
  1. newscatcher_catchall_sdk-0.0.0.dev0/LICENSE +21 -0
  2. newscatcher_catchall_sdk-0.0.0.dev0/PKG-INFO +255 -0
  3. newscatcher_catchall_sdk-0.0.0.dev0/README.md +221 -0
  4. newscatcher_catchall_sdk-0.0.0.dev0/pyproject.toml +98 -0
  5. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/__init__.py +496 -0
  6. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/_default_clients.py +32 -0
  7. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/client.py +326 -0
  8. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/__init__.py +127 -0
  9. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/api_error.py +23 -0
  10. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/client_wrapper.py +123 -0
  11. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/datetime_utils.py +70 -0
  12. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/file.py +67 -0
  13. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/force_multipart.py +18 -0
  14. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_client.py +839 -0
  15. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_response.py +59 -0
  16. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_sse/__init__.py +42 -0
  17. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_sse/_api.py +170 -0
  18. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_sse/_decoders.py +61 -0
  19. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_sse/_exceptions.py +7 -0
  20. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/http_sse/_models.py +17 -0
  21. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/jsonable_encoder.py +120 -0
  22. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/logging.py +107 -0
  23. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/parse_error.py +36 -0
  24. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/pydantic_utilities.py +508 -0
  25. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/query_encoder.py +58 -0
  26. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/remove_none_from_dict.py +11 -0
  27. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/request_options.py +35 -0
  28. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/core/serialization.py +347 -0
  29. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/datasets/__init__.py +4 -0
  30. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/datasets/client.py +1213 -0
  31. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/datasets/raw_client.py +1963 -0
  32. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/entities/__init__.py +4 -0
  33. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/entities/client.py +772 -0
  34. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/entities/raw_client.py +1019 -0
  35. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/environment.py +7 -0
  36. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/__init__.py +44 -0
  37. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/bad_request_error.py +10 -0
  38. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/forbidden_error.py +11 -0
  39. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/not_found_error.py +11 -0
  40. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/unauthorized_error.py +11 -0
  41. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/errors/unprocessable_entity_error.py +11 -0
  42. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/jobs/__init__.py +34 -0
  43. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/jobs/client.py +1053 -0
  44. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/jobs/raw_client.py +1592 -0
  45. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/jobs/types/__init__.py +34 -0
  46. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/jobs/types/submit_request_dto_mode.py +5 -0
  47. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/__init__.py +34 -0
  48. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/client.py +224 -0
  49. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/raw_client.py +289 -0
  50. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/types/__init__.py +38 -0
  51. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/types/get_version_response.py +19 -0
  52. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/meta/types/health_check_response.py +19 -0
  53. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/__init__.py +52 -0
  54. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/client.py +1025 -0
  55. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/raw_client.py +1629 -0
  56. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/__init__.py +50 -0
  57. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/disable_monitor_response.py +32 -0
  58. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/enable_monitor_response.py +32 -0
  59. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/list_monitor_jobs_request_sort.py +5 -0
  60. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/list_monitor_jobs_response.py +39 -0
  61. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/monitors/types/list_monitor_jobs_response_sort_order.py +5 -0
  62. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/projects/__init__.py +4 -0
  63. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/projects/client.py +909 -0
  64. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/projects/raw_client.py +1488 -0
  65. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/py.typed +0 -0
  66. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/__init__.py +403 -0
  67. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/add_resource_response_dto.py +33 -0
  68. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/additional_attributes.py +24 -0
  69. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/api_key_auth_dto.py +27 -0
  70. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/assign_webhook_resource_response_dto.py +38 -0
  71. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/base_record.py +37 -0
  72. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/base_record_enrichment.py +31 -0
  73. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/base_record_enrichment_enrichment_confidence.py +5 -0
  74. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/basic_auth_dto.py +27 -0
  75. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/bearer_auth_dto.py +22 -0
  76. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/citation.py +33 -0
  77. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/company_attributes.py +43 -0
  78. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/company_enrichment_output.py +34 -0
  79. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/company_enrichment_output_metadata.py +35 -0
  80. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/company_enrichment_output_metadata_domain_url_confidence.py +5 -0
  81. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/connected_dataset.py +36 -0
  82. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/connected_entity.py +73 -0
  83. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/context.py +6 -0
  84. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/continue_response_dto.py +37 -0
  85. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_dataset_csv_response.py +35 -0
  86. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_entities_batch_response.py +28 -0
  87. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_entity_request.py +42 -0
  88. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_entity_response.py +27 -0
  89. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_monitor_response_dto.py +27 -0
  90. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_project_response_dto.py +37 -0
  91. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/create_webhook_response_dto.py +33 -0
  92. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_entity_ids_request.py +22 -0
  93. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_entity_list_response.py +38 -0
  94. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_list_response.py +38 -0
  95. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_response.py +60 -0
  96. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_sort_by.py +5 -0
  97. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_status.py +5 -0
  98. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_status_entry.py +34 -0
  99. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/dataset_status_history_response.py +28 -0
  100. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delete_job_response_dto.py +32 -0
  101. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delete_monitor_response_dto.py +32 -0
  102. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delivery_history_item_dto.py +75 -0
  103. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delivery_history_response_dto.py +54 -0
  104. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delivery_mode.py +5 -0
  105. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/delivery_status.py +5 -0
  106. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/end_date.py +12 -0
  107. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/enrichment_schema.py +36 -0
  108. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/enrichment_type.py +5 -0
  109. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_association_type.py +5 -0
  110. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_list_response.py +38 -0
  111. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_response.py +64 -0
  112. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_sort_by.py +5 -0
  113. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_status.py +5 -0
  114. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_summary.py +51 -0
  115. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_type.py +5 -0
  116. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/entity_validation_error_body.py +39 -0
  117. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/error.py +22 -0
  118. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/get_plan_limits_response_dto.py +23 -0
  119. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/get_webhook_response_dto.py +33 -0
  120. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/http_method.py +5 -0
  121. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/initialize_response_dto.py +50 -0
  122. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/issue_type.py +18 -0
  123. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/job_step.py +29 -0
  124. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/limit.py +8 -0
  125. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/list_monitors_response_dto.py +43 -0
  126. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/list_user_jobs_response_dto.py +43 -0
  127. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/list_webhook_resources_response_dto.py +43 -0
  128. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/list_webhooks_response_dto.py +43 -0
  129. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/manage_entities_response.py +27 -0
  130. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/mappable_resource_type.py +5 -0
  131. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_citation.py +39 -0
  132. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_job_item.py +33 -0
  133. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_list_item_dto.py +75 -0
  134. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_record.py +41 -0
  135. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_status_entry.py +67 -0
  136. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_status_entry_status.py +5 -0
  137. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/monitor_status_history_response_dto.py +43 -0
  138. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/ownership_filter.py +5 -0
  139. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/plan_feature.py +42 -0
  140. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_list_response_dto.py +43 -0
  141. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_overview_counts_dto.py +8 -0
  142. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_overview_response_dto.py +28 -0
  143. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_overview_response_dto_overview.py +27 -0
  144. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_resource_dto.py +45 -0
  145. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_resource_list_response_dto.py +43 -0
  146. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_resource_type.py +5 -0
  147. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_response_dto.py +58 -0
  148. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/project_summary_dto.py +52 -0
  149. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/public_job_status.py +7 -0
  150. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/pull_job_response_dto.py +125 -0
  151. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/pull_job_response_dto_date_range.py +21 -0
  152. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/pull_job_response_dto_mode.py +5 -0
  153. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/pull_monitor_response_dto.py +74 -0
  154. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/pull_monitor_response_dto_run_info.py +32 -0
  155. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/query.py +8 -0
  156. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/query_status.py +5 -0
  157. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/record.py +31 -0
  158. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/reference_job.py +27 -0
  159. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/remove_resource_response_dto.py +27 -0
  160. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/resource_item_dto.py +24 -0
  161. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/resource_result_dto.py +42 -0
  162. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/sharing_info.py +40 -0
  163. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/sharing_info_permission.py +5 -0
  164. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/skipped_row.py +33 -0
  165. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/sort_order.py +5 -0
  166. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/start_date.py +12 -0
  167. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/status_response_dto.py +34 -0
  168. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/submit_response_dto.py +22 -0
  169. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/suggestion.py +37 -0
  170. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/test_webhook_response_dto.py +37 -0
  171. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/update_monitor_response_dto.py +27 -0
  172. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/update_project_response_dto.py +32 -0
  173. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/update_webhook_response_dto.py +33 -0
  174. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/upload_csv_to_dataset_response.py +30 -0
  175. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/user_job.py +55 -0
  176. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/user_job_mode.py +5 -0
  177. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validate_query_response_dto.py +54 -0
  178. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validation_error_detail.py +33 -0
  179. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validation_error_detail_loc_item.py +5 -0
  180. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validation_error_response.py +20 -0
  181. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validation_report.py +43 -0
  182. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/validator_schema.py +38 -0
  183. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_dto.py +43 -0
  184. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_dto_method.py +5 -0
  185. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_payload.py +70 -0
  186. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_resource_mapping_response_dto.py +43 -0
  187. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_response_dto.py +79 -0
  188. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/types/webhook_type.py +5 -0
  189. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/version.py +3 -0
  190. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/__init__.py +61 -0
  191. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/client.py +1336 -0
  192. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/raw_client.py +2127 -0
  193. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/types/__init__.py +63 -0
  194. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/types/create_webhook_request_dto_auth.py +82 -0
  195. newscatcher_catchall_sdk-0.0.0.dev0/src/newscatcher_catchall/webhooks/types/update_webhook_request_dto_auth.py +73 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Newscatcher
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,255 @@
1
+ Metadata-Version: 2.1
2
+ Name: newscatcher-catchall-sdk
3
+ Version: 0.0.0.dev0
4
+ Summary:
5
+ License: MIT
6
+ Requires-Python: >=3.10,<4.0
7
+ Classifier: Intended Audience :: Developers
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: MacOS
10
+ Classifier: Operating System :: Microsoft :: Windows
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Operating System :: POSIX
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Programming Language :: Python :: 3.15
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Typing :: Typed
24
+ Provides-Extra: aiohttp
25
+ Requires-Dist: aiohttp (>=3.14.1,<4) ; (python_version >= "3.10") and (extra == "aiohttp")
26
+ Requires-Dist: httpx (>=0.21.2)
27
+ Requires-Dist: httpx-aiohttp (==0.1.8) ; (python_version >= "3.10") and (extra == "aiohttp")
28
+ Requires-Dist: pydantic (>=1.9.2)
29
+ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
30
+ Requires-Dist: typing_extensions (>=4.0.0)
31
+ Project-URL: Repository, https://github.com/Newscatcher/newscatcher-catchall-python
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Newscatcher Python Library
35
+
36
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FNewscatcher%2Fnewscatcher-catchall-python)
37
+ [![pypi](https://img.shields.io/pypi/v/newscatcher-catchall-sdk)](https://pypi.python.org/pypi/newscatcher-catchall-sdk)
38
+
39
+ The Newscatcher Python library provides convenient access to the Newscatcher APIs from Python.
40
+
41
+ ## Table of Contents
42
+
43
+ - [Documentation](#documentation)
44
+ - [Installation](#installation)
45
+ - [Reference](#reference)
46
+ - [Usage](#usage)
47
+ - [Environments](#environments)
48
+ - [Async Client](#async-client)
49
+ - [Exception Handling](#exception-handling)
50
+ - [Advanced](#advanced)
51
+ - [Access Raw Response Data](#access-raw-response-data)
52
+ - [Retries](#retries)
53
+ - [Timeouts](#timeouts)
54
+ - [Custom Client](#custom-client)
55
+ - [Contributing](#contributing)
56
+ - [Support](#support)
57
+
58
+ ## Documentation
59
+
60
+ API reference documentation is available [here](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/initialize-job).
61
+
62
+ ## Installation
63
+
64
+ ```sh
65
+ pip install newscatcher-catchall-sdk
66
+ ```
67
+
68
+ ## Reference
69
+
70
+ A full reference for this library is available [here](https://github.com/Newscatcher/newscatcher-catchall-python/blob/HEAD/./reference.md).
71
+
72
+ ## Usage
73
+
74
+ Instantiate and use the client with the following:
75
+
76
+ ```python
77
+ from newscatcher_catchall import CatchAllApi
78
+ import datetime
79
+
80
+ client = CatchAllApi(
81
+ api_key="<value>",
82
+ )
83
+
84
+ client.jobs.create_job(
85
+ query="Series B funding rounds for SaaS startups",
86
+ context="Focus on funding amount and company name",
87
+ limit=10,
88
+ start_date=datetime.datetime.fromisoformat("2026-02-18T00:00:00+00:00"),
89
+ end_date=datetime.datetime.fromisoformat("2026-02-23T00:00:00+00:00"),
90
+ mode="base",
91
+ )
92
+ ```
93
+
94
+ ## Environments
95
+
96
+ This SDK allows you to configure different environments for API requests.
97
+
98
+ ```python
99
+ from newscatcher_catchall import CatchAllApi
100
+ from newscatcher_catchall.environment import CatchAllApiEnvironment
101
+
102
+ client = CatchAllApi(
103
+ environment=CatchAllApiEnvironment.DEFAULT,
104
+ )
105
+ ```
106
+
107
+ ## Async Client
108
+
109
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
110
+
111
+ ```python
112
+ import asyncio
113
+ import datetime
114
+
115
+ from newscatcher_catchall import AsyncCatchAllApi
116
+
117
+ client = AsyncCatchAllApi(
118
+ api_key="<value>",
119
+ )
120
+
121
+
122
+ async def main() -> None:
123
+ await client.jobs.create_job(
124
+ query="Series B funding rounds for SaaS startups",
125
+ context="Focus on funding amount and company name",
126
+ limit=10,
127
+ start_date=datetime.datetime.fromisoformat("2026-02-18T00:00:00+00:00"),
128
+ end_date=datetime.datetime.fromisoformat("2026-02-23T00:00:00+00:00"),
129
+ mode="base",
130
+ )
131
+
132
+
133
+ asyncio.run(main())
134
+ ```
135
+
136
+ ## Exception Handling
137
+
138
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
139
+ will be thrown.
140
+
141
+ ```python
142
+ from newscatcher_catchall.core.api_error import ApiError
143
+
144
+ try:
145
+ client.jobs.create_job(...)
146
+ except ApiError as e:
147
+ print(e.status_code)
148
+ print(e.body)
149
+ ```
150
+
151
+ ## Advanced
152
+
153
+ ### Access Raw Response Data
154
+
155
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
156
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
157
+
158
+ ```python
159
+ from newscatcher_catchall import CatchAllApi
160
+
161
+ client = CatchAllApi(...)
162
+ response = client.jobs.with_raw_response.create_job(...)
163
+ print(response.headers) # access the response headers
164
+ print(response.status_code) # access the response status code
165
+ print(response.data) # access the underlying object
166
+ ```
167
+
168
+ ### Retries
169
+
170
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
171
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
172
+ retry limit (default: 2).
173
+
174
+ Which status codes are retried depends on the `retryStatusCodes` generator configuration:
175
+
176
+ **`legacy`** (current default): retries on
177
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
178
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
179
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
180
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
181
+
182
+ **`recommended`**: retries on
183
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
184
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
185
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
186
+ - [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
187
+ - [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable)
188
+ - [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout)
189
+
190
+ Use the `max_retries` request option to configure this behavior.
191
+
192
+ ```python
193
+ client.jobs.create_job(..., request_options={
194
+ "max_retries": 1
195
+ })
196
+ ```
197
+
198
+ ### Timeouts
199
+
200
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
201
+
202
+ ```python
203
+ from newscatcher_catchall import CatchAllApi
204
+
205
+ client = CatchAllApi(..., timeout=20.0)
206
+
207
+ # Override timeout for a specific method
208
+ client.jobs.create_job(..., request_options={
209
+ "timeout_in_seconds": 1
210
+ })
211
+ ```
212
+
213
+ ### Custom Client
214
+
215
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
216
+ and transports.
217
+
218
+ ```python
219
+ import httpx
220
+ from newscatcher_catchall import CatchAllApi
221
+
222
+ client = CatchAllApi(
223
+ ...,
224
+ httpx_client=httpx.Client(
225
+ proxy="http://my.test.proxy.example.com",
226
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
227
+ ),
228
+ )
229
+ ```
230
+
231
+ ## Contributing
232
+
233
+ While we value open-source contributions to this SDK, this library is generated programmatically.
234
+ Additions made directly to this library would have to be moved over to our generation code,
235
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
236
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
237
+ an issue first to discuss with us!
238
+
239
+ On the other hand, contributions to the README are always very welcome!
240
+ ## Support
241
+
242
+ - Documentation: [newscatcherapi.com/docs/web-search-api](https://www.newscatcherapi.com/docs/web-search-api/get-started/introduction)
243
+ - Support: <support@newscatcherapi.com>
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
@@ -0,0 +1,221 @@
1
+ # Newscatcher Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FNewscatcher%2Fnewscatcher-catchall-python)
4
+ [![pypi](https://img.shields.io/pypi/v/newscatcher-catchall-sdk)](https://pypi.python.org/pypi/newscatcher-catchall-sdk)
5
+
6
+ The Newscatcher Python library provides convenient access to the Newscatcher APIs from Python.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Documentation](#documentation)
11
+ - [Installation](#installation)
12
+ - [Reference](#reference)
13
+ - [Usage](#usage)
14
+ - [Environments](#environments)
15
+ - [Async Client](#async-client)
16
+ - [Exception Handling](#exception-handling)
17
+ - [Advanced](#advanced)
18
+ - [Access Raw Response Data](#access-raw-response-data)
19
+ - [Retries](#retries)
20
+ - [Timeouts](#timeouts)
21
+ - [Custom Client](#custom-client)
22
+ - [Contributing](#contributing)
23
+ - [Support](#support)
24
+
25
+ ## Documentation
26
+
27
+ API reference documentation is available [here](https://www.newscatcherapi.com/docs/web-search-api/api-reference/jobs/initialize-job).
28
+
29
+ ## Installation
30
+
31
+ ```sh
32
+ pip install newscatcher-catchall-sdk
33
+ ```
34
+
35
+ ## Reference
36
+
37
+ A full reference for this library is available [here](https://github.com/Newscatcher/newscatcher-catchall-python/blob/HEAD/./reference.md).
38
+
39
+ ## Usage
40
+
41
+ Instantiate and use the client with the following:
42
+
43
+ ```python
44
+ from newscatcher_catchall import CatchAllApi
45
+ import datetime
46
+
47
+ client = CatchAllApi(
48
+ api_key="<value>",
49
+ )
50
+
51
+ client.jobs.create_job(
52
+ query="Series B funding rounds for SaaS startups",
53
+ context="Focus on funding amount and company name",
54
+ limit=10,
55
+ start_date=datetime.datetime.fromisoformat("2026-02-18T00:00:00+00:00"),
56
+ end_date=datetime.datetime.fromisoformat("2026-02-23T00:00:00+00:00"),
57
+ mode="base",
58
+ )
59
+ ```
60
+
61
+ ## Environments
62
+
63
+ This SDK allows you to configure different environments for API requests.
64
+
65
+ ```python
66
+ from newscatcher_catchall import CatchAllApi
67
+ from newscatcher_catchall.environment import CatchAllApiEnvironment
68
+
69
+ client = CatchAllApi(
70
+ environment=CatchAllApiEnvironment.DEFAULT,
71
+ )
72
+ ```
73
+
74
+ ## Async Client
75
+
76
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
77
+
78
+ ```python
79
+ import asyncio
80
+ import datetime
81
+
82
+ from newscatcher_catchall import AsyncCatchAllApi
83
+
84
+ client = AsyncCatchAllApi(
85
+ api_key="<value>",
86
+ )
87
+
88
+
89
+ async def main() -> None:
90
+ await client.jobs.create_job(
91
+ query="Series B funding rounds for SaaS startups",
92
+ context="Focus on funding amount and company name",
93
+ limit=10,
94
+ start_date=datetime.datetime.fromisoformat("2026-02-18T00:00:00+00:00"),
95
+ end_date=datetime.datetime.fromisoformat("2026-02-23T00:00:00+00:00"),
96
+ mode="base",
97
+ )
98
+
99
+
100
+ asyncio.run(main())
101
+ ```
102
+
103
+ ## Exception Handling
104
+
105
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
106
+ will be thrown.
107
+
108
+ ```python
109
+ from newscatcher_catchall.core.api_error import ApiError
110
+
111
+ try:
112
+ client.jobs.create_job(...)
113
+ except ApiError as e:
114
+ print(e.status_code)
115
+ print(e.body)
116
+ ```
117
+
118
+ ## Advanced
119
+
120
+ ### Access Raw Response Data
121
+
122
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
123
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
124
+
125
+ ```python
126
+ from newscatcher_catchall import CatchAllApi
127
+
128
+ client = CatchAllApi(...)
129
+ response = client.jobs.with_raw_response.create_job(...)
130
+ print(response.headers) # access the response headers
131
+ print(response.status_code) # access the response status code
132
+ print(response.data) # access the underlying object
133
+ ```
134
+
135
+ ### Retries
136
+
137
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
138
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
139
+ retry limit (default: 2).
140
+
141
+ Which status codes are retried depends on the `retryStatusCodes` generator configuration:
142
+
143
+ **`legacy`** (current default): retries on
144
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
145
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
146
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
147
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
148
+
149
+ **`recommended`**: retries on
150
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
151
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
152
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
153
+ - [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
154
+ - [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable)
155
+ - [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout)
156
+
157
+ Use the `max_retries` request option to configure this behavior.
158
+
159
+ ```python
160
+ client.jobs.create_job(..., request_options={
161
+ "max_retries": 1
162
+ })
163
+ ```
164
+
165
+ ### Timeouts
166
+
167
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
168
+
169
+ ```python
170
+ from newscatcher_catchall import CatchAllApi
171
+
172
+ client = CatchAllApi(..., timeout=20.0)
173
+
174
+ # Override timeout for a specific method
175
+ client.jobs.create_job(..., request_options={
176
+ "timeout_in_seconds": 1
177
+ })
178
+ ```
179
+
180
+ ### Custom Client
181
+
182
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
183
+ and transports.
184
+
185
+ ```python
186
+ import httpx
187
+ from newscatcher_catchall import CatchAllApi
188
+
189
+ client = CatchAllApi(
190
+ ...,
191
+ httpx_client=httpx.Client(
192
+ proxy="http://my.test.proxy.example.com",
193
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
194
+ ),
195
+ )
196
+ ```
197
+
198
+ ## Contributing
199
+
200
+ While we value open-source contributions to this SDK, this library is generated programmatically.
201
+ Additions made directly to this library would have to be moved over to our generation code,
202
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
203
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
204
+ an issue first to discuss with us!
205
+
206
+ On the other hand, contributions to the README are always very welcome!
207
+ ## Support
208
+
209
+ - Documentation: [newscatcherapi.com/docs/web-search-api](https://www.newscatcherapi.com/docs/web-search-api/get-started/introduction)
210
+ - Support: <support@newscatcherapi.com>
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
@@ -0,0 +1,98 @@
1
+ [project]
2
+ name = "newscatcher-catchall-sdk"
3
+ dynamic = ["version"]
4
+
5
+ [tool.poetry]
6
+ name = "newscatcher-catchall-sdk"
7
+ version = "0.0.0.dev0"
8
+ description = ""
9
+ readme = "README.md"
10
+ authors = []
11
+ keywords = []
12
+ license = "MIT"
13
+ classifiers = [
14
+ "Intended Audience :: Developers",
15
+ "Programming Language :: Python",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: 3.14",
22
+ "Programming Language :: Python :: 3.15",
23
+ "Operating System :: OS Independent",
24
+ "Operating System :: POSIX",
25
+ "Operating System :: MacOS",
26
+ "Operating System :: POSIX :: Linux",
27
+ "Operating System :: Microsoft :: Windows",
28
+ "Topic :: Software Development :: Libraries :: Python Modules",
29
+ "Typing :: Typed",
30
+ "License :: OSI Approved :: MIT License"
31
+ ]
32
+ packages = [
33
+ { include = "newscatcher_catchall", from = "src"}
34
+ ]
35
+
36
+ [tool.poetry.urls]
37
+ Repository = 'https://github.com/Newscatcher/newscatcher-catchall-python'
38
+
39
+ [tool.poetry.dependencies]
40
+ python = "^3.10"
41
+ aiohttp = { version = ">=3.14.1,<4", optional = true, python = ">=3.10"}
42
+ httpx = ">=0.21.2"
43
+ httpx-aiohttp = { version = "0.1.8", optional = true, python = ">=3.10"}
44
+ pydantic = ">= 1.9.2"
45
+ pydantic-core = ">=2.18.2,<3.0.0"
46
+ typing_extensions = ">= 4.0.0"
47
+
48
+ [tool.poetry.group.dev.dependencies]
49
+ mypy = "==1.13.0"
50
+ pytest = "^9.0.3"
51
+ pytest-asyncio = "^1.0.0"
52
+ pytest-xdist = "^3.6.1"
53
+ python-dateutil = "^2.9.0"
54
+ types-python-dateutil = "^2.9.0.20240316"
55
+ urllib3 = ">=2.6.3,<3.0.0"
56
+ ruff = "==0.11.5"
57
+
58
+ [tool.pytest.ini_options]
59
+ testpaths = [ "tests" ]
60
+ asyncio_mode = "auto"
61
+ norecursedirs = [ "src" ]
62
+ markers = [
63
+ "aiohttp: tests that require httpx_aiohttp to be installed",
64
+ ]
65
+
66
+ [tool.mypy]
67
+ plugins = ["pydantic.mypy"]
68
+
69
+ [tool.ruff]
70
+ line-length = 120
71
+
72
+ [tool.ruff.lint]
73
+ select = [
74
+ "E", # pycodestyle errors
75
+ "F", # pyflakes
76
+ "I", # isort
77
+ ]
78
+ ignore = [
79
+ "E402", # Module level import not at top of file
80
+ "E501", # Line too long
81
+ "E711", # Comparison to `None` should be `cond is not None`
82
+ "E712", # Avoid equality comparisons to `True`; use `if ...:` checks
83
+ "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
84
+ "E722", # Do not use bare `except`
85
+ "E731", # Do not assign a `lambda` expression, use a `def`
86
+ "F821", # Undefined name
87
+ "F841" # Local variable ... is assigned to but never used
88
+ ]
89
+
90
+ [tool.ruff.lint.isort]
91
+ section-order = ["future", "standard-library", "third-party", "first-party"]
92
+
93
+ [build-system]
94
+ requires = ["poetry-core"]
95
+ build-backend = "poetry.core.masonry.api"
96
+
97
+ [tool.poetry.extras]
98
+ aiohttp=["aiohttp", "httpx-aiohttp"]