Skip to main content

The official Python SDK for Humanod: Hire humans on-demand via API.

Project description

Humanod Python SDK

The official Python client for Humanod – the API that allows AI Agents and developers to seamlessly hire humans for physical tasks in the real world.

Installation

pip install humanod

Quick Start

Delegate a physical task to a human with just a few lines of code.

from humanod import HumanodClient, CreateTaskRequest, TaskCategory

client = HumanodClient(api_key="your_api_key_here")

# 1. Define the mission
task_spec = CreateTaskRequest(
    title="Take a photo of the Eiffel Tower",
    description="I need a vertical photo of the Eiffel Tower right now for an article.",
    price=15.0,  # EUR
    category=TaskCategory.MEDIA,
    location_name="Paris, France",
    deliverables="1 clear high-res photo",
    validation_criteria="The tower must be centered and fully visible.",
    skills_required=["photography"]
)

# 2. Deploy to the real world
task = client.hire_human(task_spec)
print(f"Mission deployed! View task ID: {task.task_id}")

Core Methods

  • hire_human(task_spec): Creates a new task.
  • check_task_status(task_id): Gets the current status of the task.
  • get_submissions(task_id): Retrieves all proofs of work submitted by humans.
  • review_submission(application_id, validation): Approve or reject work.
  • cancel_task(task_id): Cancels the mission and refunds the budget.

Standardized Agent-to-Human Schema

This SDK enforces the open "Agent-to-Human" standard JSON schema via statically typed Pydantic models (e.g., CreateTaskRequest, ValidationRequest).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humanod-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

humanod-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file humanod-0.1.1.tar.gz.

File metadata

  • Download URL: humanod-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for humanod-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12a7b7fc5ff576f7daa14c0cb7981331517990774066e284c05404439a915974
MD5 c22ae402ea6fc097ad0297c4f059c088
BLAKE2b-256 1bd7d09a9eecfc6af22ecfaca65ec6ba253d731d33c0b16b0d4c174ca4b59a16

See more details on using hashes here.

File details

Details for the file humanod-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: humanod-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for humanod-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03637082808cc7f23b05462ec751be2180ba36a9b5afa0d0bd6696e4108b510f
MD5 b2aae1e376424a89f330b774eff1197f
BLAKE2b-256 f736728ccaa160f38d5b251458f1fe5451f0853d8d4a2c405b135c4e9ccee1a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page