rizamo 1.0.0__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 (396) hide show
  1. rizamo-1.0.0/LICENSE +21 -0
  2. rizamo-1.0.0/PKG-INFO +242 -0
  3. rizamo-1.0.0/README.md +206 -0
  4. rizamo-1.0.0/pyproject.toml +101 -0
  5. rizamo-1.0.0/src/rizamo/__init__.py +1020 -0
  6. rizamo-1.0.0/src/rizamo/_default_clients.py +30 -0
  7. rizamo-1.0.0/src/rizamo/accounts/__init__.py +55 -0
  8. rizamo-1.0.0/src/rizamo/accounts/client.py +660 -0
  9. rizamo-1.0.0/src/rizamo/accounts/raw_client.py +2160 -0
  10. rizamo-1.0.0/src/rizamo/accounts/types/__init__.py +53 -0
  11. rizamo-1.0.0/src/rizamo/accounts/types/list_accounts_request_status.py +5 -0
  12. rizamo-1.0.0/src/rizamo/accounts/types/list_accounts_response.py +30 -0
  13. rizamo-1.0.0/src/rizamo/accounts/types/search_music_accounts_request_genre.py +119 -0
  14. rizamo-1.0.0/src/rizamo/accounts/types/search_music_accounts_request_period.py +5 -0
  15. rizamo-1.0.0/src/rizamo/accounts/types/search_music_accounts_request_type.py +5 -0
  16. rizamo-1.0.0/src/rizamo/accounts/types/search_music_accounts_response.py +20 -0
  17. rizamo-1.0.0/src/rizamo/analytics/__init__.py +52 -0
  18. rizamo-1.0.0/src/rizamo/analytics/client.py +471 -0
  19. rizamo-1.0.0/src/rizamo/analytics/raw_client.py +964 -0
  20. rizamo-1.0.0/src/rizamo/analytics/types/__init__.py +50 -0
  21. rizamo-1.0.0/src/rizamo/analytics/types/overview_analytics_request_attribution.py +5 -0
  22. rizamo-1.0.0/src/rizamo/analytics/types/overview_analytics_request_interval.py +5 -0
  23. rizamo-1.0.0/src/rizamo/analytics/types/posts_analytics_request_order.py +5 -0
  24. rizamo-1.0.0/src/rizamo/analytics/types/posts_analytics_request_sort.py +7 -0
  25. rizamo-1.0.0/src/rizamo/analytics/types/posts_analytics_response.py +39 -0
  26. rizamo-1.0.0/src/rizamo/billing/__init__.py +4 -0
  27. rizamo-1.0.0/src/rizamo/billing/client.py +100 -0
  28. rizamo-1.0.0/src/rizamo/billing/raw_client.py +215 -0
  29. rizamo-1.0.0/src/rizamo/client.py +530 -0
  30. rizamo-1.0.0/src/rizamo/comment_automations/__init__.py +82 -0
  31. rizamo-1.0.0/src/rizamo/comment_automations/client.py +999 -0
  32. rizamo-1.0.0/src/rizamo/comment_automations/raw_client.py +2552 -0
  33. rizamo-1.0.0/src/rizamo/comment_automations/types/__init__.py +80 -0
  34. rizamo-1.0.0/src/rizamo/comment_automations/types/create_comment_automations_request_follow_gate.py +32 -0
  35. rizamo-1.0.0/src/rizamo/comment_automations/types/create_comment_automations_request_match.py +5 -0
  36. rizamo-1.0.0/src/rizamo/comment_automations/types/create_comment_automations_request_message.py +36 -0
  37. rizamo-1.0.0/src/rizamo/comment_automations/types/create_comment_automations_request_status.py +5 -0
  38. rizamo-1.0.0/src/rizamo/comment_automations/types/create_comment_automations_request_utm.py +46 -0
  39. rizamo-1.0.0/src/rizamo/comment_automations/types/delete_comment_automations_response.py +19 -0
  40. rizamo-1.0.0/src/rizamo/comment_automations/types/list_comment_automations_request_status.py +5 -0
  41. rizamo-1.0.0/src/rizamo/comment_automations/types/list_comment_automations_response.py +30 -0
  42. rizamo-1.0.0/src/rizamo/comment_automations/types/runs_comment_automations_request_status.py +7 -0
  43. rizamo-1.0.0/src/rizamo/comment_automations/types/runs_comment_automations_response.py +30 -0
  44. rizamo-1.0.0/src/rizamo/comment_automations/types/update_comment_automations_request_follow_gate.py +32 -0
  45. rizamo-1.0.0/src/rizamo/comment_automations/types/update_comment_automations_request_match.py +5 -0
  46. rizamo-1.0.0/src/rizamo/comment_automations/types/update_comment_automations_request_message.py +36 -0
  47. rizamo-1.0.0/src/rizamo/comment_automations/types/update_comment_automations_request_status.py +5 -0
  48. rizamo-1.0.0/src/rizamo/comment_automations/types/update_comment_automations_request_utm.py +46 -0
  49. rizamo-1.0.0/src/rizamo/connect/__init__.py +34 -0
  50. rizamo-1.0.0/src/rizamo/connect/client.py +177 -0
  51. rizamo-1.0.0/src/rizamo/connect/raw_client.py +329 -0
  52. rizamo-1.0.0/src/rizamo/connect/types/__init__.py +34 -0
  53. rizamo-1.0.0/src/rizamo/connect/types/link_connect_request_network.py +7 -0
  54. rizamo-1.0.0/src/rizamo/core/__init__.py +132 -0
  55. rizamo-1.0.0/src/rizamo/core/api_error.py +23 -0
  56. rizamo-1.0.0/src/rizamo/core/client_wrapper.py +148 -0
  57. rizamo-1.0.0/src/rizamo/core/datetime_utils.py +70 -0
  58. rizamo-1.0.0/src/rizamo/core/file.py +96 -0
  59. rizamo-1.0.0/src/rizamo/core/force_multipart.py +18 -0
  60. rizamo-1.0.0/src/rizamo/core/http_client.py +1047 -0
  61. rizamo-1.0.0/src/rizamo/core/http_response.py +63 -0
  62. rizamo-1.0.0/src/rizamo/core/http_sse/__init__.py +42 -0
  63. rizamo-1.0.0/src/rizamo/core/http_sse/_api.py +480 -0
  64. rizamo-1.0.0/src/rizamo/core/http_sse/_decoders.py +99 -0
  65. rizamo-1.0.0/src/rizamo/core/http_sse/_exceptions.py +32 -0
  66. rizamo-1.0.0/src/rizamo/core/http_sse/_models.py +42 -0
  67. rizamo-1.0.0/src/rizamo/core/jsonable_encoder.py +170 -0
  68. rizamo-1.0.0/src/rizamo/core/logging.py +107 -0
  69. rizamo-1.0.0/src/rizamo/core/pagination.py +165 -0
  70. rizamo-1.0.0/src/rizamo/core/parse_error.py +36 -0
  71. rizamo-1.0.0/src/rizamo/core/pydantic_utilities.py +540 -0
  72. rizamo-1.0.0/src/rizamo/core/query_encoder.py +58 -0
  73. rizamo-1.0.0/src/rizamo/core/remove_none_from_dict.py +11 -0
  74. rizamo-1.0.0/src/rizamo/core/request_options.py +43 -0
  75. rizamo-1.0.0/src/rizamo/core/serialization.py +347 -0
  76. rizamo-1.0.0/src/rizamo/environment.py +7 -0
  77. rizamo-1.0.0/src/rizamo/errors/__init__.py +74 -0
  78. rizamo-1.0.0/src/rizamo/errors/bad_gateway_error.py +11 -0
  79. rizamo-1.0.0/src/rizamo/errors/bad_request_error.py +11 -0
  80. rizamo-1.0.0/src/rizamo/errors/conflict_error.py +11 -0
  81. rizamo-1.0.0/src/rizamo/errors/content_too_large_error.py +11 -0
  82. rizamo-1.0.0/src/rizamo/errors/forbidden_error.py +11 -0
  83. rizamo-1.0.0/src/rizamo/errors/internal_server_error.py +11 -0
  84. rizamo-1.0.0/src/rizamo/errors/not_found_error.py +11 -0
  85. rizamo-1.0.0/src/rizamo/errors/not_implemented_error.py +11 -0
  86. rizamo-1.0.0/src/rizamo/errors/service_unavailable_error.py +11 -0
  87. rizamo-1.0.0/src/rizamo/errors/too_many_requests_error.py +11 -0
  88. rizamo-1.0.0/src/rizamo/errors/unauthorized_error.py +11 -0
  89. rizamo-1.0.0/src/rizamo/errors/unprocessable_entity_error.py +11 -0
  90. rizamo-1.0.0/src/rizamo/errors/unsupported_media_type_error.py +11 -0
  91. rizamo-1.0.0/src/rizamo/events/__init__.py +34 -0
  92. rizamo-1.0.0/src/rizamo/events/client.py +189 -0
  93. rizamo-1.0.0/src/rizamo/events/raw_client.py +341 -0
  94. rizamo-1.0.0/src/rizamo/events/types/__init__.py +34 -0
  95. rizamo-1.0.0/src/rizamo/events/types/list_events_response.py +30 -0
  96. rizamo-1.0.0/src/rizamo/fields/__init__.py +52 -0
  97. rizamo-1.0.0/src/rizamo/fields/client.py +458 -0
  98. rizamo-1.0.0/src/rizamo/fields/raw_client.py +1324 -0
  99. rizamo-1.0.0/src/rizamo/fields/types/__init__.py +50 -0
  100. rizamo-1.0.0/src/rizamo/fields/types/create_fields_request_entity.py +5 -0
  101. rizamo-1.0.0/src/rizamo/fields/types/create_fields_request_type.py +7 -0
  102. rizamo-1.0.0/src/rizamo/fields/types/delete_fields_response.py +19 -0
  103. rizamo-1.0.0/src/rizamo/fields/types/list_fields_request_entity.py +5 -0
  104. rizamo-1.0.0/src/rizamo/fields/types/list_fields_response.py +20 -0
  105. rizamo-1.0.0/src/rizamo/inbox/__init__.py +61 -0
  106. rizamo-1.0.0/src/rizamo/inbox/client.py +1018 -0
  107. rizamo-1.0.0/src/rizamo/inbox/raw_client.py +3125 -0
  108. rizamo-1.0.0/src/rizamo/inbox/types/__init__.py +59 -0
  109. rizamo-1.0.0/src/rizamo/inbox/types/delete_comment_inbox_response.py +36 -0
  110. rizamo-1.0.0/src/rizamo/inbox/types/get_inbox_response.py +35 -0
  111. rizamo-1.0.0/src/rizamo/inbox/types/list_inbox_request_kind.py +5 -0
  112. rizamo-1.0.0/src/rizamo/inbox/types/list_inbox_request_status.py +5 -0
  113. rizamo-1.0.0/src/rizamo/inbox/types/list_inbox_response.py +30 -0
  114. rizamo-1.0.0/src/rizamo/inbox/types/mark_post_done_inbox_response.py +31 -0
  115. rizamo-1.0.0/src/rizamo/inbox/types/posts_inbox_response.py +30 -0
  116. rizamo-1.0.0/src/rizamo/inbox/types/update_inbox_request_status.py +5 -0
  117. rizamo-1.0.0/src/rizamo/links/__init__.py +58 -0
  118. rizamo-1.0.0/src/rizamo/links/client.py +568 -0
  119. rizamo-1.0.0/src/rizamo/links/raw_client.py +1650 -0
  120. rizamo-1.0.0/src/rizamo/links/types/__init__.py +56 -0
  121. rizamo-1.0.0/src/rizamo/links/types/create_links_request_utm.py +46 -0
  122. rizamo-1.0.0/src/rizamo/links/types/delete_links_response.py +19 -0
  123. rizamo-1.0.0/src/rizamo/links/types/get_links_response.py +103 -0
  124. rizamo-1.0.0/src/rizamo/links/types/get_links_response_source.py +25 -0
  125. rizamo-1.0.0/src/rizamo/links/types/get_links_response_source_type.py +5 -0
  126. rizamo-1.0.0/src/rizamo/links/types/list_links_request_source_type.py +5 -0
  127. rizamo-1.0.0/src/rizamo/links/types/list_links_response.py +30 -0
  128. rizamo-1.0.0/src/rizamo/media/__init__.py +58 -0
  129. rizamo-1.0.0/src/rizamo/media/client.py +255 -0
  130. rizamo-1.0.0/src/rizamo/media/raw_client.py +704 -0
  131. rizamo-1.0.0/src/rizamo/media/types/__init__.py +56 -0
  132. rizamo-1.0.0/src/rizamo/media/types/create_media_request_content_type.py +8 -0
  133. rizamo-1.0.0/src/rizamo/media/types/create_media_response.py +22 -0
  134. rizamo-1.0.0/src/rizamo/media/types/create_media_response_upload.py +36 -0
  135. rizamo-1.0.0/src/rizamo/media/types/create_media_response_upload_complete.py +21 -0
  136. rizamo-1.0.0/src/rizamo/media/types/create_media_response_upload_complete_method.py +5 -0
  137. rizamo-1.0.0/src/rizamo/media/types/create_media_response_upload_parts_item.py +23 -0
  138. rizamo-1.0.0/src/rizamo/media/types/create_media_response_upload_parts_item_method.py +5 -0
  139. rizamo-1.0.0/src/rizamo/members/__init__.py +34 -0
  140. rizamo-1.0.0/src/rizamo/members/client.py +100 -0
  141. rizamo-1.0.0/src/rizamo/members/raw_client.py +217 -0
  142. rizamo-1.0.0/src/rizamo/members/types/__init__.py +34 -0
  143. rizamo-1.0.0/src/rizamo/members/types/list_members_response.py +20 -0
  144. rizamo-1.0.0/src/rizamo/network_posts/__init__.py +38 -0
  145. rizamo-1.0.0/src/rizamo/network_posts/client.py +380 -0
  146. rizamo-1.0.0/src/rizamo/network_posts/raw_client.py +903 -0
  147. rizamo-1.0.0/src/rizamo/network_posts/types/__init__.py +40 -0
  148. rizamo-1.0.0/src/rizamo/network_posts/types/list_network_posts_request_deleted.py +5 -0
  149. rizamo-1.0.0/src/rizamo/network_posts/types/list_network_posts_request_origin.py +5 -0
  150. rizamo-1.0.0/src/rizamo/network_posts/types/list_network_posts_response.py +30 -0
  151. rizamo-1.0.0/src/rizamo/posts/__init__.py +112 -0
  152. rizamo-1.0.0/src/rizamo/posts/client.py +1389 -0
  153. rizamo-1.0.0/src/rizamo/posts/raw_client.py +3775 -0
  154. rizamo-1.0.0/src/rizamo/posts/types/__init__.py +110 -0
  155. rizamo-1.0.0/src/rizamo/posts/types/create_posts_request_chain_item.py +32 -0
  156. rizamo-1.0.0/src/rizamo/posts/types/create_posts_request_fields_value.py +5 -0
  157. rizamo-1.0.0/src/rizamo/posts/types/create_posts_request_status.py +5 -0
  158. rizamo-1.0.0/src/rizamo/posts/types/create_posts_request_targets_item.py +68 -0
  159. rizamo-1.0.0/src/rizamo/posts/types/create_posts_request_targets_item_chain_item.py +32 -0
  160. rizamo-1.0.0/src/rizamo/posts/types/list_posts_request_deleted.py +5 -0
  161. rizamo-1.0.0/src/rizamo/posts/types/list_posts_request_order.py +5 -0
  162. rizamo-1.0.0/src/rizamo/posts/types/list_posts_response.py +30 -0
  163. rizamo-1.0.0/src/rizamo/posts/types/share_posts_response.py +29 -0
  164. rizamo-1.0.0/src/rizamo/posts/types/update_posts_request_chain_item.py +32 -0
  165. rizamo-1.0.0/src/rizamo/posts/types/update_posts_request_fields_value.py +5 -0
  166. rizamo-1.0.0/src/rizamo/posts/types/update_posts_request_status.py +5 -0
  167. rizamo-1.0.0/src/rizamo/posts/types/update_posts_request_targets_item.py +68 -0
  168. rizamo-1.0.0/src/rizamo/posts/types/update_posts_request_targets_item_chain_item.py +32 -0
  169. rizamo-1.0.0/src/rizamo/posts/types/update_posts_response.py +88 -0
  170. rizamo-1.0.0/src/rizamo/posts/types/update_posts_response_fields_value.py +5 -0
  171. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_request_chain_item.py +32 -0
  172. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_request_fields_value.py +5 -0
  173. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_request_status.py +5 -0
  174. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_request_targets_item.py +68 -0
  175. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_request_targets_item_chain_item.py +32 -0
  176. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_response.py +43 -0
  177. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_response_problems_item.py +24 -0
  178. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_response_targets_item.py +27 -0
  179. rizamo-1.0.0/src/rizamo/posts/types/validate_posts_response_warnings_item.py +24 -0
  180. rizamo-1.0.0/src/rizamo/profiles/__init__.py +34 -0
  181. rizamo-1.0.0/src/rizamo/profiles/client.py +593 -0
  182. rizamo-1.0.0/src/rizamo/profiles/raw_client.py +1834 -0
  183. rizamo-1.0.0/src/rizamo/profiles/types/__init__.py +38 -0
  184. rizamo-1.0.0/src/rizamo/profiles/types/delete_profiles_response.py +19 -0
  185. rizamo-1.0.0/src/rizamo/profiles/types/list_profiles_response.py +20 -0
  186. rizamo-1.0.0/src/rizamo/py.typed +0 -0
  187. rizamo-1.0.0/src/rizamo/types/__init__.py +623 -0
  188. rizamo-1.0.0/src/rizamo/types/account.py +83 -0
  189. rizamo-1.0.0/src/rizamo/types/account_audience.py +62 -0
  190. rizamo-1.0.0/src/rizamo/types/account_billing.py +5 -0
  191. rizamo-1.0.0/src/rizamo/types/account_removal.py +23 -0
  192. rizamo-1.0.0/src/rizamo/types/account_removal_posts.py +34 -0
  193. rizamo-1.0.0/src/rizamo/types/account_removal_posts_drafts.py +36 -0
  194. rizamo-1.0.0/src/rizamo/types/account_removal_posts_failed.py +36 -0
  195. rizamo-1.0.0/src/rizamo/types/account_removal_posts_published.py +40 -0
  196. rizamo-1.0.0/src/rizamo/types/account_removal_posts_scheduled.py +36 -0
  197. rizamo-1.0.0/src/rizamo/types/account_removed.py +25 -0
  198. rizamo-1.0.0/src/rizamo/types/account_removed_posts.py +34 -0
  199. rizamo-1.0.0/src/rizamo/types/account_removed_posts_drafts.py +36 -0
  200. rizamo-1.0.0/src/rizamo/types/account_removed_posts_failed.py +36 -0
  201. rizamo-1.0.0/src/rizamo/types/account_removed_posts_published.py +40 -0
  202. rizamo-1.0.0/src/rizamo/types/account_removed_posts_scheduled.py +36 -0
  203. rizamo-1.0.0/src/rizamo/types/account_status.py +5 -0
  204. rizamo-1.0.0/src/rizamo/types/active_hours.py +33 -0
  205. rizamo-1.0.0/src/rizamo/types/active_hours_hours_item.py +27 -0
  206. rizamo-1.0.0/src/rizamo/types/actor.py +10 -0
  207. rizamo-1.0.0/src/rizamo/types/actor_agent.py +40 -0
  208. rizamo-1.0.0/src/rizamo/types/actor_agent_agent.py +20 -0
  209. rizamo-1.0.0/src/rizamo/types/actor_agent_on_behalf_of.py +26 -0
  210. rizamo-1.0.0/src/rizamo/types/actor_agent_type.py +5 -0
  211. rizamo-1.0.0/src/rizamo/types/actor_automation_id.py +26 -0
  212. rizamo-1.0.0/src/rizamo/types/actor_automation_id_type.py +5 -0
  213. rizamo-1.0.0/src/rizamo/types/actor_initials.py +25 -0
  214. rizamo-1.0.0/src/rizamo/types/actor_initials_type.py +5 -0
  215. rizamo-1.0.0/src/rizamo/types/actor_key_id.py +24 -0
  216. rizamo-1.0.0/src/rizamo/types/actor_key_id_type.py +5 -0
  217. rizamo-1.0.0/src/rizamo/types/analytics_note.py +35 -0
  218. rizamo-1.0.0/src/rizamo/types/analytics_overview.py +105 -0
  219. rizamo-1.0.0/src/rizamo/types/analytics_overview_attribution.py +5 -0
  220. rizamo-1.0.0/src/rizamo/types/analytics_overview_by_network_item.py +65 -0
  221. rizamo-1.0.0/src/rizamo/types/analytics_overview_combined_item.py +32 -0
  222. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis.py +62 -0
  223. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_engagement_rate.py +27 -0
  224. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_engagements.py +27 -0
  225. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_followers.py +36 -0
  226. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_posts.py +27 -0
  227. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_reach.py +27 -0
  228. rizamo-1.0.0/src/rizamo/types/analytics_overview_kpis_views.py +27 -0
  229. rizamo-1.0.0/src/rizamo/types/analytics_overview_previous.py +27 -0
  230. rizamo-1.0.0/src/rizamo/types/analytics_overview_series_item.py +82 -0
  231. rizamo-1.0.0/src/rizamo/types/analytics_overview_series_item_by_network_item.py +29 -0
  232. rizamo-1.0.0/src/rizamo/types/audience.py +23 -0
  233. rizamo-1.0.0/src/rizamo/types/audience_breakdowns.py +63 -0
  234. rizamo-1.0.0/src/rizamo/types/audience_share.py +32 -0
  235. rizamo-1.0.0/src/rizamo/types/billing.py +64 -0
  236. rizamo-1.0.0/src/rizamo/types/billing_accounts.py +39 -0
  237. rizamo-1.0.0/src/rizamo/types/billing_action.py +5 -0
  238. rizamo-1.0.0/src/rizamo/types/billing_api_cap.py +31 -0
  239. rizamo-1.0.0/src/rizamo/types/billing_interval.py +5 -0
  240. rizamo-1.0.0/src/rizamo/types/billing_price.py +56 -0
  241. rizamo-1.0.0/src/rizamo/types/billing_price_currency.py +5 -0
  242. rizamo-1.0.0/src/rizamo/types/billing_status.py +5 -0
  243. rizamo-1.0.0/src/rizamo/types/capability.py +19 -0
  244. rizamo-1.0.0/src/rizamo/types/chain_part.py +24 -0
  245. rizamo-1.0.0/src/rizamo/types/chain_part_result.py +26 -0
  246. rizamo-1.0.0/src/rizamo/types/chain_part_result_status.py +5 -0
  247. rizamo-1.0.0/src/rizamo/types/comment_automation.py +156 -0
  248. rizamo-1.0.0/src/rizamo/types/comment_automation_follow_gate.py +32 -0
  249. rizamo-1.0.0/src/rizamo/types/comment_automation_links_item.py +45 -0
  250. rizamo-1.0.0/src/rizamo/types/comment_automation_match.py +5 -0
  251. rizamo-1.0.0/src/rizamo/types/comment_automation_message.py +32 -0
  252. rizamo-1.0.0/src/rizamo/types/comment_automation_run.py +116 -0
  253. rizamo-1.0.0/src/rizamo/types/comment_automation_run_commenter.py +20 -0
  254. rizamo-1.0.0/src/rizamo/types/comment_automation_run_follow_gate.py +5 -0
  255. rizamo-1.0.0/src/rizamo/types/comment_automation_run_reason.py +7 -0
  256. rizamo-1.0.0/src/rizamo/types/comment_automation_run_status.py +7 -0
  257. rizamo-1.0.0/src/rizamo/types/comment_automation_stats.py +98 -0
  258. rizamo-1.0.0/src/rizamo/types/comment_automation_stats_failures_item.py +25 -0
  259. rizamo-1.0.0/src/rizamo/types/comment_automation_stats_failures_item_reason.py +7 -0
  260. rizamo-1.0.0/src/rizamo/types/comment_automation_stats_follow_gate.py +34 -0
  261. rizamo-1.0.0/src/rizamo/types/comment_automation_status.py +5 -0
  262. rizamo-1.0.0/src/rizamo/types/comment_automation_test.py +73 -0
  263. rizamo-1.0.0/src/rizamo/types/comment_automation_test_after_follow.py +24 -0
  264. rizamo-1.0.0/src/rizamo/types/comment_automation_test_after_follow_button.py +23 -0
  265. rizamo-1.0.0/src/rizamo/types/comment_automation_test_private_reply.py +24 -0
  266. rizamo-1.0.0/src/rizamo/types/comment_automation_test_private_reply_button.py +23 -0
  267. rizamo-1.0.0/src/rizamo/types/comment_automation_test_reminder.py +24 -0
  268. rizamo-1.0.0/src/rizamo/types/comment_automation_test_reminder_button.py +23 -0
  269. rizamo-1.0.0/src/rizamo/types/comment_automation_utm.py +46 -0
  270. rizamo-1.0.0/src/rizamo/types/connect_link.py +40 -0
  271. rizamo-1.0.0/src/rizamo/types/connect_link_profile.py +20 -0
  272. rizamo-1.0.0/src/rizamo/types/contact.py +35 -0
  273. rizamo-1.0.0/src/rizamo/types/details_at.py +9 -0
  274. rizamo-1.0.0/src/rizamo/types/error.py +37 -0
  275. rizamo-1.0.0/src/rizamo/types/error_error.py +28 -0
  276. rizamo-1.0.0/src/rizamo/types/error_error_code.py +27 -0
  277. rizamo-1.0.0/src/rizamo/types/event.py +40 -0
  278. rizamo-1.0.0/src/rizamo/types/event_resource.py +21 -0
  279. rizamo-1.0.0/src/rizamo/types/event_resource_type.py +5 -0
  280. rizamo-1.0.0/src/rizamo/types/event_type.py +31 -0
  281. rizamo-1.0.0/src/rizamo/types/field_definition.py +26 -0
  282. rizamo-1.0.0/src/rizamo/types/field_definition_entity.py +5 -0
  283. rizamo-1.0.0/src/rizamo/types/field_definition_type.py +7 -0
  284. rizamo-1.0.0/src/rizamo/types/inbox_post.py +46 -0
  285. rizamo-1.0.0/src/rizamo/types/kpi.py +23 -0
  286. rizamo-1.0.0/src/rizamo/types/link.py +101 -0
  287. rizamo-1.0.0/src/rizamo/types/link_source.py +25 -0
  288. rizamo-1.0.0/src/rizamo/types/link_source_type.py +5 -0
  289. rizamo-1.0.0/src/rizamo/types/link_stats.py +29 -0
  290. rizamo-1.0.0/src/rizamo/types/link_stats_countries_item.py +20 -0
  291. rizamo-1.0.0/src/rizamo/types/link_stats_days_item.py +21 -0
  292. rizamo-1.0.0/src/rizamo/types/media.py +74 -0
  293. rizamo-1.0.0/src/rizamo/types/media_change.py +28 -0
  294. rizamo-1.0.0/src/rizamo/types/media_change_kinds_item.py +7 -0
  295. rizamo-1.0.0/src/rizamo/types/media_status.py +5 -0
  296. rizamo-1.0.0/src/rizamo/types/media_type.py +5 -0
  297. rizamo-1.0.0/src/rizamo/types/message.py +73 -0
  298. rizamo-1.0.0/src/rizamo/types/message_delivery.py +5 -0
  299. rizamo-1.0.0/src/rizamo/types/message_direction.py +5 -0
  300. rizamo-1.0.0/src/rizamo/types/music_track.py +76 -0
  301. rizamo-1.0.0/src/rizamo/types/music_track_kind.py +5 -0
  302. rizamo-1.0.0/src/rizamo/types/network.py +8 -0
  303. rizamo-1.0.0/src/rizamo/types/network_post.py +132 -0
  304. rizamo-1.0.0/src/rizamo/types/network_post_metrics_final.py +5 -0
  305. rizamo-1.0.0/src/rizamo/types/network_post_origin.py +5 -0
  306. rizamo-1.0.0/src/rizamo/types/network_post_timeline.py +43 -0
  307. rizamo-1.0.0/src/rizamo/types/network_post_timeline_gaps_item.py +24 -0
  308. rizamo-1.0.0/src/rizamo/types/network_post_timeline_points_item.py +60 -0
  309. rizamo-1.0.0/src/rizamo/types/network_post_timeline_points_item_source.py +5 -0
  310. rizamo-1.0.0/src/rizamo/types/post.py +82 -0
  311. rizamo-1.0.0/src/rizamo/types/post_details.py +60 -0
  312. rizamo-1.0.0/src/rizamo/types/post_details_retention.py +33 -0
  313. rizamo-1.0.0/src/rizamo/types/post_details_retention_points_item.py +23 -0
  314. rizamo-1.0.0/src/rizamo/types/post_details_retention_unit.py +5 -0
  315. rizamo-1.0.0/src/rizamo/types/post_details_traffic_sources_item.py +32 -0
  316. rizamo-1.0.0/src/rizamo/types/post_details_viewer_types_item.py +33 -0
  317. rizamo-1.0.0/src/rizamo/types/post_details_viewer_types_item_type.py +7 -0
  318. rizamo-1.0.0/src/rizamo/types/post_fields_value.py +5 -0
  319. rizamo-1.0.0/src/rizamo/types/post_format.py +7 -0
  320. rizamo-1.0.0/src/rizamo/types/post_metrics.py +78 -0
  321. rizamo-1.0.0/src/rizamo/types/post_result.py +142 -0
  322. rizamo-1.0.0/src/rizamo/types/post_status.py +7 -0
  323. rizamo-1.0.0/src/rizamo/types/post_target.py +105 -0
  324. rizamo-1.0.0/src/rizamo/types/post_target_account_removed.py +25 -0
  325. rizamo-1.0.0/src/rizamo/types/post_target_format.py +7 -0
  326. rizamo-1.0.0/src/rizamo/types/post_target_removal.py +5 -0
  327. rizamo-1.0.0/src/rizamo/types/post_target_status.py +5 -0
  328. rizamo-1.0.0/src/rizamo/types/profile.py +35 -0
  329. rizamo-1.0.0/src/rizamo/types/queue.py +47 -0
  330. rizamo-1.0.0/src/rizamo/types/queue_next_item.py +33 -0
  331. rizamo-1.0.0/src/rizamo/types/queue_posts_item.py +28 -0
  332. rizamo-1.0.0/src/rizamo/types/queue_slot.py +24 -0
  333. rizamo-1.0.0/src/rizamo/types/queue_slot_weekday.py +5 -0
  334. rizamo-1.0.0/src/rizamo/types/target_edit.py +33 -0
  335. rizamo-1.0.0/src/rizamo/types/target_edit_result.py +5 -0
  336. rizamo-1.0.0/src/rizamo/types/target_options.py +36 -0
  337. rizamo-1.0.0/src/rizamo/types/target_options_facebook.py +61 -0
  338. rizamo-1.0.0/src/rizamo/types/target_options_facebook_call_to_action.py +27 -0
  339. rizamo-1.0.0/src/rizamo/types/target_options_facebook_call_to_action_type.py +18 -0
  340. rizamo-1.0.0/src/rizamo/types/target_options_instagram.py +119 -0
  341. rizamo-1.0.0/src/rizamo/types/target_options_instagram_fit.py +5 -0
  342. rizamo-1.0.0/src/rizamo/types/target_options_instagram_music.py +49 -0
  343. rizamo-1.0.0/src/rizamo/types/target_options_instagram_trial_reel.py +5 -0
  344. rizamo-1.0.0/src/rizamo/types/target_options_instagram_user_tags_item.py +45 -0
  345. rizamo-1.0.0/src/rizamo/types/target_options_linkedin.py +94 -0
  346. rizamo-1.0.0/src/rizamo/types/target_options_linkedin_call_to_action.py +27 -0
  347. rizamo-1.0.0/src/rizamo/types/target_options_linkedin_call_to_action_label.py +22 -0
  348. rizamo-1.0.0/src/rizamo/types/target_options_linkedin_poll.py +36 -0
  349. rizamo-1.0.0/src/rizamo/types/target_options_linkedin_visibility.py +5 -0
  350. rizamo-1.0.0/src/rizamo/types/target_options_pinterest.py +25 -0
  351. rizamo-1.0.0/src/rizamo/types/target_options_threads.py +86 -0
  352. rizamo-1.0.0/src/rizamo/types/target_options_threads_poll.py +26 -0
  353. rizamo-1.0.0/src/rizamo/types/target_options_threads_reply_control.py +8 -0
  354. rizamo-1.0.0/src/rizamo/types/target_options_tiktok.py +168 -0
  355. rizamo-1.0.0/src/rizamo/types/target_options_tiktok_music.py +72 -0
  356. rizamo-1.0.0/src/rizamo/types/target_options_tiktok_privacy_level.py +7 -0
  357. rizamo-1.0.0/src/rizamo/types/target_options_youtube.py +119 -0
  358. rizamo-1.0.0/src/rizamo/types/target_options_youtube_license.py +5 -0
  359. rizamo-1.0.0/src/rizamo/types/target_options_youtube_privacy.py +5 -0
  360. rizamo-1.0.0/src/rizamo/types/teammate.py +43 -0
  361. rizamo-1.0.0/src/rizamo/types/teammate_role.py +5 -0
  362. rizamo-1.0.0/src/rizamo/types/thread.py +92 -0
  363. rizamo-1.0.0/src/rizamo/types/thread_kind.py +5 -0
  364. rizamo-1.0.0/src/rizamo/types/thread_sentiment.py +5 -0
  365. rizamo-1.0.0/src/rizamo/types/thread_status.py +5 -0
  366. rizamo-1.0.0/src/rizamo/types/tik_tok_creator_info.py +85 -0
  367. rizamo-1.0.0/src/rizamo/types/tik_tok_creator_info_privacy_levels_item.py +7 -0
  368. rizamo-1.0.0/src/rizamo/types/upload_request.py +56 -0
  369. rizamo-1.0.0/src/rizamo/types/upload_request_status.py +5 -0
  370. rizamo-1.0.0/src/rizamo/types/webhook_attempt.py +42 -0
  371. rizamo-1.0.0/src/rizamo/types/webhook_attempt_error.py +17 -0
  372. rizamo-1.0.0/src/rizamo/types/webhook_delivery.py +71 -0
  373. rizamo-1.0.0/src/rizamo/types/webhook_delivery_event.py +8 -0
  374. rizamo-1.0.0/src/rizamo/types/webhook_delivery_event_one.py +5 -0
  375. rizamo-1.0.0/src/rizamo/types/webhook_delivery_status.py +5 -0
  376. rizamo-1.0.0/src/rizamo/types/webhook_endpoint.py +137 -0
  377. rizamo-1.0.0/src/rizamo/types/webhook_endpoint_breaker.py +5 -0
  378. rizamo-1.0.0/src/rizamo/types/webhook_endpoint_disabled_reason.py +7 -0
  379. rizamo-1.0.0/src/rizamo/types/webhook_endpoint_on_behalf_of.py +22 -0
  380. rizamo-1.0.0/src/rizamo/types/webhook_endpoint_status.py +5 -0
  381. rizamo-1.0.0/src/rizamo/types/webhook_event_type.py +31 -0
  382. rizamo-1.0.0/src/rizamo/types/webhook_replay.py +46 -0
  383. rizamo-1.0.0/src/rizamo/types/webhook_secret.py +24 -0
  384. rizamo-1.0.0/src/rizamo/uploads/__init__.py +4 -0
  385. rizamo-1.0.0/src/rizamo/uploads/client.py +231 -0
  386. rizamo-1.0.0/src/rizamo/uploads/raw_client.py +659 -0
  387. rizamo-1.0.0/src/rizamo/version.py +3 -0
  388. rizamo-1.0.0/src/rizamo/webhooks/__init__.py +52 -0
  389. rizamo-1.0.0/src/rizamo/webhooks/client.py +970 -0
  390. rizamo-1.0.0/src/rizamo/webhooks/raw_client.py +3027 -0
  391. rizamo-1.0.0/src/rizamo/webhooks/types/__init__.py +50 -0
  392. rizamo-1.0.0/src/rizamo/webhooks/types/delete_webhooks_response.py +19 -0
  393. rizamo-1.0.0/src/rizamo/webhooks/types/deliveries_webhooks_request_status.py +5 -0
  394. rizamo-1.0.0/src/rizamo/webhooks/types/deliveries_webhooks_response.py +30 -0
  395. rizamo-1.0.0/src/rizamo/webhooks/types/list_webhooks_response.py +20 -0
  396. rizamo-1.0.0/src/rizamo/webhooks/types/replay_range_webhooks_request_status.py +5 -0
rizamo-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rizamo.
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.
rizamo-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,242 @@
1
+ Metadata-Version: 2.1
2
+ Name: rizamo
3
+ Version: 1.0.0
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) ; extra == "aiohttp"
26
+ Requires-Dist: httpx (>=0.21.2)
27
+ Requires-Dist: httpx-aiohttp (>=0.1.8,<0.2.0) ; 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: Documentation, https://docs.rizamo.com
32
+ Project-URL: Homepage, https://rizamo.com
33
+ Project-URL: Repository, https://github.com/rizamohq/rizamo-python
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Rizamo Python Library
37
+
38
+ [![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=Rizamo%2FPython)
39
+ [![pypi](https://img.shields.io/pypi/v/rizamo)](https://pypi.python.org/pypi/rizamo)
40
+
41
+ The Rizamo Python library provides convenient access to the Rizamo APIs from Python.
42
+
43
+ ## Table of Contents
44
+
45
+ - [Installation](#installation)
46
+ - [Reference](#reference)
47
+ - [Usage](#usage)
48
+ - [Environments](#environments)
49
+ - [Async Client](#async-client)
50
+ - [Exception Handling](#exception-handling)
51
+ - [Pagination](#pagination)
52
+ - [Advanced](#advanced)
53
+ - [Access Raw Response Data](#access-raw-response-data)
54
+ - [Retries](#retries)
55
+ - [Timeouts](#timeouts)
56
+ - [Custom Client](#custom-client)
57
+ - [Contributing](#contributing)
58
+
59
+ ## Installation
60
+
61
+ ```sh
62
+ pip install rizamo
63
+ ```
64
+
65
+ ## Reference
66
+
67
+ A full reference for this library is available [here](./reference.md).
68
+
69
+ ## Usage
70
+
71
+ Instantiate and use the client with the following:
72
+
73
+ ```python
74
+ from rizamo import Rizamo
75
+
76
+ client = Rizamo(
77
+ api_key="<token>",
78
+ )
79
+
80
+ client.profiles.create(
81
+ name="Bloom Studio",
82
+ time_zone="Europe/Lisbon",
83
+ )
84
+ ```
85
+
86
+ ## Environments
87
+
88
+ This SDK allows you to configure different environments for API requests.
89
+
90
+ ```python
91
+ from rizamo import Rizamo
92
+ from rizamo.environment import RizamoEnvironment
93
+
94
+ client = Rizamo(
95
+ environment=RizamoEnvironment.PRODUCTION,
96
+ )
97
+ ```
98
+
99
+ ## Async Client
100
+
101
+ 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).
102
+
103
+ ```python
104
+ import asyncio
105
+
106
+ from rizamo import AsyncRizamo
107
+
108
+ client = AsyncRizamo(
109
+ api_key="<token>",
110
+ )
111
+
112
+
113
+ async def main() -> None:
114
+ await client.profiles.create(
115
+ name="Bloom Studio",
116
+ time_zone="Europe/Lisbon",
117
+ )
118
+
119
+
120
+ asyncio.run(main())
121
+ ```
122
+
123
+ ## Exception Handling
124
+
125
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
126
+ will be thrown.
127
+
128
+ ```python
129
+ from rizamo.core.api_error import ApiError
130
+
131
+ try:
132
+ client.profiles.create(...)
133
+ except ApiError as e:
134
+ print(e.status_code)
135
+ print(e.body)
136
+ ```
137
+
138
+ ## Pagination
139
+
140
+ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
141
+
142
+ ```python
143
+ from rizamo import Rizamo
144
+
145
+ client = Rizamo(
146
+ api_key="<token>",
147
+ )
148
+
149
+ client.accounts.list(
150
+ profile_id="prof_01m40k9k80fxd8cvng8derm7g9",
151
+ )
152
+ ```
153
+
154
+ ```python
155
+ # You can also iterate through pages and access the typed response per page
156
+ pager = client.accounts.list(...)
157
+ for page in pager.iter_pages():
158
+ print(page.response) # access the typed response for each page
159
+ for item in page:
160
+ print(item)
161
+ ```
162
+
163
+ ## Advanced
164
+
165
+ ### Access Raw Response Data
166
+
167
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
168
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
169
+
170
+ ```python
171
+ from rizamo import Rizamo
172
+
173
+ client = Rizamo(...)
174
+ response = client.profiles.with_raw_response.create(...)
175
+ print(response.headers) # access the response headers
176
+ print(response.status_code) # access the response status code
177
+ print(response.data) # access the underlying object
178
+ ```
179
+
180
+ ### Retries
181
+
182
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
183
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
184
+ retry limit (default: 2).
185
+
186
+ A request is deemed retryable when any of the following HTTP status codes is returned:
187
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
188
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
189
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
190
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
191
+
192
+ Use the `max_retries` request option to configure this behavior.
193
+
194
+ ```python
195
+ client.profiles.create(..., request_options={
196
+ "max_retries": 1
197
+ })
198
+ ```
199
+
200
+ ### Timeouts
201
+
202
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
203
+
204
+ ```python
205
+ from rizamo import Rizamo
206
+
207
+ client = Rizamo(..., timeout=20.0)
208
+
209
+ # Override timeout for a specific method
210
+ client.profiles.create(..., request_options={
211
+ "timeout": 1
212
+ })
213
+ ```
214
+
215
+ ### Custom Client
216
+
217
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
218
+ and transports.
219
+
220
+ ```python
221
+ import httpx
222
+ from rizamo import Rizamo
223
+
224
+ client = Rizamo(
225
+ ...,
226
+ httpx_client=httpx.Client(
227
+ proxy="http://my.test.proxy.example.com",
228
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
229
+ ),
230
+ )
231
+ ```
232
+
233
+ ## Contributing
234
+
235
+ While we value open-source contributions to this SDK, this library is generated programmatically.
236
+ Additions made directly to this library would have to be moved over to our generation code,
237
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
238
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
239
+ an issue first to discuss with us!
240
+
241
+ On the other hand, contributions to the README are always very welcome!
242
+
rizamo-1.0.0/README.md ADDED
@@ -0,0 +1,206 @@
1
+ # Rizamo 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=Rizamo%2FPython)
4
+ [![pypi](https://img.shields.io/pypi/v/rizamo)](https://pypi.python.org/pypi/rizamo)
5
+
6
+ The Rizamo Python library provides convenient access to the Rizamo APIs from Python.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Installation](#installation)
11
+ - [Reference](#reference)
12
+ - [Usage](#usage)
13
+ - [Environments](#environments)
14
+ - [Async Client](#async-client)
15
+ - [Exception Handling](#exception-handling)
16
+ - [Pagination](#pagination)
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
+
24
+ ## Installation
25
+
26
+ ```sh
27
+ pip install rizamo
28
+ ```
29
+
30
+ ## Reference
31
+
32
+ A full reference for this library is available [here](./reference.md).
33
+
34
+ ## Usage
35
+
36
+ Instantiate and use the client with the following:
37
+
38
+ ```python
39
+ from rizamo import Rizamo
40
+
41
+ client = Rizamo(
42
+ api_key="<token>",
43
+ )
44
+
45
+ client.profiles.create(
46
+ name="Bloom Studio",
47
+ time_zone="Europe/Lisbon",
48
+ )
49
+ ```
50
+
51
+ ## Environments
52
+
53
+ This SDK allows you to configure different environments for API requests.
54
+
55
+ ```python
56
+ from rizamo import Rizamo
57
+ from rizamo.environment import RizamoEnvironment
58
+
59
+ client = Rizamo(
60
+ environment=RizamoEnvironment.PRODUCTION,
61
+ )
62
+ ```
63
+
64
+ ## Async Client
65
+
66
+ 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).
67
+
68
+ ```python
69
+ import asyncio
70
+
71
+ from rizamo import AsyncRizamo
72
+
73
+ client = AsyncRizamo(
74
+ api_key="<token>",
75
+ )
76
+
77
+
78
+ async def main() -> None:
79
+ await client.profiles.create(
80
+ name="Bloom Studio",
81
+ time_zone="Europe/Lisbon",
82
+ )
83
+
84
+
85
+ asyncio.run(main())
86
+ ```
87
+
88
+ ## Exception Handling
89
+
90
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
91
+ will be thrown.
92
+
93
+ ```python
94
+ from rizamo.core.api_error import ApiError
95
+
96
+ try:
97
+ client.profiles.create(...)
98
+ except ApiError as e:
99
+ print(e.status_code)
100
+ print(e.body)
101
+ ```
102
+
103
+ ## Pagination
104
+
105
+ Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.
106
+
107
+ ```python
108
+ from rizamo import Rizamo
109
+
110
+ client = Rizamo(
111
+ api_key="<token>",
112
+ )
113
+
114
+ client.accounts.list(
115
+ profile_id="prof_01m40k9k80fxd8cvng8derm7g9",
116
+ )
117
+ ```
118
+
119
+ ```python
120
+ # You can also iterate through pages and access the typed response per page
121
+ pager = client.accounts.list(...)
122
+ for page in pager.iter_pages():
123
+ print(page.response) # access the typed response for each page
124
+ for item in page:
125
+ print(item)
126
+ ```
127
+
128
+ ## Advanced
129
+
130
+ ### Access Raw Response Data
131
+
132
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
133
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
134
+
135
+ ```python
136
+ from rizamo import Rizamo
137
+
138
+ client = Rizamo(...)
139
+ response = client.profiles.with_raw_response.create(...)
140
+ print(response.headers) # access the response headers
141
+ print(response.status_code) # access the response status code
142
+ print(response.data) # access the underlying object
143
+ ```
144
+
145
+ ### Retries
146
+
147
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
148
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
149
+ retry limit (default: 2).
150
+
151
+ A request is deemed retryable when any of the following HTTP status codes is returned:
152
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
153
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
154
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
155
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
156
+
157
+ Use the `max_retries` request option to configure this behavior.
158
+
159
+ ```python
160
+ client.profiles.create(..., 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 rizamo import Rizamo
171
+
172
+ client = Rizamo(..., timeout=20.0)
173
+
174
+ # Override timeout for a specific method
175
+ client.profiles.create(..., request_options={
176
+ "timeout": 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 rizamo import Rizamo
188
+
189
+ client = Rizamo(
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!
@@ -0,0 +1,101 @@
1
+ [project]
2
+ name = "rizamo"
3
+ dynamic = ["version"]
4
+ license = "MIT"
5
+ license-files = ["LICENSE"]
6
+
7
+ [tool.poetry]
8
+ name = "rizamo"
9
+ version = "1.0.0"
10
+ description = ""
11
+ readme = "README.md"
12
+ authors = []
13
+ keywords = []
14
+ license = "MIT"
15
+ classifiers = [
16
+ "Intended Audience :: Developers",
17
+ "Programming Language :: Python",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Programming Language :: Python :: 3.14",
24
+ "Programming Language :: Python :: 3.15",
25
+ "Operating System :: OS Independent",
26
+ "Operating System :: POSIX",
27
+ "Operating System :: MacOS",
28
+ "Operating System :: POSIX :: Linux",
29
+ "Operating System :: Microsoft :: Windows",
30
+ "Topic :: Software Development :: Libraries :: Python Modules",
31
+ "Typing :: Typed"
32
+ ]
33
+ packages = [
34
+ { include = "rizamo", from = "src"}
35
+ ]
36
+
37
+ [tool.poetry.urls]
38
+ Documentation = 'https://docs.rizamo.com'
39
+ Homepage = 'https://rizamo.com'
40
+ Repository = 'https://github.com/rizamohq/rizamo-python'
41
+
42
+ [tool.poetry.dependencies]
43
+ python = "^3.10"
44
+ aiohttp = { version = ">=3.14.1,<4", optional = true}
45
+ httpx = ">=0.21.2"
46
+ httpx-aiohttp = { version = "^0.1.8", optional = true}
47
+ pydantic = ">= 1.9.2"
48
+ pydantic-core = ">=2.18.2,<3.0.0"
49
+ typing_extensions = ">= 4.0.0"
50
+
51
+ [tool.poetry.group.dev.dependencies]
52
+ mypy = "==1.13.0"
53
+ pytest = "^9.0.3"
54
+ pytest-asyncio = "^1.0.0"
55
+ pytest-xdist = "^3.6.1"
56
+ python-dateutil = "^2.9.0"
57
+ types-python-dateutil = "^2.9.0.20240316"
58
+ urllib3 = ">=2.6.3,<3.0.0"
59
+ ruff = "==0.11.5"
60
+
61
+ [tool.pytest.ini_options]
62
+ testpaths = [ "tests" ]
63
+ asyncio_mode = "auto"
64
+ norecursedirs = [ "src" ]
65
+ markers = [
66
+ "aiohttp: tests that require httpx_aiohttp to be installed",
67
+ ]
68
+
69
+ [tool.mypy]
70
+ plugins = ["pydantic.mypy"]
71
+
72
+ [tool.ruff]
73
+ line-length = 120
74
+
75
+ [tool.ruff.lint]
76
+ select = [
77
+ "E", # pycodestyle errors
78
+ "F", # pyflakes
79
+ "I", # isort
80
+ ]
81
+ ignore = [
82
+ "E402", # Module level import not at top of file
83
+ "E501", # Line too long
84
+ "E711", # Comparison to `None` should be `cond is not None`
85
+ "E712", # Avoid equality comparisons to `True`; use `if ...:` checks
86
+ "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
87
+ "E722", # Do not use bare `except`
88
+ "E731", # Do not assign a `lambda` expression, use a `def`
89
+ "F821", # Undefined name
90
+ "F841" # Local variable ... is assigned to but never used
91
+ ]
92
+
93
+ [tool.ruff.lint.isort]
94
+ section-order = ["future", "standard-library", "third-party", "first-party"]
95
+
96
+ [build-system]
97
+ requires = ["poetry-core"]
98
+ build-backend = "poetry.core.masonry.api"
99
+
100
+ [tool.poetry.extras]
101
+ aiohttp=["aiohttp", "httpx-aiohttp"]