semvec/pypi-packages huggingface dataset:
fastcaptcha-python 1.1.0
Fastcaptcha solve recaptchaV2, recaptchaV3, funcaptcha, imageToText very fast and cheap
License: MIT
Requires Python: >=3.7,<4.0
Keywords: fastcaptcha,recaptcha,recaptchav3,funcaptcha,imagetotext,solver captcha,recaptcha solver,funcaptcha solver,recaptcha recognition

FastCaptcha package for Python
=
[fastcaptcha.ru](https://fastcaptcha.ru) package for Python3

Fastcaptcha solve recaptchaV2, recaptchaV3, funcaptcha, imageToText very fast and cheap

# Install

```bash
pip install fastcaptcha-python
```

# Usage

## create client

```python
from fastcaptcha import FastCaptchaClient

APIKEY = "<EXAMPLE API KEY>"
client = FastCaptchaClient(apikey=APIKEY)
```

## Recaptcha v2:

```python
result = client.recaptcha_v2_task_proxy_less(site_url="SITE_URL", site_key="SITE_KEY", invisible=False)
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```

## Recaptcha v2 enterprise:

```python

result = client.recaptcha_v2_enterprise_task_proxy_less(site_url="SITE_URL", site_key="SITE_KEY")
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```

## Recaptcha v3:

```python
result = client.recaptcha_v3_task_proxy_less(site_url="SITE_URL", site_key="SITE_KEY",
                                             page_action="PAGE_ACTION")
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```

## Recaptcha v3 enterprise:

```python
result = client.recaptcha_v3_enterprise_task_proxy_less(site_key="SITE_KEY",
                                                        site_url="SITE_URL",
                                                        page_action="PAGE_ACTION")
if result["code"] == 0:  # task success:
    print(result.get('token'))
    print(result.get('user_agent'))
else:  # error
    print(result["message"])
```

## Recaptcha recognition

```python
url_list = ['']
caption = 'cars'
result = client.recaptcha_recognition(url_list=url_list, caption=caption)
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```

## Image2text

```python

result = client.image_to_text(file="/path/to/example-file.jpg")
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```

## Funcaptcha

```python
site_key = "2CB16598-CB82-4CF7-B332-5990DB66F3AB"
site_url = "https://outlook.com/"
result = client.fun_captcha_task_proxy_less(site_url, site_key)
if result["code"] == 0:  # task success:
    print(result["token"])
else:  # error
    print(result["message"])
```
project-utils-2023 0.3.19
python project_utils tools
License: MIT
Keywords: python,utils,project utils,aiofiles

# project-utils

#### 介绍
project-utils 基于python3 的工具包

#### 软件架构
使用时继承相应类即可


#### 安装教程
```shell
pip3 install project-project_utils-2023
```

#### 使用说明
1. 安装以下格式创建工程
   - config
     - config.ini
       ```ini
       [BASE]
       data_url = data
       log_url = logs
       output_url = output
       tmp_url = tmp
       [MYSQL]
       host = 
       port = 
       user = 
       password = 
       database = 
       
       [REDIS]
       host = 
       port = 
       password = 
       db = 
       
       [SYSTEM]
       path =
       ```

   - data
   - logs
   - output
   - src
   - tmp
## example

```python
import asyncio

from project_utils.web.django import CeleryConfig

from new_utils import settings


class Config(CeleryConfig):
    settings = settings
    max_length = 256

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.loop = asyncio.get_event_loop()

    def django_setting_init(self):
        super().django_setting_init()
        # self.settings.DEBUG = False
        self.add_allowed_hosts("*")
        self.add_app("rest_framework")
        self.add_app("user")
        self.add_middleware("middleware.my_middle.MyMiddleware")

```