Skip to main content

unstuck (Python)

pip install unstuck

Human takeover for AI browser agents. When your agent hits a CAPTCHA, a login wall or a 2FA prompt, await unstuck.takeover(page, reason=...) pauses it, gives a human a link to the live browser, and returns when they're done.

from unstuck import Unstuck

async with Unstuck(on_link=lambda link: print(link.reason, link.url)) as unstuck:
    result = await unstuck.takeover(page, reason="Solve the CAPTCHA")  # Playwright async Page
if result.status != "resolved":
    raise RuntimeError(f"human takeover {result.status}")

result.status is resolved, timed_out, cancelled (the human tapped "Can't solve") or failed (for example the page closed). takeover() raises UnstuckEngineError when the engine binary can't run, and ValueError for misuse such as alerts="required" without Unstuck Cloud.

The engine comes in the wheel for your platform (macOS 13+ on Apple silicon or Intel, Linux with glibc 2.17+, Windows x64). To use another binary, set UNSTUCK_ENGINE_PATH or Unstuck(engine_path=...).

Send the link through Unstuck Cloud, so it opens on any phone, by setting UNSTUCK_API_KEY=uk_live_.... With Cloud, takeover(..., alerts=False) skips the phone alert for one takeover, and alerts="required" ends the takeover at once as failed with detail alert_failed if Unstuck Cloud can't accept the link for at least one paired phone. Tutorials: https://unstuck.sh/docs

License: Apache-2.0, including the bundled engine.

Metadata

Release files for unstuck 0.2.1

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

Built distributions (wheels)

Table of built distributions (wheels) for unstuck 0.2.1
File Actions
unstuck-0.2.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for unstuck-0.2.1-py3-none-win_amd64.whl
unstuck-0.2.1-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for unstuck-0.2.1-py3-none-manylinux_2_17_x86_64.whl
unstuck-0.2.1-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for unstuck-0.2.1-py3-none-manylinux_2_17_aarch64.whl
unstuck-0.2.1-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for unstuck-0.2.1-py3-none-macosx_13_0_x86_64.whl
unstuck-0.2.1-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for unstuck-0.2.1-py3-none-macosx_13_0_arm64.whl

Total release size: 244.0 MB

Release files / unstuck-0.2.1-py3-none-win_amd64.whl

Download URL unstuck-0.2.1-py3-none-win_amd64.whl
Size 55.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dc585e53fa26a4e15bd6af3c23ca3ad1f23213350b709d44ad81d2afba9a007d
BLAKE2b-256 checksum
How to use checksums
3bbe0d2b1bc835b328da1822420c9a7653d8f6c93c0fc8191d9e85da1f94179c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / unstuck-0.2.1-py3-none-manylinux_2_17_x86_64.whl

Download URL unstuck-0.2.1-py3-none-manylinux_2_17_x86_64.whl
Size 52.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e8e84d62299e72707ba197c0974880a415f72004bb081b6aefba18735beab511
BLAKE2b-256 checksum
How to use checksums
34bf64b9c2973f960731a3c93c678771ca3bbb7d2f22198bdb57e068ce76d4cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / unstuck-0.2.1-py3-none-manylinux_2_17_aarch64.whl

Download URL unstuck-0.2.1-py3-none-manylinux_2_17_aarch64.whl
Size 52.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
50db4a7d0979dbf399a39dc148677ab3e1d9b342fb0f92320d4187e88e008646
BLAKE2b-256 checksum
How to use checksums
c4b3e851f6364655890c4186b31bafbf53a0f19988dd18c9431f966ce45c0333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / unstuck-0.2.1-py3-none-macosx_13_0_x86_64.whl

Download URL unstuck-0.2.1-py3-none-macosx_13_0_x86_64.whl
Size 43.8 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
0ba78cbb2220cf7a7b37dc7b8a0e823e4327d254a880ff62c24c966982659385
BLAKE2b-256 checksum
How to use checksums
67d91261ba9391f2ff9b8a933926229063f9afc87fc5d279197b318cdab6af05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / unstuck-0.2.1-py3-none-macosx_13_0_arm64.whl

Download URL unstuck-0.2.1-py3-none-macosx_13_0_arm64.whl
Size 41.2 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
34163821dc275c3b7410553ce8eccf804c69843fe6cebac81067c11456aa429a
BLAKE2b-256 checksum
How to use checksums
97c3abf81f33a6e868b03c322f671d28b29413eb70a5ef1653064635a799c732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for unstuck 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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