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. Inconsistent options raise UnstuckConfigError, a ValueError subclass (the TypeScript SDK's error of the same name): alerts="required" without Unstuck Cloud, or a relay that isn't wss:// (ws:// only to localhost, from Unstuck(...)).

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

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

Total release size: 244.5 MB

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

Download URL unstuck-0.5.0-py3-none-win_amd64.whl
Size 55.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b4eabdd7e8bb20d36324ee2dcd1b7901e103c2600e47619aac4567b286a4eb34
BLAKE2b-256 checksum
How to use checksums
6aba4ce73e06deaf07771468c20b08634759a68b590c1e47df0678ceeb8fc5a2
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.5.0-py3-none-manylinux_2_17_x86_64.whl

Download URL unstuck-0.5.0-py3-none-manylinux_2_17_x86_64.whl
Size 52.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c0142063ec2d33a94b17087a3a9fadc2abaff20834518ec0c0aa2dca9060174e
BLAKE2b-256 checksum
How to use checksums
0950bb5be75ace2c02b3825e9a4bebe1c9e2f1db260f69d1b8749d1593569e91
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.5.0-py3-none-manylinux_2_17_aarch64.whl

Download URL unstuck-0.5.0-py3-none-manylinux_2_17_aarch64.whl
Size 52.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
36e5faa03f11681056ad034ae852c60d81324a6b7d314902e949f3b158e0cbf9
BLAKE2b-256 checksum
How to use checksums
1e2f1ac38491db47977a63e033c0c80ce98420e72e6379d70ebcd6cb25fd0fad
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.5.0-py3-none-macosx_13_0_x86_64.whl

Download URL unstuck-0.5.0-py3-none-macosx_13_0_x86_64.whl
Size 43.9 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
9af03f287d471337b2854888bb4059fd526de3f22c4c5548d8f59def0e9c578f
BLAKE2b-256 checksum
How to use checksums
64b745cf8cf9a2afcd4f90edafe72796e8fc1b8990e2eac3e6be9116e0a88e13
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.5.0-py3-none-macosx_13_0_arm64.whl

Download URL unstuck-0.5.0-py3-none-macosx_13_0_arm64.whl
Size 41.3 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
a3644ec0849fcbe2b1e4480015e1ab49e0c3d4bab9dd2a849c0c5d2fc5c82338
BLAKE2b-256 checksum
How to use checksums
620d4bb968399f0f0c9b43d1ce5b305921c1fbce74ac00b4233db677e5d3c703
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.5.0

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