Skip to main content

<<<<<<< HEAD

AZCaptcha.com Python API

This library implements a simple to use wrapper around the AZCaptcha.com API.

Installation

From PyPi

pip install azcaptchaapi

From source

git clone https://github.com/azcaptcha/azcaptchaapi.git
cd azcaptchaapi
python setup.py install

Examples

Initializing the API

from azcaptchaapi import AZCaptchaApi
api = AZCaptchaApi('<API KEY>')

Solving a captcha blocking

with open('/my/captcha/path.png', 'rb') as captcha_file:
    captcha = api.solve(captcha_file)

print(captcha.await_result())

Waits until the captcha is either solved or an error occurred (indicated through an exception).

Solve captcha "non-blocking"

captcha = api.solve(captcha_file)
print(captcha.try_get_result())

If already available, prints the captcha text, else None. Please note that while this code doesn't repeatedly ask the API if the captcha was solved, the HTTP request is still sent synchronously, so this method isn't really non-blocking.

Reporting a bad captcha

result = captcha.await_result()
if use_captcha_code(result) == 'failed':
    captcha.report_bad()

Query account balance

print(api.get_balance())

Compatibilty

This library was successfully tested on Python 2.7 and 3.5. Python versions < 2.7 are not officially supported.

License

This code is released under MIT license. Dependencies are under their respective licenses.

This project is not affiliated with, maintained, authorized, endorsed or sponsored by AZCaptcha.com or any of its affiliates.

azcaptchaapi

python api upload image captcha to azcaptcha.com

Metadata

Release files for azcaptchaapi 0.3.1

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

Built distribution (wheel)

Table of built distributions (wheels) for azcaptchaapi 0.3.1
File Interpreter ABI Platform Actions
azcaptchaapi-0.3.1-py3-none-any.whl Python 3 none any Details for azcaptchaapi-0.3.1-py3-none-any.whl

Release files / azcaptchaapi-0.3.1-py3-none-any.whl

Download URL azcaptchaapi-0.3.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18f33540b27a357b08fa4b49e80f6ebb2c72a14d975c17b548a041a99eb2233c
BLAKE2b-256 checksum
How to use checksums
b1e5b5fd7b759adbd2082306f3c7020798815fcf075e4ce102e6a561847a8f37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for azcaptchaapi 0.3.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.

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file No provenance

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