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.2

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.2
File Actions
unstuck-0.2.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for unstuck-0.2.2-py3-none-win_amd64.whl
unstuck-0.2.2-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for unstuck-0.2.2-py3-none-manylinux_2_17_x86_64.whl
unstuck-0.2.2-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for unstuck-0.2.2-py3-none-manylinux_2_17_aarch64.whl
unstuck-0.2.2-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for unstuck-0.2.2-py3-none-macosx_13_0_x86_64.whl
unstuck-0.2.2-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for unstuck-0.2.2-py3-none-macosx_13_0_arm64.whl

Total release size: 244.0 MB

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

Download URL unstuck-0.2.2-py3-none-win_amd64.whl
Size 55.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5407d34c46db1e4c6afb1d84ce244b03716b60e6625b05b32ae5300aa6670753
BLAKE2b-256 checksum
How to use checksums
601685871832e9c4880a850655cc2b566c63ac2c5c397b59abbce4e5ee4e1ddf
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.2-py3-none-manylinux_2_17_x86_64.whl

Download URL unstuck-0.2.2-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
c0ffd0bfd0fc0aafee430b611f8c4d49acaafef64bd9e2afa2a41e182ecf18d8
BLAKE2b-256 checksum
How to use checksums
8c8a4a911eb6ec38a3c8b375b73e14d26727a3495c4337902c46a14fcb307537
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.2-py3-none-manylinux_2_17_aarch64.whl

Download URL unstuck-0.2.2-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
4ee50cbf7934bea8058b87b90bbbe6b66af491005c0383c51fbd8bc029eeff24
BLAKE2b-256 checksum
How to use checksums
bfa0f64143f5d0521a0bee803ac4e37c9a46d81aa056875e2f582fd8e5655009
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.2-py3-none-macosx_13_0_x86_64.whl

Download URL unstuck-0.2.2-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
a2ac5c4333cbf3b94efc30ac3aaf0a0c5c3fad1ea5f85d5b8e137eaa8c155b47
BLAKE2b-256 checksum
How to use checksums
55f097d81abec663657611b61a58f67d6160b26b12deef118ba1976dd19a15c5
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.2-py3-none-macosx_13_0_arm64.whl

Download URL unstuck-0.2.2-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
567cbf8825c5cfb5c5af602ad8483e223f87e9fb2b6cfcd73c2d94c9c2aca6a8
BLAKE2b-256 checksum
How to use checksums
afb05a3f442bc8d9e7892ba53e458ccc989c241f8ab73ef6f7057f787e98236e
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.2

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