Skip to main content

No project description provided

Project description

HumanTask.ai - Python Package

⚠️ This package is in private beta. If you want to try it out, join the waitlist.

Installation

pip install openai

Usage

When you run a humantask, it will return ONCE AND ONLY ONCE the task is completed by a human. You can kill the process anytime and run it back, once the task is completed you will get the answer.

Synchronous

import os
from humantask import HumanTask

humantask = HumanTask(
    # This is the default and can be omitted
    api_key=os.environ.get("HUMANTASK_API_KEY"),
)

answer = humantask.run(
    # Put your task parameters here
)
# wait until the task is completed by a human

Asynchronous

import os
import asyncio
from humantask import AsyncHumanTask

humantask = AsyncHumanTask(
    # This is the default and can be omitted
    api_key=os.environ.get("HUMANTASK_API_KEY"),
)

async def main():
    answer = await humantask.run(
        # Put your task parameters here
    )
    # wait until the task is completed by a human

asyncio.run(main())

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

humantask-1.3.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

humantask-1.3.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file humantask-1.3.0.tar.gz.

File metadata

  • Download URL: humantask-1.3.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for humantask-1.3.0.tar.gz
Algorithm Hash digest
SHA256 dcc919c8eedd5de88a24e32f3b5841064f7cbf8d7d4128a151c5274fb2d74abf
MD5 757665301fba1dcefddee36db0ec485e
BLAKE2b-256 bde133b4f1a1a644b89cc9b8bbe4df1108eaf0cf5f32d258be40562ec95b8e3f

See more details on using hashes here.

File details

Details for the file humantask-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: humantask-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for humantask-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b3ab910020cc00c4c2649096fbc82bab73ac3a4d896748b554923782218aa5
MD5 d28431b6704e9d6e0be40e4027a6c4d5
BLAKE2b-256 453e2f8f82affaea27e992d11600f4cfe3f9a73c80c6b12be8d53c59dacb5183

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