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.0.tar.gz (4.1 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.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humanod-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.tar.gz
Algorithm Hash digest
SHA256 39c98beb1042d5dfa7c8b4045c6a6d3e58e78eaf1c740328d2651f8e20f3d0b1
MD5 2a722a0c362b2a85b3b15bbb0aec024c
BLAKE2b-256 a01e1ed88ebba0c1158144dc0ff06fd65437c477811beb488392b6bedde24871

See more details on using hashes here.

File details

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

File metadata

  • Download URL: humanod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0456cde9f2bcdd440a5677f91d5a0e6fa615a0a4d3e44bbe22af1a0d630519df
MD5 05cc2a0f9bb01b038c0319c81211f5af
BLAKE2b-256 79474a32fb09b664fdb4c2e15825d380cd0ff97815698989a2b59041cf1646eb

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