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