hackerrank¶
Installation¶
$ pip install hackerrank
This is tested on Python 3.13+.
Usage¶
Generate an API token from the HackerRank for Work tokens page and pass
it to hackerrank.client.HackerRank:
"""Example usage."""
import sys
from hackerrank.client import HackerRank
client = HackerRank(api_key="your-api-key")
for test in client.tests.list().data:
sys.stdout.write(test.name)
interview = client.interviews.create(title="My Interview")
sys.stdout.write(interview.url or "")
See the API Reference for full usage details.
Reference¶
- API Reference
InterviewsNamespaceInterviewTemplatesNamespaceQuestionsNamespaceQuestionsNamespace.list()QuestionsNamespace.create()QuestionsNamespace.get()QuestionsNamespace.update()QuestionsNamespace.update_codestubs()QuestionsNamespace.generate_codestubs()QuestionsNamespace.add_testcase()QuestionsNamespace.update_testcase()QuestionsNamespace.delete_testcase()QuestionsNamespace.delete_all_testcases()
TestCandidatesNamespaceTestsNamespaceTemplatesNamespaceUsersNamespaceTeamMembershipsNamespaceTeamsNamespaceAuditLogsNamespaceATSCodePairNamespaceATSCodeScreenNamespaceATSNamespaceSCIMUsersNamespaceSCIMGroupsNamespaceSCIMNamespaceHackerRankAsyncInterviewsNamespaceAsyncInterviewTemplatesNamespaceAsyncQuestionsNamespaceAsyncTestCandidatesNamespaceAsyncTestsNamespaceAsyncTemplatesNamespaceAsyncUsersNamespaceAsyncTeamsNamespaceAsyncAuditLogsNamespaceAsyncATSNamespaceAsyncSCIMNamespaceAsyncHackerRankHTTPStatusErrorTransportResponseTransportHTTPXTransportAsyncTransportAsyncHTTPXTransportJSONValuePageSCIMPageCandidateDetailInterviewInterview.idInterview.statusInterview.urlInterview.titleInterview.feedbackInterview.thumbs_upInterview.notesInterview.resume_urlInterview.interviewersInterview.result_urlInterview.candidateInterview.metadataInterview.report_urlInterview.ended_atInterview.interview_template_idInterview.created_atInterview.updated_atInterview.userInterview.send_emailInterview.from_dict()
InterviewTranscriptMessageInterviewTranscriptInterviewTemplateInterviewTemplate.idInterviewTemplate.nameInterviewTemplate.created_atInterviewTemplate.statusInterviewTemplate.userInterviewTemplate.rolesInterviewTemplate.team_shareInterviewTemplate.questionsInterviewTemplate.scorecardInterviewTemplate.import_templateInterviewTemplate.editor_accessInterviewTemplate.from_dict()
QuestionTestTest.idTest.nameTest.unique_idTest.starttimeTest.endtimeTest.durationTest.ownerTest.instructionsTest.starredTest.created_atTest.stateTest.lockedTest.draftTest.languagesTest.candidate_detailsTest.custom_acknowledge_textTest.cutoff_scoreTest.master_passwordTest.hide_compile_testTest.tagsTest.role_idsTest.experienceTest.questionsTest.sectionsTest.mcq_incorrect_scoreTest.mcq_correct_scoreTest.locked_byTest.short_login_urlTest.public_login_urlTest.shuffle_questionsTest.test_adminsTest.hide_templateTest.enable_acknowledgementTest.enable_proctoringTest.enable_advanced_proctoringTest.enable_secure_assessment_modeTest.enable_ml_plagiarism_analysisTest.enable_photo_identificationTest.ide_configTest.from_dict()
TestCandidateTestCandidate.idTestCandidate.emailTestCandidate.full_nameTestCandidate.scoreTestCandidate.testTestCandidate.userTestCandidate.attempt_starttimeTestCandidate.attempt_endtimeTestCandidate.attempt_eventsTestCandidate.statusTestCandidate.ats_stateTestCandidate.integrity_statusTestCandidate.integrity_summaryTestCandidate.invite_email_doneTestCandidate.invite_validTestCandidate.invited_onTestCandidate.invite_valid_fromTestCandidate.invite_valid_toTestCandidate.invite_linkTestCandidate.invite_metadataTestCandidate.evaluator_emailTestCandidate.test_finish_urlTestCandidate.test_result_urlTestCandidate.accept_result_updatesTestCandidate.tagsTestCandidate.report_urlTestCandidate.authenticated_report_urlTestCandidate.pdf_urlTestCandidate.scores_tags_splitTestCandidate.scores_skills_splitTestCandidate.added_timeTestCandidate.unclaimed_added_timeTestCandidate.commentsTestCandidate.performance_summaryTestCandidate.ip_addressTestCandidate.questionsTestCandidate.plagiarismTestCandidate.plagiarism_statusTestCandidate.max_code_similarityTestCandidate.feedbackTestCandidate.percentage_scoreTestCandidate.candidate_detailsTestCandidate.out_of_window_eventsTestCandidate.out_of_window_durationTestCandidate.editor_paste_countTestCandidate.proctor_imagesTestCandidate.from_dict()
InviterInviter.idInviter.emailInviter.firstnameInviter.lastnameInviter.roleInviter.statusInviter.phoneInviter.timezoneInviter.questions_permissionInviter.tests_permissionInviter.interviews_permissionInviter.candidates_permissionInviter.teamsInviter.candidates_invitedInviter.activatedInviter.from_dict()
UserUser.idUser.emailUser.firstnameUser.lastnameUser.countryUser.roleUser.statusUser.phoneUser.timezoneUser.questions_permissionUser.tests_permissionUser.interviews_permissionUser.candidates_permissionUser.shared_questions_permissionUser.shared_tests_permissionUser.shared_interviews_permissionUser.shared_candidates_permissionUser.company_adminUser.team_adminUser.teamsUser.activatedUser.last_activity_timeUser.from_dict()
TeamUserTeamMembershipTemplateAuditLogATSCodePairATSCodeScreenSCIMUserSCIMTeamHackerRankErrorBadRequestErrorAuthenticationErrorForbiddenErrorNotFoundErrorConflictErrorUnprocessableEntityErrorRateLimitErrorServerError
- OpenAPI Spec
- Contributing to hackerrank
- Release Process
- Unreleased changes
- Changelog