Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.8 #6

Merged
merged 12 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /home/runner/work/python3-captchaai/python3-captchaai/src/coverage/coverage.xml
fail_ci_if_error: true
verbose: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![Downloads](https://pepy.tech/badge/python3-captchaai/month)](https://pepy.tech/project/python3-captchaai)

[![Maintainability](https://api.codeclimate.com/v1/badges/3431fd3fe71baf7eb9da/maintainability)](https://codeclimate.com/github/AndreiDrang/python3-captchaai/maintainability)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/323d4eda0fe1477bbea8fe8902b9e97e)](https://www.codacy.com/gh/AndreiDrang/python3-captchaai/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AndreiDrang/python3-captchaai&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/AndreiDrang/python3-captchaai/branch/main/graph/badge.svg?token=2L4VVIF4G8)](https://codecov.io/gh/AndreiDrang/python3-captchaai)

[![Build check](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml)
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
for x in os.walk("src/python3_captchaai/"):
sys.path.insert(0, x[0])

from python3_captchaai import core, hcaptcha, image_to_text, recaptcha
from python3_captchaai import (core, gee_test, hcaptcha, image_to_text,
recaptcha)
from python3_captchaai.__version__ import __version__

# -- Project information -----------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The library is intended for software developers and is used to work with the `Ca
modules/image-to-text/example.rst
modules/re-captcha/example.rst
modules/h-captcha/example.rst
modules/gee-test/example.rst

.. toctree::
:maxdepth: 2
Expand Down
12 changes: 12 additions & 0 deletions docs/modules/gee-test/example.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
GeeTest
=======

To import this module:

.. code-block:: python

from python3_captchaai.gee_test import GeeTest


.. autoclass:: gee_test.GeeTest
:members:
2 changes: 1 addition & 1 deletion docs/modules/h-captcha/example.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
HCaptcha
=============
========

To import this module:

Expand Down
1 change: 1 addition & 0 deletions docs/modules/main/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[![Downloads](https://pepy.tech/badge/python3-captchaai/month)](https://pepy.tech/project/python3-captchaai)

[![Maintainability](https://api.codeclimate.com/v1/badges/3431fd3fe71baf7eb9da/maintainability)](https://codeclimate.com/github/AndreiDrang/python3-captchaai/maintainability)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/323d4eda0fe1477bbea8fe8902b9e97e)](https://www.codacy.com/gh/AndreiDrang/python3-captchaai/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AndreiDrang/python3-captchaai&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/AndreiDrang/python3-captchaai/branch/main/graph/badge.svg?token=2L4VVIF4G8)](https://codecov.io/gh/AndreiDrang/python3-captchaai)

[![Build check](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml)
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/re-captcha/example.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ReCaptcha
=============
=========

To import this module:

Expand Down
2 changes: 1 addition & 1 deletion src/python3_captchaai/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.7a"
__version__ = "0.0.8"
37 changes: 17 additions & 20 deletions src/python3_captchaai/gee_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class BaseGeeTest(BaseCaptcha):
request_url: API address for sending requests

Examples:
>>> GeeTest(
... api_key="CAI-1324...",
>>> GeeTest(api_key="CAI-1324...",
... captcha_type="GeetestTaskProxyless",
... websiteURL="https://www.geetest.com/en/demo",
... gt="022397c99c9f646f6477822485f30404",
Expand Down Expand Up @@ -95,15 +94,14 @@ def captcha_handler(
Like ``coordinate``, ``enterprisePayload`` and etc. - more info in service docs

Examples:
>>> GeeTest(
... api_key="CAI-1324...",
... captcha_type="GeetestTaskProxyless",
... websiteURL="https://www.geetest.com/en/demo",
... gt="022397c99c9f646f6477822485f30404",
... ).captcha_handler(
... challenge="a66f31a53a404af8d1f271eec5138aa1",
... geetestApiServerSubdomain="api.geetest.com"
... )
>>> GeeTest(api_key="CAI-1324...",
... captcha_type="GeetestTaskProxyless",
... websiteURL="https://www.geetest.com/en/demo",
... gt="022397c99c9f646f6477822485f30404",
... ).captcha_handler(
... challenge="a66f31a53a404af8d1f271eec5138aa1",
... geetestApiServerSubdomain="api.geetest.com"
... )
CaptchaResponseSer(errorId=False
errorCode=None
errorDescription=None
Expand Down Expand Up @@ -138,15 +136,14 @@ async def aio_captcha_handler(
Like ``coordinate``, ``enterprisePayload`` and etc. - more info in service docs

Examples:
>>> await GeeTest(
... api_key="CAI-1324...",
... captcha_type="GeetestTaskProxyless",
... websiteURL="https://www.geetest.com/en/demo",
... gt="022397c99c9f646f6477822485f30404",
... ).aio_captcha_handler(
... challenge="a66f31a53a404af8d1f271eec5138aa1",
... geetestApiServerSubdomain="api.geetest.com"
... )
>>> await GeeTest(api_key="CAI-1324...",
... captcha_type="GeetestTaskProxyless",
... websiteURL="https://www.geetest.com/en/demo",
... gt="022397c99c9f646f6477822485f30404",
... ).aio_captcha_handler(
... challenge="a66f31a53a404af8d1f271eec5138aa1",
... geetestApiServerSubdomain="api.geetest.com"
... )
CaptchaResponseSer(errorId=False
errorCode=None
errorDescription=None
Expand Down
3 changes: 3 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def finalize_options(self):
pass

def run(self):
logging.info("Clean builds . . .")
shutil.rmtree("dist/")

logging.info("Building Source and Wheel distribution . . .")
os.system("python setup.py bdist_wheel")

Expand Down