Zero dependencies — pure standard library.
Install
pip install muaraicaptcha
Or from this repo:
pip install ./sdk/python-SDK
Quick start
from muaraicaptcha import MuaraiCaptcha
client = MuaraiCaptcha("YOUR_API_KEY")
# One-shot: create the task and poll until solved.
solution = client.solve({
"type": "TurnstileTaskProxyless",
"websiteURL": "https://example.com",
"websiteKey": "0x4AAAAAAA...",
})
print(solution["token"])
API
client = MuaraiCaptcha(client_key, base_url="https://api.muaraicaptcha.com", timeout=30.0)
client.get_balance() -> float
client.create_task(task: dict) -> int # returns taskId
client.get_task_result(task_id: int) -> dict|None # solution when ready, None while processing
client.report_incorrect(task_id: int) -> None # auto-refund a bad solve
client.solve(task: dict, poll_interval=5.0, timeout=180.0) -> dict # create + poll
Manual create + poll
task_id = client.create_task({
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "6Lc_a...",
})
import time
while True:
solution = client.get_task_result(task_id)
if solution:
print(solution["gRecaptchaResponse"])
break
time.sleep(5)
Error handling
from muaraicaptcha import ApiError, SolveTimeoutError
try:
solution = client.solve({...})
except ApiError as e:
print(e.code, e.description) # e.g. ERROR_ZERO_BALANCE
except SolveTimeoutError:
print("gave up waiting")
Documentation
License
MIT © MuaraiCaptcha
Metadata
Release files for muaraicaptcha 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| muaraicaptcha-1.1.1.tar.gz | 4.7 kB | Without provenance | Details for muaraicaptcha-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| muaraicaptcha-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for muaraicaptcha-1.1.1-py3-none-any.whl |
Total release size: 10.2 kB
Release files / muaraicaptcha-1.1.1.tar.gz
| Download URL | muaraicaptcha-1.1.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
873781d7f9a5a0e51c9000fa2e6ce581f594b775a520da10e458fdc4e794d2c2
|
|
BLAKE2b-256 checksum How to use checksums |
57cb6cb68059266c2f036eadb7ce53e770c485d09f893f35f85766511b80a05a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / muaraicaptcha-1.1.1-py3-none-any.whl
| Download URL | muaraicaptcha-1.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d38ef9d60ae9f33c4ad7b2cf1c62ed4392012016583803b0e733ff58193a22a1
|
|
BLAKE2b-256 checksum How to use checksums |
58f0a94e6a5b7991cc29331bb6b601a07e97c14ae6e732186a3ce4a6c1669846
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for muaraicaptcha 1.1.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.