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 humantask
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file humantask-1.3.4.tar.gz.
File metadata
- Download URL: humantask-1.3.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69953c8c438fa8daed6a6d6ba21e2e1572fdb20fa7acb2de8050aee33599d214
|
|
| MD5 |
775470609daa015f094f82685170ce59
|
|
| BLAKE2b-256 |
cd1aae53bb8725d1cd1e7abe65c4413272c5a4dabbad13f91e3ffb6019c68fc7
|
File details
Details for the file humantask-1.3.4-py3-none-any.whl.
File metadata
- Download URL: humantask-1.3.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
281743bfcdba700a3a6a549efa8c52b31d8adba77f646d7f35d3f5653b05d2a8
|
|
| MD5 |
de93cadbde9226e8350f3710f4a0376f
|
|
| BLAKE2b-256 |
6ac68a25f259fade67c0c39199865d860dc13bd1132ffadeb8134cdc1e813eb6
|