Skip to main content

Build Status PyPI

hackerrank

Python library for the HackerRank for Work API.

Installation

pip install hackerrank

This is tested on Python 3.13+.

Getting Started

Generate an API token from the HackerRank for Work tokens page and pass it as api_key:

"""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 "")

HTTPX2 transports

HTTPX remains the default client family. To opt in to HTTPX2, construct the HTTPX2 transport explicitly and pass it to the client. The standard hackerrank installation includes both client families.

"""Configure HackerRank to use HTTPX2."""

import httpx2

from hackerrank.client import HackerRank
from hackerrank.transports import HTTPX2Transport

transport = HTTPX2Transport(timeout=httpx2.Timeout(timeout=10))
with HackerRank(api_key="your-api-key", transport=transport) as client:
    tests = client.tests.list()

Use AsyncHTTPX2Transport with AsyncHackerRank for asynchronous calls. The timeout argument accepts an HTTPX2 timeout object or a number of seconds; do not pass an equivalent httpx object across the package boundary. Existing HTTPX users do not need to change anything. Migrating to HTTPX2 only requires selecting the new transport; HackerRank client methods and returned models are unchanged.

Full Documentation

See the full documentation.

Metadata

Release files for hackerrank 2026.9.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hackerrank 2026.9.7
File Size Uploaded
hackerrank-2026.9.7.tar.gz 125.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hackerrank 2026.9.7
File Interpreter ABI Platform
hackerrank-2026.9.7-py3-none-any.whl Python 3 none any Details

Total release size: 172.4 kB

Release files / hackerrank-2026.9.7.tar.gz

Download URL hackerrank-2026.9.7.tar.gz
Size 125.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b013be958e2f01127fb3df4505a7baf81a07c3b4493be99127f64cbe0d040881
BLAKE2b-256 checksum
How to use checksums
69de96ce1c08d6805b310aa203d2bfed84603bc49deaaa16424acb1c7ea3da9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / hackerrank-2026.9.7-py3-none-any.whl

Download URL hackerrank-2026.9.7-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3a9cd4de17041d5e916c36b4269716021c5d703f9937b92f1dd9c6fe841f58c
BLAKE2b-256 checksum
How to use checksums
45f1c89837c9a6c27f32a21b6329cad5b99951108bd9479626f6178e87e4f038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page