Skip to main content

yescaptcha-python

This is SDK for YesCaptcha.

Installation

pip3 install yescaptcha

Usage

Below are some simple exmaples for Recaptcha, Image2Text:

NoCaptchaTaskProxyless

from yescaptcha.task import NoCaptchaTaskProxyless
from yescaptcha.client import Client

CLIENT_KEY = <YOUR_CLIENT_KEY>
website_url = 'https://www.google.com/recaptcha/api2/demo'
website_key = '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'

client = Client(client_key=CLIENT_KEY, debug=True)
task  = NoCaptchaTaskProxyless(website_key=website_key, website_url=website_url)
job = client.create_task(task)
print('result', job.get_solution())

ImageToText

from utils import resize_base64_image_from_file # see examples/utils.py
from yescaptcha.task import ImageToTextTask
from yescaptcha.client import Client

CLIENT_KEY =  <YOUR_CLIENT_KEY>
IMAGE_PATH = <IMAGE_PATH>

client = Client(client_key=CLIENT_KEY)
task  = ImageToTextTask(resize_base64_image_from_file(IMAGE_PATH))
job = client.create_task(task)
print('result', job.get_solution_text())

Please check http://yescaptcha.readthedocs.org to get more details.

Metadata

Release files for yescaptcha 0.1.0

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

Source distribution (sdist)

Source distribution for yescaptcha 0.1.0
File Size Uploaded Provenance Actions
yescaptcha-0.1.0.tar.gz 6.2 kB Without provenance Details for yescaptcha-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yescaptcha 0.1.0
File Interpreter ABI Platform Actions
yescaptcha-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for yescaptcha-0.1.0-py2.py3-none-any.whl

Total release size: 15.2 kB

Release files / yescaptcha-0.1.0.tar.gz

Download URL yescaptcha-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
79b165d53d9f42e76f6a1cb8d5ecefc2af893cef96fa044f020f2d5683a102e9
BLAKE2b-256 checksum
How to use checksums
1426d92bc2426675f78e5475e63893142f54b929fa91c419b3866d563300489d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.13

Release files / yescaptcha-0.1.0-py2.py3-none-any.whl

Download URL yescaptcha-0.1.0-py2.py3-none-any.whl
Size 9.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
36f9418eec16bc5012ca6dd945aa3ac3101f3923be28680df3e2218a1cc9b301
BLAKE2b-256 checksum
How to use checksums
97525dd058076c63dcb74dfaff6465199d9a443d41cafa4a8e222c6b19085e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.13

Security for yescaptcha 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files 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