believe_py 0.10.2__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 (223) hide show
  1. believe_py-0.10.2/.gitignore +16 -0
  2. believe_py-0.10.2/.release-please-manifest.json +3 -0
  3. believe_py-0.10.2/CHANGELOG.md +13 -0
  4. believe_py-0.10.2/CONTRIBUTING.md +121 -0
  5. believe_py-0.10.2/LICENSE +7 -0
  6. believe_py-0.10.2/PKG-INFO +516 -0
  7. believe_py-0.10.2/README.md +481 -0
  8. believe_py-0.10.2/SECURITY.md +27 -0
  9. believe_py-0.10.2/api.md +326 -0
  10. believe_py-0.10.2/bin/check-release-environment +21 -0
  11. believe_py-0.10.2/bin/publish-pypi +11 -0
  12. believe_py-0.10.2/examples/.keep +4 -0
  13. believe_py-0.10.2/pyproject.toml +256 -0
  14. believe_py-0.10.2/release-please-config.json +66 -0
  15. believe_py-0.10.2/requirements-dev.lock +114 -0
  16. believe_py-0.10.2/src/believe_py/__init__.py +92 -0
  17. believe_py-0.10.2/src/believe_py/_base_client.py +2153 -0
  18. believe_py-0.10.2/src/believe_py/_client.py +1333 -0
  19. believe_py-0.10.2/src/believe_py/_compat.py +226 -0
  20. believe_py-0.10.2/src/believe_py/_constants.py +14 -0
  21. believe_py-0.10.2/src/believe_py/_exceptions.py +108 -0
  22. believe_py-0.10.2/src/believe_py/_files.py +173 -0
  23. believe_py-0.10.2/src/believe_py/_models.py +878 -0
  24. believe_py-0.10.2/src/believe_py/_qs.py +149 -0
  25. believe_py-0.10.2/src/believe_py/_resource.py +43 -0
  26. believe_py-0.10.2/src/believe_py/_response.py +835 -0
  27. believe_py-0.10.2/src/believe_py/_streaming.py +338 -0
  28. believe_py-0.10.2/src/believe_py/_types.py +274 -0
  29. believe_py-0.10.2/src/believe_py/_utils/__init__.py +64 -0
  30. believe_py-0.10.2/src/believe_py/_utils/_compat.py +45 -0
  31. believe_py-0.10.2/src/believe_py/_utils/_datetime_parse.py +136 -0
  32. believe_py-0.10.2/src/believe_py/_utils/_json.py +35 -0
  33. believe_py-0.10.2/src/believe_py/_utils/_logs.py +25 -0
  34. believe_py-0.10.2/src/believe_py/_utils/_path.py +127 -0
  35. believe_py-0.10.2/src/believe_py/_utils/_proxy.py +65 -0
  36. believe_py-0.10.2/src/believe_py/_utils/_reflection.py +42 -0
  37. believe_py-0.10.2/src/believe_py/_utils/_resources_proxy.py +24 -0
  38. believe_py-0.10.2/src/believe_py/_utils/_streams.py +12 -0
  39. believe_py-0.10.2/src/believe_py/_utils/_sync.py +58 -0
  40. believe_py-0.10.2/src/believe_py/_utils/_transform.py +457 -0
  41. believe_py-0.10.2/src/believe_py/_utils/_typing.py +156 -0
  42. believe_py-0.10.2/src/believe_py/_utils/_utils.py +433 -0
  43. believe_py-0.10.2/src/believe_py/_version.py +4 -0
  44. believe_py-0.10.2/src/believe_py/lib/.keep +4 -0
  45. believe_py-0.10.2/src/believe_py/pagination.py +72 -0
  46. believe_py-0.10.2/src/believe_py/py.typed +0 -0
  47. believe_py-0.10.2/src/believe_py/resources/__init__.py +271 -0
  48. believe_py-0.10.2/src/believe_py/resources/believe.py +226 -0
  49. believe_py-0.10.2/src/believe_py/resources/biscuits.py +328 -0
  50. believe_py-0.10.2/src/believe_py/resources/characters.py +804 -0
  51. believe_py-0.10.2/src/believe_py/resources/client/__init__.py +33 -0
  52. believe_py-0.10.2/src/believe_py/resources/client/client.py +120 -0
  53. believe_py-0.10.2/src/believe_py/resources/client/ws.py +174 -0
  54. believe_py-0.10.2/src/believe_py/resources/coaching/__init__.py +33 -0
  55. believe_py-0.10.2/src/believe_py/resources/coaching/coaching.py +108 -0
  56. believe_py-0.10.2/src/believe_py/resources/coaching/principles.py +326 -0
  57. believe_py-0.10.2/src/believe_py/resources/conflicts.py +212 -0
  58. believe_py-0.10.2/src/believe_py/resources/episodes.py +806 -0
  59. believe_py-0.10.2/src/believe_py/resources/health.py +134 -0
  60. believe_py-0.10.2/src/believe_py/resources/matches/__init__.py +33 -0
  61. believe_py-0.10.2/src/believe_py/resources/matches/commentary.py +171 -0
  62. believe_py-0.10.2/src/believe_py/resources/matches/matches.py +1137 -0
  63. believe_py-0.10.2/src/believe_py/resources/pep_talk.py +183 -0
  64. believe_py-0.10.2/src/believe_py/resources/press.py +199 -0
  65. believe_py-0.10.2/src/believe_py/resources/quotes.py +1059 -0
  66. believe_py-0.10.2/src/believe_py/resources/reframe.py +189 -0
  67. believe_py-0.10.2/src/believe_py/resources/stream.py +138 -0
  68. believe_py-0.10.2/src/believe_py/resources/team_members.py +1054 -0
  69. believe_py-0.10.2/src/believe_py/resources/teams/__init__.py +33 -0
  70. believe_py-0.10.2/src/believe_py/resources/teams/logo.py +366 -0
  71. believe_py-0.10.2/src/believe_py/resources/teams/teams.py +1040 -0
  72. believe_py-0.10.2/src/believe_py/resources/ticket_sales.py +717 -0
  73. believe_py-0.10.2/src/believe_py/resources/version.py +134 -0
  74. believe_py-0.10.2/src/believe_py/resources/webhooks.py +621 -0
  75. believe_py-0.10.2/src/believe_py/types/__init__.py +104 -0
  76. believe_py-0.10.2/src/believe_py/types/believe_submit_params.py +33 -0
  77. believe_py-0.10.2/src/believe_py/types/believe_submit_response.py +24 -0
  78. believe_py-0.10.2/src/believe_py/types/biscuit.py +29 -0
  79. believe_py-0.10.2/src/believe_py/types/biscuit_list_params.py +15 -0
  80. believe_py-0.10.2/src/believe_py/types/character.py +57 -0
  81. believe_py-0.10.2/src/believe_py/types/character_create_params.py +56 -0
  82. believe_py-0.10.2/src/believe_py/types/character_get_quotes_response.py +8 -0
  83. believe_py-0.10.2/src/believe_py/types/character_list_params.py +27 -0
  84. believe_py-0.10.2/src/believe_py/types/character_role.py +9 -0
  85. believe_py-0.10.2/src/believe_py/types/character_update_params.py +45 -0
  86. believe_py-0.10.2/src/believe_py/types/client/__init__.py +3 -0
  87. believe_py-0.10.2/src/believe_py/types/coach.py +37 -0
  88. believe_py-0.10.2/src/believe_py/types/coach_specialty.py +9 -0
  89. believe_py-0.10.2/src/believe_py/types/coaching/__init__.py +6 -0
  90. believe_py-0.10.2/src/believe_py/types/coaching/coaching_principle.py +27 -0
  91. believe_py-0.10.2/src/believe_py/types/coaching/principle_list_params.py +15 -0
  92. believe_py-0.10.2/src/believe_py/types/conflict_resolve_params.py +26 -0
  93. believe_py-0.10.2/src/believe_py/types/conflict_resolve_response.py +29 -0
  94. believe_py-0.10.2/src/believe_py/types/emotional_stats.py +24 -0
  95. believe_py-0.10.2/src/believe_py/types/emotional_stats_param.py +26 -0
  96. believe_py-0.10.2/src/believe_py/types/episode.py +60 -0
  97. believe_py-0.10.2/src/believe_py/types/episode_create_params.py +59 -0
  98. believe_py-0.10.2/src/believe_py/types/episode_get_wisdom_response.py +8 -0
  99. believe_py-0.10.2/src/believe_py/types/episode_list_params.py +22 -0
  100. believe_py-0.10.2/src/believe_py/types/episode_update_params.py +44 -0
  101. believe_py-0.10.2/src/believe_py/types/equipment_manager.py +33 -0
  102. believe_py-0.10.2/src/believe_py/types/geo_location.py +15 -0
  103. believe_py-0.10.2/src/believe_py/types/geo_location_param.py +17 -0
  104. believe_py-0.10.2/src/believe_py/types/growth_arc.py +24 -0
  105. believe_py-0.10.2/src/believe_py/types/growth_arc_param.py +26 -0
  106. believe_py-0.10.2/src/believe_py/types/league.py +9 -0
  107. believe_py-0.10.2/src/believe_py/types/match.py +63 -0
  108. believe_py-0.10.2/src/believe_py/types/match_completed_webhook_event.py +62 -0
  109. believe_py-0.10.2/src/believe_py/types/match_create_params.py +61 -0
  110. believe_py-0.10.2/src/believe_py/types/match_get_lesson_response.py +8 -0
  111. believe_py-0.10.2/src/believe_py/types/match_get_turning_points_response.py +8 -0
  112. believe_py-0.10.2/src/believe_py/types/match_list_params.py +28 -0
  113. believe_py-0.10.2/src/believe_py/types/match_result.py +7 -0
  114. believe_py-0.10.2/src/believe_py/types/match_stream_live_params.py +21 -0
  115. believe_py-0.10.2/src/believe_py/types/match_type.py +7 -0
  116. believe_py-0.10.2/src/believe_py/types/match_update_params.py +48 -0
  117. believe_py-0.10.2/src/believe_py/types/matches/__init__.py +3 -0
  118. believe_py-0.10.2/src/believe_py/types/medical_specialty.py +9 -0
  119. believe_py-0.10.2/src/believe_py/types/medical_staff.py +37 -0
  120. believe_py-0.10.2/src/believe_py/types/paginated_response.py +27 -0
  121. believe_py-0.10.2/src/believe_py/types/paginated_response_quote.py +27 -0
  122. believe_py-0.10.2/src/believe_py/types/pep_talk_retrieve_params.py +12 -0
  123. believe_py-0.10.2/src/believe_py/types/pep_talk_retrieve_response.py +36 -0
  124. believe_py-0.10.2/src/believe_py/types/player.py +43 -0
  125. believe_py-0.10.2/src/believe_py/types/position.py +7 -0
  126. believe_py-0.10.2/src/believe_py/types/press_simulate_params.py +19 -0
  127. believe_py-0.10.2/src/believe_py/types/press_simulate_response.py +26 -0
  128. believe_py-0.10.2/src/believe_py/types/purchase_method.py +7 -0
  129. believe_py-0.10.2/src/believe_py/types/quote.py +49 -0
  130. believe_py-0.10.2/src/believe_py/types/quote_create_params.py +46 -0
  131. believe_py-0.10.2/src/believe_py/types/quote_get_random_params.py +21 -0
  132. believe_py-0.10.2/src/believe_py/types/quote_list_by_character_params.py +15 -0
  133. believe_py-0.10.2/src/believe_py/types/quote_list_by_theme_params.py +15 -0
  134. believe_py-0.10.2/src/believe_py/types/quote_list_params.py +34 -0
  135. believe_py-0.10.2/src/believe_py/types/quote_moment.py +19 -0
  136. believe_py-0.10.2/src/believe_py/types/quote_theme.py +39 -0
  137. believe_py-0.10.2/src/believe_py/types/quote_update_params.py +37 -0
  138. believe_py-0.10.2/src/believe_py/types/reframe_transform_negative_thoughts_params.py +15 -0
  139. believe_py-0.10.2/src/believe_py/types/reframe_transform_negative_thoughts_response.py +26 -0
  140. believe_py-0.10.2/src/believe_py/types/registered_webhook.py +31 -0
  141. believe_py-0.10.2/src/believe_py/types/team.py +68 -0
  142. believe_py-0.10.2/src/believe_py/types/team_create_params.py +66 -0
  143. believe_py-0.10.2/src/believe_py/types/team_get_culture_response.py +8 -0
  144. believe_py-0.10.2/src/believe_py/types/team_get_rivals_response.py +10 -0
  145. believe_py-0.10.2/src/believe_py/types/team_list_logos_response.py +10 -0
  146. believe_py-0.10.2/src/believe_py/types/team_list_params.py +24 -0
  147. believe_py-0.10.2/src/believe_py/types/team_member_create_params.py +131 -0
  148. believe_py-0.10.2/src/believe_py/types/team_member_create_response.py +16 -0
  149. believe_py-0.10.2/src/believe_py/types/team_member_list_coaches_params.py +24 -0
  150. believe_py-0.10.2/src/believe_py/types/team_member_list_params.py +22 -0
  151. believe_py-0.10.2/src/believe_py/types/team_member_list_players_params.py +24 -0
  152. believe_py-0.10.2/src/believe_py/types/team_member_list_response.py +16 -0
  153. believe_py-0.10.2/src/believe_py/types/team_member_list_staff_params.py +19 -0
  154. believe_py-0.10.2/src/believe_py/types/team_member_list_staff_response.py +11 -0
  155. believe_py-0.10.2/src/believe_py/types/team_member_retrieve_response.py +16 -0
  156. believe_py-0.10.2/src/believe_py/types/team_member_transferred_webhook_event.py +67 -0
  157. believe_py-0.10.2/src/believe_py/types/team_member_update_params.py +91 -0
  158. believe_py-0.10.2/src/believe_py/types/team_member_update_response.py +16 -0
  159. believe_py-0.10.2/src/believe_py/types/team_update_params.py +52 -0
  160. believe_py-0.10.2/src/believe_py/types/team_values.py +20 -0
  161. believe_py-0.10.2/src/believe_py/types/team_values_param.py +22 -0
  162. believe_py-0.10.2/src/believe_py/types/teams/__init__.py +6 -0
  163. believe_py-0.10.2/src/believe_py/types/teams/file_upload.py +23 -0
  164. believe_py-0.10.2/src/believe_py/types/teams/logo_upload_params.py +14 -0
  165. believe_py-0.10.2/src/believe_py/types/ticket_sale.py +51 -0
  166. believe_py-0.10.2/src/believe_py/types/ticket_sale_create_params.py +48 -0
  167. believe_py-0.10.2/src/believe_py/types/ticket_sale_list_params.py +30 -0
  168. believe_py-0.10.2/src/believe_py/types/ticket_sale_update_params.py +37 -0
  169. believe_py-0.10.2/src/believe_py/types/turning_point.py +23 -0
  170. believe_py-0.10.2/src/believe_py/types/turning_point_param.py +24 -0
  171. believe_py-0.10.2/src/believe_py/types/unwrap_webhook_event.py +11 -0
  172. believe_py-0.10.2/src/believe_py/types/webhook_create_params.py +19 -0
  173. believe_py-0.10.2/src/believe_py/types/webhook_create_response.py +21 -0
  174. believe_py-0.10.2/src/believe_py/types/webhook_delete_response.py +8 -0
  175. believe_py-0.10.2/src/believe_py/types/webhook_list_response.py +10 -0
  176. believe_py-0.10.2/src/believe_py/types/webhook_trigger_event_params.py +126 -0
  177. believe_py-0.10.2/src/believe_py/types/webhook_trigger_event_response.py +49 -0
  178. believe_py-0.10.2/tests/__init__.py +1 -0
  179. believe_py-0.10.2/tests/api_resources/__init__.py +1 -0
  180. believe_py-0.10.2/tests/api_resources/client/__init__.py +1 -0
  181. believe_py-0.10.2/tests/api_resources/client/test_ws.py +78 -0
  182. believe_py-0.10.2/tests/api_resources/coaching/__init__.py +1 -0
  183. believe_py-0.10.2/tests/api_resources/coaching/test_principles.py +239 -0
  184. believe_py-0.10.2/tests/api_resources/matches/__init__.py +1 -0
  185. believe_py-0.10.2/tests/api_resources/matches/test_commentary.py +107 -0
  186. believe_py-0.10.2/tests/api_resources/teams/__init__.py +1 -0
  187. believe_py-0.10.2/tests/api_resources/teams/test_logo.py +324 -0
  188. believe_py-0.10.2/tests/api_resources/test_believe.py +120 -0
  189. believe_py-0.10.2/tests/api_resources/test_biscuits.py +239 -0
  190. believe_py-0.10.2/tests/api_resources/test_characters.py +711 -0
  191. believe_py-0.10.2/tests/api_resources/test_client.py +79 -0
  192. believe_py-0.10.2/tests/api_resources/test_conflicts.py +126 -0
  193. believe_py-0.10.2/tests/api_resources/test_episodes.py +669 -0
  194. believe_py-0.10.2/tests/api_resources/test_health.py +79 -0
  195. believe_py-0.10.2/tests/api_resources/test_matches.py +812 -0
  196. believe_py-0.10.2/tests/api_resources/test_pep_talk.py +96 -0
  197. believe_py-0.10.2/tests/api_resources/test_press.py +112 -0
  198. believe_py-0.10.2/tests/api_resources/test_quotes.py +797 -0
  199. believe_py-0.10.2/tests/api_resources/test_reframe.py +110 -0
  200. believe_py-0.10.2/tests/api_resources/test_stream.py +79 -0
  201. believe_py-0.10.2/tests/api_resources/test_team_members.py +783 -0
  202. believe_py-0.10.2/tests/api_resources/test_teams.py +860 -0
  203. believe_py-0.10.2/tests/api_resources/test_ticket_sales.py +561 -0
  204. believe_py-0.10.2/tests/api_resources/test_version.py +79 -0
  205. believe_py-0.10.2/tests/api_resources/test_webhooks.py +459 -0
  206. believe_py-0.10.2/tests/conftest.py +84 -0
  207. believe_py-0.10.2/tests/sample_file.txt +1 -0
  208. believe_py-0.10.2/tests/test_client.py +1912 -0
  209. believe_py-0.10.2/tests/test_extract_files.py +91 -0
  210. believe_py-0.10.2/tests/test_files.py +148 -0
  211. believe_py-0.10.2/tests/test_models.py +963 -0
  212. believe_py-0.10.2/tests/test_qs.py +78 -0
  213. believe_py-0.10.2/tests/test_required_args.py +111 -0
  214. believe_py-0.10.2/tests/test_response.py +277 -0
  215. believe_py-0.10.2/tests/test_streaming.py +248 -0
  216. believe_py-0.10.2/tests/test_transform.py +460 -0
  217. believe_py-0.10.2/tests/test_utils/test_datetime_parse.py +110 -0
  218. believe_py-0.10.2/tests/test_utils/test_json.py +126 -0
  219. believe_py-0.10.2/tests/test_utils/test_path.py +89 -0
  220. believe_py-0.10.2/tests/test_utils/test_proxy.py +34 -0
  221. believe_py-0.10.2/tests/test_utils/test_typing.py +73 -0
  222. believe_py-0.10.2/tests/utils.py +167 -0
  223. believe_py-0.10.2/uv.lock +1865 -0
@@ -0,0 +1,16 @@
1
+ .prism.log
2
+ .stdy.log
3
+ _dev
4
+
5
+ __pycache__
6
+ .mypy_cache
7
+
8
+ dist
9
+
10
+ .venv
11
+ .idea
12
+
13
+ .env
14
+ .envrc
15
+ codegen.log
16
+ Brewfile.lock.json
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.10.2"
3
+ }
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## [0.10.2](https://github.com/cjavdev/believe-python/compare/v0.10.1...v0.10.2) (2026-05-10)
4
+
5
+
6
+ ### Chores
7
+
8
+ * regenerate from believe[#53](https://github.com/cjavdev/believe-python/issues/53) ([74b7bc4](https://github.com/cjavdev/believe-python/commit/74b7bc4cf9dd77050810ad6e02b80a9ea048810a))
9
+ * regenerate from believe[#72](https://github.com/cjavdev/believe-python/issues/72) ([6a9649f](https://github.com/cjavdev/believe-python/commit/6a9649f503ffe57a0201a35d05708e0b20f3ddce))
10
+ * regenerate from believe[#73](https://github.com/cjavdev/believe-python/issues/73) ([83c3de5](https://github.com/cjavdev/believe-python/commit/83c3de5edc3d3f5328af697f0ac073d606644310))
11
+ * regenerate from believe[#74](https://github.com/cjavdev/believe-python/issues/74) ([c652de9](https://github.com/cjavdev/believe-python/commit/c652de9e3dc5aee941e804441a80cfec9c633001))
12
+ * regenerate from believe[#77](https://github.com/cjavdev/believe-python/issues/77) ([015b368](https://github.com/cjavdev/believe-python/commit/015b36856d9ca56bc0873ef0e204ea4533cc3e05))
13
+ * regenerate SDKs from believe[#53](https://github.com/cjavdev/believe-python/issues/53) (Only merge) ([3d8d658](https://github.com/cjavdev/believe-python/commit/3d8d658e31c8cd6c4f91aefdc6b7e54e586a0efc))
@@ -0,0 +1,121 @@
1
+ ## Setting up the environment
2
+
3
+ ### With `uv`
4
+
5
+ We use [uv](https://docs.astral.sh/uv/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
6
+
7
+ ```sh
8
+ $ ./scripts/bootstrap
9
+ ```
10
+
11
+ Or [install uv manually](https://docs.astral.sh/uv/getting-started/installation/) and run:
12
+
13
+ ```sh
14
+ $ uv sync --all-extras
15
+ ```
16
+
17
+ You can then run scripts using `uv run python script.py` or by manually activating the virtual environment:
18
+
19
+ ```sh
20
+ # manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
21
+ $ source .venv/bin/activate
22
+
23
+ # now you can omit the `uv run` prefix
24
+ $ python script.py
25
+ ```
26
+
27
+ ### Without `uv`
28
+
29
+ Alternatively if you don't want to install `uv`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
30
+
31
+ ```sh
32
+ $ pip install -r requirements-dev.lock
33
+ ```
34
+
35
+ ## Modifying/Adding code
36
+
37
+ Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
38
+ result in merge conflicts between manual patches and changes from the generator. The generator will never
39
+ modify the contents of the `src/believe_py/lib/` and `examples/` directories.
40
+
41
+ ## Adding and running examples
42
+
43
+ All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
44
+
45
+ ```py
46
+ # add an example to examples/<your-example>.py
47
+
48
+ #!/usr/bin/env -S uv run python
49
+
50
+ ```
51
+
52
+ ```sh
53
+ $ chmod +x examples/<your-example>.py
54
+ # run the example against your api
55
+ $ ./examples/<your-example>.py
56
+ ```
57
+
58
+ ## Using the repository from source
59
+
60
+ If you’d like to use the repository from source, you can either install from git or link to a cloned repository:
61
+
62
+ To install via git:
63
+
64
+ ```sh
65
+ $ pip install git+ssh://git@github.com/cjavdev/believe-python.git
66
+ ```
67
+
68
+ Alternatively, you can build from source and install the wheel file:
69
+
70
+ Building this package will create two files in the `dist/` directory, a `.tar.gz` containing the source files and a `.whl` that can be used to install the package efficiently.
71
+
72
+ To create a distributable version of the library, all you have to do is run this command:
73
+
74
+ ```sh
75
+ $ uv build
76
+ # or
77
+ $ python -m build
78
+ ```
79
+
80
+ Then to install:
81
+
82
+ ```sh
83
+ $ pip install ./path-to-wheel-file.whl
84
+ ```
85
+
86
+ ## Running tests
87
+
88
+ ```sh
89
+ $ ./scripts/test
90
+ ```
91
+
92
+ ## Linting and formatting
93
+
94
+ This repository uses [ruff](https://github.com/astral-sh/ruff) and
95
+ [black](https://github.com/psf/black) to format the code in the repository.
96
+
97
+ To lint:
98
+
99
+ ```sh
100
+ $ ./scripts/lint
101
+ ```
102
+
103
+ To format and fix all ruff issues automatically:
104
+
105
+ ```sh
106
+ $ ./scripts/format
107
+ ```
108
+
109
+ ## Publishing and releases
110
+
111
+ Changes made to this repository via the automated release PR pipeline should publish to PyPI automatically. If
112
+ the changes aren't made through the automated pipeline, you may want to make releases manually.
113
+
114
+ ### Publish with a GitHub workflow
115
+
116
+ You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cjavdev/believe-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
117
+
118
+ ### Publish manually
119
+
120
+ If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
121
+ the environment.
@@ -0,0 +1,7 @@
1
+ Copyright 2026 believe
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,516 @@
1
+ Metadata-Version: 2.3
2
+ Name: believe_py
3
+ Version: 0.10.2
4
+ Summary: The official Python library for the believe API
5
+ Project-URL: Homepage, https://github.com/cjavdev/believe-python
6
+ Project-URL: Repository, https://github.com/cjavdev/believe-python
7
+ Author-email: Believe <wave@cjav.dev>
8
+ License: MIT
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.9
25
+ Requires-Dist: anyio<5,>=3.5.0
26
+ Requires-Dist: distro<2,>=1.7.0
27
+ Requires-Dist: httpx<1,>=0.23.0
28
+ Requires-Dist: pydantic<3,>=1.9.0
29
+ Requires-Dist: sniffio
30
+ Requires-Dist: typing-extensions<5,>=4.14
31
+ Provides-Extra: aiohttp
32
+ Requires-Dist: aiohttp; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Believe Python API library
37
+
38
+ <!-- prettier-ignore -->
39
+ [![PyPI version](https://img.shields.io/pypi/v/believe_py.svg?label=pypi%20(stable))](https://pypi.org/project/believe_py/)
40
+
41
+ The Believe Python library provides convenient access to the Believe REST API from any Python 3.9+
42
+ application. The library includes type definitions for all request params and response fields,
43
+ and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
44
+
45
+ It is generated with [Stainless](https://www.stainless.com/).
46
+
47
+ ## MCP Server
48
+
49
+ Use the Believe MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
50
+
51
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40cjavdev%2Fbelieve-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjamF2ZGV2L2JlbGlldmUtbWNwIl0sImVudiI6eyJCRUxJRVZFX0FQSV9LRVkiOiJNeSBBUEkgS2V5In19)
52
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40cjavdev%2Fbelieve-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cjavdev%2Fbelieve-mcp%22%5D%2C%22env%22%3A%7B%22BELIEVE_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
53
+
54
+ > Note: You may need to set environment variables in your MCP client.
55
+
56
+ ## Documentation
57
+
58
+ The full API of this library can be found in [api.md](https://github.com/cjavdev/believe-python/tree/main/api.md).
59
+
60
+ ## Installation
61
+
62
+ ```sh
63
+ # install from PyPI
64
+ pip install believe_py
65
+ ```
66
+
67
+ ## Usage
68
+
69
+ The full API of this library can be found in [api.md](https://github.com/cjavdev/believe-python/tree/main/api.md).
70
+
71
+ ```python
72
+ import os
73
+ from believe_py import Believe
74
+
75
+ client = Believe(
76
+ api_key=os.environ.get("BELIEVE_API_KEY"), # This is the default and can be omitted
77
+ )
78
+
79
+ page = client.characters.list()
80
+ print(page.data)
81
+ ```
82
+
83
+ While you can provide an `api_key` keyword argument,
84
+ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
85
+ to add `BELIEVE_API_KEY="My API Key"` to your `.env` file
86
+ so that your API Key is not stored in source control.
87
+
88
+ ## Async usage
89
+
90
+ Simply import `AsyncBelieve` instead of `Believe` and use `await` with each API call:
91
+
92
+ ```python
93
+ import os
94
+ import asyncio
95
+ from believe_py import AsyncBelieve
96
+
97
+ client = AsyncBelieve(
98
+ api_key=os.environ.get("BELIEVE_API_KEY"), # This is the default and can be omitted
99
+ )
100
+
101
+
102
+ async def main() -> None:
103
+ page = await client.characters.list()
104
+ print(page.data)
105
+
106
+
107
+ asyncio.run(main())
108
+ ```
109
+
110
+ Functionality between the synchronous and asynchronous clients is otherwise identical.
111
+
112
+ ### With aiohttp
113
+
114
+ By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
115
+
116
+ You can enable this by installing `aiohttp`:
117
+
118
+ ```sh
119
+ # install from PyPI
120
+ pip install believe_py[aiohttp]
121
+ ```
122
+
123
+ Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
124
+
125
+ ```python
126
+ import os
127
+ import asyncio
128
+ from believe_py import DefaultAioHttpClient
129
+ from believe_py import AsyncBelieve
130
+
131
+
132
+ async def main() -> None:
133
+ async with AsyncBelieve(
134
+ api_key=os.environ.get("BELIEVE_API_KEY"), # This is the default and can be omitted
135
+ http_client=DefaultAioHttpClient(),
136
+ ) as client:
137
+ page = await client.characters.list()
138
+ print(page.data)
139
+
140
+
141
+ asyncio.run(main())
142
+ ```
143
+
144
+ ## Using types
145
+
146
+ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
147
+
148
+ - Serializing back into JSON, `model.to_json()`
149
+ - Converting to a dictionary, `model.to_dict()`
150
+
151
+ Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
152
+
153
+ ## Pagination
154
+
155
+ List methods in the Believe API are paginated.
156
+
157
+ This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
158
+
159
+ ```python
160
+ from believe_py import Believe
161
+
162
+ client = Believe()
163
+
164
+ all_characters = []
165
+ # Automatically fetches more pages as needed.
166
+ for character in client.characters.list():
167
+ # Do something with character here
168
+ all_characters.append(character)
169
+ print(all_characters)
170
+ ```
171
+
172
+ Or, asynchronously:
173
+
174
+ ```python
175
+ import asyncio
176
+ from believe_py import AsyncBelieve
177
+
178
+ client = AsyncBelieve()
179
+
180
+
181
+ async def main() -> None:
182
+ all_characters = []
183
+ # Iterate through items across all pages, issuing requests as needed.
184
+ async for character in client.characters.list():
185
+ all_characters.append(character)
186
+ print(all_characters)
187
+
188
+
189
+ asyncio.run(main())
190
+ ```
191
+
192
+ Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get_next_page()` methods for more granular control working with pages:
193
+
194
+ ```python
195
+ first_page = await client.characters.list()
196
+ if first_page.has_next_page():
197
+ print(f"will fetch next page using these details: {first_page.next_page_info()}")
198
+ next_page = await first_page.get_next_page()
199
+ print(f"number of items we just fetched: {len(next_page.data)}")
200
+
201
+ # Remove `await` for non-async usage.
202
+ ```
203
+
204
+ Or just work directly with the returned data:
205
+
206
+ ```python
207
+ first_page = await client.characters.list()
208
+
209
+ print(
210
+ f"the current start offset for this page: {first_page.skip}"
211
+ ) # => "the current start offset for this page: 1"
212
+ for character in first_page.data:
213
+ print(character.id)
214
+
215
+ # Remove `await` for non-async usage.
216
+ ```
217
+
218
+ ## Nested params
219
+
220
+ Nested parameters are dictionaries, typed using `TypedDict`, for example:
221
+
222
+ ```python
223
+ from believe_py import Believe
224
+
225
+ client = Believe()
226
+
227
+ character = client.characters.create(
228
+ background="Legendary midfielder for Chelsea and AFC Richmond, now assistant coach. Known for his gruff exterior hiding a heart of gold.",
229
+ emotional_stats={
230
+ "curiosity": 40,
231
+ "empathy": 85,
232
+ "optimism": 45,
233
+ "resilience": 95,
234
+ "vulnerability": 60,
235
+ },
236
+ name="Roy Kent",
237
+ personality_traits=["intense", "loyal", "secretly caring", "profane"],
238
+ role="coach",
239
+ )
240
+ print(character.emotional_stats)
241
+ ```
242
+
243
+ ## File uploads
244
+
245
+ Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
246
+
247
+ ```python
248
+ from pathlib import Path
249
+ from believe_py import Believe
250
+
251
+ client = Believe()
252
+
253
+ client.teams.logo.upload(
254
+ team_id="team_id",
255
+ file=Path("/path/to/file"),
256
+ )
257
+ ```
258
+
259
+ The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
260
+
261
+ ## Handling errors
262
+
263
+ When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `believe_py.APIConnectionError` is raised.
264
+
265
+ When the API returns a non-success status code (that is, 4xx or 5xx
266
+ response), a subclass of `believe_py.APIStatusError` is raised, containing `status_code` and `response` properties.
267
+
268
+ All errors inherit from `believe_py.APIError`.
269
+
270
+ ```python
271
+ import believe_py
272
+ from believe_py import Believe
273
+
274
+ client = Believe()
275
+
276
+ try:
277
+ client.characters.list()
278
+ except believe_py.APIConnectionError as e:
279
+ print("The server could not be reached")
280
+ print(e.__cause__) # an underlying Exception, likely raised within httpx.
281
+ except believe_py.RateLimitError as e:
282
+ print("A 429 status code was received; we should back off a bit.")
283
+ except believe_py.APIStatusError as e:
284
+ print("Another non-200-range status code was received")
285
+ print(e.status_code)
286
+ print(e.response)
287
+ ```
288
+
289
+ Error codes are as follows:
290
+
291
+ | Status Code | Error Type |
292
+ | ----------- | -------------------------- |
293
+ | 400 | `BadRequestError` |
294
+ | 401 | `AuthenticationError` |
295
+ | 403 | `PermissionDeniedError` |
296
+ | 404 | `NotFoundError` |
297
+ | 422 | `UnprocessableEntityError` |
298
+ | 429 | `RateLimitError` |
299
+ | >=500 | `InternalServerError` |
300
+ | N/A | `APIConnectionError` |
301
+
302
+ ### Retries
303
+
304
+ Certain errors are automatically retried 2 times by default, with a short exponential backoff.
305
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
306
+ 429 Rate Limit, and >=500 Internal errors are all retried by default.
307
+
308
+ You can use the `max_retries` option to configure or disable retry settings:
309
+
310
+ ```python
311
+ from believe_py import Believe
312
+
313
+ # Configure the default for all requests:
314
+ client = Believe(
315
+ # default is 2
316
+ max_retries=0,
317
+ )
318
+
319
+ # Or, configure per-request:
320
+ client.with_options(max_retries=5).characters.list()
321
+ ```
322
+
323
+ ### Timeouts
324
+
325
+ By default requests time out after 1 minute. You can configure this with a `timeout` option,
326
+ which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
327
+
328
+ ```python
329
+ from believe_py import Believe
330
+
331
+ # Configure the default for all requests:
332
+ client = Believe(
333
+ # 20 seconds (default is 1 minute)
334
+ timeout=20.0,
335
+ )
336
+
337
+ # More granular control:
338
+ client = Believe(
339
+ timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
340
+ )
341
+
342
+ # Override per-request:
343
+ client.with_options(timeout=5.0).characters.list()
344
+ ```
345
+
346
+ On timeout, an `APITimeoutError` is thrown.
347
+
348
+ Note that requests that time out are [retried twice by default](https://github.com/cjavdev/believe-python/tree/main/#retries).
349
+
350
+ ## Advanced
351
+
352
+ ### Logging
353
+
354
+ We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
355
+
356
+ You can enable logging by setting the environment variable `BELIEVE_LOG` to `info`.
357
+
358
+ ```shell
359
+ $ export BELIEVE_LOG=info
360
+ ```
361
+
362
+ Or to `debug` for more verbose logging.
363
+
364
+ ### How to tell whether `None` means `null` or missing
365
+
366
+ In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
367
+
368
+ ```py
369
+ if response.my_field is None:
370
+ if 'my_field' not in response.model_fields_set:
371
+ print('Got json like {}, without a "my_field" key present at all.')
372
+ else:
373
+ print('Got json like {"my_field": null}.')
374
+ ```
375
+
376
+ ### Accessing raw response data (e.g. headers)
377
+
378
+ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
379
+
380
+ ```py
381
+ from believe_py import Believe
382
+
383
+ client = Believe()
384
+ response = client.characters.with_raw_response.list()
385
+ print(response.headers.get('X-My-Header'))
386
+
387
+ character = response.parse() # get the object that `characters.list()` would have returned
388
+ print(character.id)
389
+ ```
390
+
391
+ These methods return an [`APIResponse`](https://github.com/cjavdev/believe-python/tree/main/src/believe_py/_response.py) object.
392
+
393
+ The async client returns an [`AsyncAPIResponse`](https://github.com/cjavdev/believe-python/tree/main/src/believe_py/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
394
+
395
+ #### `.with_streaming_response`
396
+
397
+ The above interface eagerly reads the full response body when you make the request, which may not always be what you want.
398
+
399
+ To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
400
+
401
+ ```python
402
+ with client.characters.with_streaming_response.list() as response:
403
+ print(response.headers.get("X-My-Header"))
404
+
405
+ for line in response.iter_lines():
406
+ print(line)
407
+ ```
408
+
409
+ The context manager is required so that the response will reliably be closed.
410
+
411
+ ### Making custom/undocumented requests
412
+
413
+ This library is typed for convenient access to the documented API.
414
+
415
+ If you need to access undocumented endpoints, params, or response properties, the library can still be used.
416
+
417
+ #### Undocumented endpoints
418
+
419
+ To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
420
+ http verbs. Options on the client will be respected (such as retries) when making this request.
421
+
422
+ ```py
423
+ import httpx
424
+
425
+ response = client.post(
426
+ "/foo",
427
+ cast_to=httpx.Response,
428
+ body={"my_param": True},
429
+ )
430
+
431
+ print(response.headers.get("x-foo"))
432
+ ```
433
+
434
+ #### Undocumented request params
435
+
436
+ If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request
437
+ options.
438
+
439
+ #### Undocumented response properties
440
+
441
+ To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You
442
+ can also get all the extra fields on the Pydantic model as a dict with
443
+ [`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra).
444
+
445
+ ### Configuring the HTTP client
446
+
447
+ You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
448
+
449
+ - Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
450
+ - Custom [transports](https://www.python-httpx.org/advanced/transports/)
451
+ - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
452
+
453
+ ```python
454
+ import httpx
455
+ from believe_py import Believe, DefaultHttpxClient
456
+
457
+ client = Believe(
458
+ # Or use the `BELIEVE_BASE_URL` env var
459
+ base_url="http://my.test.server.example.com:8083",
460
+ http_client=DefaultHttpxClient(
461
+ proxy="http://my.test.proxy.example.com",
462
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
463
+ ),
464
+ )
465
+ ```
466
+
467
+ You can also customize the client on a per-request basis by using `with_options()`:
468
+
469
+ ```python
470
+ client.with_options(http_client=DefaultHttpxClient(...))
471
+ ```
472
+
473
+ ### Managing HTTP resources
474
+
475
+ By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
476
+
477
+ ```py
478
+ from believe_py import Believe
479
+
480
+ with Believe() as client:
481
+ # make requests here
482
+ ...
483
+
484
+ # HTTP client is now closed
485
+ ```
486
+
487
+ ## Versioning
488
+
489
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
490
+
491
+ 1. Changes that only affect static types, without breaking runtime behavior.
492
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
493
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
494
+
495
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
496
+
497
+ We are keen for your feedback; please open an [issue](https://www.github.com/cjavdev/believe-python/issues) with questions, bugs, or suggestions.
498
+
499
+ ### Determining the installed version
500
+
501
+ If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
502
+
503
+ You can determine the version that is being used at runtime with:
504
+
505
+ ```py
506
+ import believe_py
507
+ print(believe_py.__version__)
508
+ ```
509
+
510
+ ## Requirements
511
+
512
+ Python 3.9 or higher.
513
+
514
+ ## Contributing
515
+
516
+ See [the contributing documentation](https://github.com/cjavdev/believe-python/tree/main/./CONTRIBUTING.md).