hackerrank 2026.11.3__tar.gz → 2026.11.7__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 (142) hide show
  1. {hackerrank-2026.11.3/src/hackerrank.egg-info → hackerrank-2026.11.7}/PKG-INFO +28 -9
  2. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/README.rst +27 -6
  3. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/api-reference.rst +6 -0
  4. hackerrank-2026.11.7/docs/source/changelog/2026.11.03.1.md +7 -0
  5. hackerrank-2026.11.7/docs/source/changelog/2026.11.07.md +10 -0
  6. hackerrank-2026.11.7/openapi.json +1 -0
  7. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/pyproject.toml +4 -6
  8. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/spelling_private_dict.txt +3 -0
  9. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/_dict_types.py +1 -1
  10. hackerrank-2026.11.7/src/hackerrank/_internal_notes.py +32 -0
  11. hackerrank-2026.11.7/src/hackerrank/_interview_results.py +166 -0
  12. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/_responses.py +9 -0
  13. hackerrank-2026.11.7/src/hackerrank/api.py +154 -0
  14. hackerrank-2026.11.7/src/hackerrank/api_operations.json +1 -0
  15. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/async_client.py +323 -40
  16. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/client.py +323 -40
  17. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/types.py +35 -3
  18. {hackerrank-2026.11.3 → hackerrank-2026.11.7/src/hackerrank.egg-info}/PKG-INFO +28 -9
  19. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/SOURCES.txt +7 -2
  20. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/requires.txt +0 -2
  21. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/scm_file_list.json +7 -2
  22. hackerrank-2026.11.7/src/hackerrank.egg-info/scm_version.json +8 -0
  23. hackerrank-2026.11.7/tests/test_api_catalogue.py +234 -0
  24. hackerrank-2026.11.7/tests/test_internal_notes.py +157 -0
  25. hackerrank-2026.11.7/tests/test_interview_results.py +310 -0
  26. hackerrank-2026.11.3/openapi.json +0 -1
  27. hackerrank-2026.11.3/src/hackerrank/_internal_notes.py +0 -72
  28. hackerrank-2026.11.3/src/hackerrank/_notes_html.py +0 -105
  29. hackerrank-2026.11.3/src/hackerrank.egg-info/scm_version.json +0 -8
  30. hackerrank-2026.11.3/tests/test_internal_notes.py +0 -235
  31. hackerrank-2026.11.3/tests/test_notes_html.py +0 -115
  32. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.git_archival.txt +0 -0
  33. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.gitattributes +0 -0
  34. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/dependabot.yml +0 -0
  35. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/autofix.yml +0 -0
  36. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/ci.yml +0 -0
  37. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/dependabot-merge.yml +0 -0
  38. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/lint.yml +0 -0
  39. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/publish-site.yml +0 -0
  40. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.github/workflows/release.yml +0 -0
  41. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.gitignore +0 -0
  42. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.prettierrc +0 -0
  43. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/.vale.ini +0 -0
  44. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/CHANGELOG.md +0 -0
  45. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/LICENSE +0 -0
  46. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/conftest.py +0 -0
  47. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/__init__.py +0 -0
  48. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.05.12.1.md +0 -0
  49. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.05.12.2.md +0 -0
  50. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.05.12.md +0 -0
  51. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.07.08.md +0 -0
  52. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.07.19.md +0 -0
  53. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.07.30.md +0 -0
  54. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.08.16.md +0 -0
  55. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.08.22.md +0 -0
  56. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.08.27.md +0 -0
  57. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.08.28.md +0 -0
  58. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.09.07.md +0 -0
  59. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.09.16.md +0 -0
  60. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.10.09.md +0 -0
  61. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.10.30.1.md +0 -0
  62. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.10.30.md +0 -0
  63. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.11.02.md +0 -0
  64. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog/2026.11.03.md +0 -0
  65. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/changelog.md +0 -0
  66. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/conf.py +0 -0
  67. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/contributing.rst +0 -0
  68. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/index.rst +0 -0
  69. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/openapi-spec.rst +0 -0
  70. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/release-process.rst +0 -0
  71. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/docs/source/unreleased.md +0 -0
  72. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/newsfragments/.gitkeep +0 -0
  73. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/newsfragments/README.md +0 -0
  74. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/prek.toml +0 -0
  75. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/setup.cfg +0 -0
  76. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/__init__.py +0 -0
  77. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/_project_archive.py +0 -0
  78. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/_request_types.py +0 -0
  79. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/_retries.py +0 -0
  80. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/exceptions.py +0 -0
  81. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/py.typed +0 -0
  82. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank/transports.py +0 -0
  83. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/dependency_links.txt +0 -0
  84. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/not-zip-safe +0 -0
  85. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/src/hackerrank.egg-info/top_level.txt +0 -0
  86. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/styles/snapper/LongProseLine.yml +0 -0
  87. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/styles/snapper/SemanticLineBreaks.yml +0 -0
  88. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/__init__.py +0 -0
  89. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/async_client/__init__.py +0 -0
  90. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/async_client/test_configuration.py +0 -0
  91. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/async_client/test_endpoints.py +0 -0
  92. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/async_client/test_transports.py +0 -0
  93. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client/__init__.py +0 -0
  94. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client/test_configuration.py +0 -0
  95. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client/test_endpoints.py +0 -0
  96. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client/test_errors.py +0 -0
  97. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client/test_transports.py +0 -0
  98. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/__init__.py +0 -0
  99. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/constants.py +0 -0
  100. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/test_errors.py +0 -0
  101. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/test_pagination.py +0 -0
  102. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/test_request_bodies.py +0 -0
  103. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/test_routing.py +0 -0
  104. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/client_edge_cases/test_transports.py +0 -0
  105. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/conftest.py +0 -0
  106. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/__init__.py +0 -0
  107. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/test_assessments.py +0 -0
  108. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/test_integrations.py +0 -0
  109. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/test_interviews.py +0 -0
  110. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/test_organization.py +0 -0
  111. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/endpoints/test_questions.py +0 -0
  112. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/__init__.py +0 -0
  113. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_assessments.py +0 -0
  114. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_candidates.py +0 -0
  115. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_integrations.py +0 -0
  116. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_interviews.py +0 -0
  117. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_organization.py +0 -0
  118. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/models/test_pagination.py +0 -0
  119. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/openapi_helpers.py +0 -0
  120. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/__init__.py +0 -0
  121. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/conftest.py +0 -0
  122. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/questions.py +0 -0
  123. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/responses.py +0 -0
  124. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_async.py +0 -0
  125. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_delays.py +0 -0
  126. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_errors.py +0 -0
  127. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_logging.py +0 -0
  128. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_policy.py +0 -0
  129. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/test_uploads.py +0 -0
  130. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/retries/transports.py +0 -0
  131. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_candidate_search.py +0 -0
  132. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_custom_system_prompt.py +0 -0
  133. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_documented_request_params.py +0 -0
  134. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_newsfragments.py +0 -0
  135. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_openapi.py +0 -0
  136. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_project_directory.py +0 -0
  137. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_reject_bare_string_lists.py +0 -0
  138. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_required_update_bodies.py +0 -0
  139. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_response_shapes.py +0 -0
  140. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/tests/test_retry_safety_docs.py +0 -0
  141. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/typings/pyprojroot/__init__.pyi +0 -0
  142. {hackerrank-2026.11.3 → hackerrank-2026.11.7}/zizmor.yml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hackerrank
3
- Version: 2026.11.3
3
+ Version: 2026.11.7
4
4
  Summary: Interact with the HackerRank for Work API.
5
5
  Author-email: Adam Dangoor <adamdangoor@gmail.com>
6
6
  License-Expression: MIT
@@ -19,11 +19,9 @@ Requires-Python: >=3.13
19
19
  Description-Content-Type: text/x-rst
20
20
  License-File: LICENSE
21
21
  Requires-Dist: beartype>=0.23.0
22
- Requires-Dist: beautifulsoup4>=4.15.0
23
22
  Requires-Dist: httpx>=0.28.0
24
23
  Requires-Dist: httpx2>=2.12.0
25
24
  Requires-Dist: tenacity>=9.1.4
26
- Requires-Dist: tinycss2>=1.4.0
27
25
  Dynamic: license-file
28
26
 
29
27
  |Build Status| |PyPI|
@@ -70,12 +68,9 @@ Updating private notes
70
68
 
71
69
  Use ``client.questions.update_internal_notes(question_id=..., internal_notes=...)`` to change private interviewer notes.
72
70
  The same operation is available on ``AsyncHackerRank``.
73
- Every call writes the requested notes, resends required fields unchanged, and reads back the saved question.
74
- It raises ``ValueError`` if required fields are absent or verification finds changes to other modeled fields.
75
- Verification accepts HTML entity spelling, attribute order, block indentation, and CSS declaration spacing changes.
76
- It preserves document structure, text, links, and exact code-block whitespace, and treats absent notes as empty.
77
- Plain text is compared exactly.
78
- Question-type restrictions remain with the caller.
71
+ Every call reads the current required question fields and writes the requested notes, including identical or empty notes.
72
+ The operation returns the question supplied by the update response, or ``None`` for an empty response.
73
+ It raises ``ValueError`` if fields required by the update request are absent.
79
74
 
80
75
  HTTPX2 transports
81
76
  -----------------
@@ -113,3 +108,27 @@ See the `full documentation <https://adamtheturtle.github.io/hackerrank/>`__.
113
108
  .. |PyPI| image:: https://badge.fury.io/py/hackerrank.svg
114
109
  :target: https://badge.fury.io/py/hackerrank
115
110
  .. |minimum-python-version| replace:: 3.13
111
+
112
+ Interviews V2 and audit logs
113
+ ----------------------------
114
+
115
+ ``client.interviews.get_artifacts`` returns typed artifact metadata or an ``InterviewArtifactsPending`` result with the server's retry delay.
116
+ Signed download URLs expire.
117
+ Request fresh metadata when needed.
118
+ ``get_notes`` reads permitted interviewer notes and ``update_note`` replaces the current user's note, preserving empty content.
119
+
120
+ Use ``client.audit_logs.list_cursor`` for large audit collections.
121
+ Pass the returned ``next_cursor`` to continue.
122
+ Subsequent requests send only that opaque token.
123
+ Both audit methods support the documented filters, including ``user``.
124
+ The existing ``user_id`` argument sends the documented ``user`` query key.
125
+ Offset pages expose the server's window limit and exhaustion flag.
126
+ All operations are also available on ``AsyncHackerRank``.
127
+
128
+ Complete API operation catalogue
129
+ --------------------------------
130
+
131
+ ``hackerrank.api.api_operations()`` lists every documented v3 and SCIM operation.
132
+ ``client.api.call`` accepts the operation name, path parameters, query fields and complete JSON body, retaining the response status, headers and data.
133
+ SCIM calls require their own ``scim_api_key`` and use the provisioning host.
134
+ The same catalogue and execution interface are available asynchronously.
@@ -42,12 +42,9 @@ Updating private notes
42
42
 
43
43
  Use ``client.questions.update_internal_notes(question_id=..., internal_notes=...)`` to change private interviewer notes.
44
44
  The same operation is available on ``AsyncHackerRank``.
45
- Every call writes the requested notes, resends required fields unchanged, and reads back the saved question.
46
- It raises ``ValueError`` if required fields are absent or verification finds changes to other modeled fields.
47
- Verification accepts HTML entity spelling, attribute order, block indentation, and CSS declaration spacing changes.
48
- It preserves document structure, text, links, and exact code-block whitespace, and treats absent notes as empty.
49
- Plain text is compared exactly.
50
- Question-type restrictions remain with the caller.
45
+ Every call reads the current required question fields and writes the requested notes, including identical or empty notes.
46
+ The operation returns the question supplied by the update response, or ``None`` for an empty response.
47
+ It raises ``ValueError`` if fields required by the update request are absent.
51
48
 
52
49
  HTTPX2 transports
53
50
  -----------------
@@ -85,3 +82,27 @@ See the `full documentation <https://adamtheturtle.github.io/hackerrank/>`__.
85
82
  .. |PyPI| image:: https://badge.fury.io/py/hackerrank.svg
86
83
  :target: https://badge.fury.io/py/hackerrank
87
84
  .. |minimum-python-version| replace:: 3.13
85
+
86
+ Interviews V2 and audit logs
87
+ ----------------------------
88
+
89
+ ``client.interviews.get_artifacts`` returns typed artifact metadata or an ``InterviewArtifactsPending`` result with the server's retry delay.
90
+ Signed download URLs expire.
91
+ Request fresh metadata when needed.
92
+ ``get_notes`` reads permitted interviewer notes and ``update_note`` replaces the current user's note, preserving empty content.
93
+
94
+ Use ``client.audit_logs.list_cursor`` for large audit collections.
95
+ Pass the returned ``next_cursor`` to continue.
96
+ Subsequent requests send only that opaque token.
97
+ Both audit methods support the documented filters, including ``user``.
98
+ The existing ``user_id`` argument sends the documented ``user`` query key.
99
+ Offset pages expose the server's window limit and exhaustion flag.
100
+ All operations are also available on ``AsyncHackerRank``.
101
+
102
+ Complete API operation catalogue
103
+ --------------------------------
104
+
105
+ ``hackerrank.api.api_operations()`` lists every documented v3 and SCIM operation.
106
+ ``client.api.call`` accepts the operation name, path parameters, query fields and complete JSON body, retaining the response status, headers and data.
107
+ SCIM calls require their own ``scim_api_key`` and use the provisioning host.
108
+ The same catalogue and execution interface are available asynchronously.
@@ -20,3 +20,9 @@ API Reference
20
20
  .. automodule:: hackerrank.exceptions
21
21
  :undoc-members:
22
22
  :members:
23
+
24
+ .. automodule:: hackerrank._interview_results
25
+ :members:
26
+
27
+ .. automodule:: hackerrank.api
28
+ :members:
@@ -0,0 +1,7 @@
1
+ # 2026.11.03.1 (2026-11-03)
2
+
3
+ ## Changes
4
+
5
+ - Remove post-write verification and identity checks from notes updates, along with HTML comparison dependencies.
6
+ Notes updates return the API response question or `None` for an empty response, without an additional read-back request.
7
+ ([#508](https://github.com/adamtheturtle/hackerrank/issues/508))
@@ -0,0 +1,10 @@
1
+ # 2026.11.07 (2026-11-07)
2
+
3
+ ## Changes
4
+
5
+ - Add typed Interviews V2 artifact metadata and pending responses.
6
+ ([#512](https://github.com/adamtheturtle/hackerrank/issues/512))
7
+ - Read and update interviewer notes in synchronous and asynchronous clients.
8
+ ([#513](https://github.com/adamtheturtle/hackerrank/issues/513))
9
+ - Support audit cursor pagination, current filters and offset-window metadata.
10
+ ([#514](https://github.com/adamtheturtle/hackerrank/issues/514))