semvec/pypi-packages huggingface dataset:
drf-hcaptcha 1.0.1
Django rest framework hcaptcha field serializer.
License: MIT
Requires Python: >=3.7
Keywords: django,drf,rest,django-rest-framework,hCAPTCHA,hCAPTCHA v2,hCAPTCHA v3

# Django REST hCAPTCHA

**Django REST hCAPTCHA v2 and v3 field serializer**


[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI](https://img.shields.io/pypi/v/drf-hcaptcha)](https://pypi.org/project/drf-hcaptcha/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/drf-hcaptcha)](https://pypi.org/project/drf-hcaptcha/)

## Requirements

*   Python: 3.7, 3.8, 3.9, 3.10, 3.11
*   Django: 3.2, 4.0, 4.1, 4.2
*   DRF: 3.11, 3.12, 3.13, 3.14

## Installation
1.  Install with `pip install drf-hcaptcha`
2.  Add `"drf_hcaptcha"` to your `INSTALLED_APPS` settings.
3.  Set in settings `DRF_HCAPTCHA_SECRET_KEY`

```python
INSTALLED_APPS = [
   ...,
   "drf_hcaptcha",
   ...,
]

...

DRF_HCAPTCHA_SECRET_KEY = "YOUR SECRET KEY"
```

## Usage

```python
from rest_framework.serializers import Serializer
from drf_hcaptcha.fields import HCaptchaV2Field


class V2Serializer(Serializer):
    hcaptcha = HCaptchaV2Field()
    ...

```

## Settings

`DRF_HCAPTCHA_SECRET_KEY` - set your hCAPTCHA secret key. Type: str.

`DRF_HCAPTCHA_DEFAULT_V3_SCORE` - by default: `0.5`. Type: float.

`DRF_HCAPTCHA_ACTION_V3_SCORES` - by default: `{}`. Type: dict. You can define specific score for each action e.g. `{"login": 0.6, "feedback": 0.3}`

`DRF_HCAPTCHA_DOMAIN` - by default: `api.hcaptcha.com`. Type: str.

`DRF_HCAPTCHA_PROXY` - by default: `{}`. Type: dict. e.g. `{'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'}`

`DRF_HCAPTCHA_VERIFY_REQUEST_TIMEOUT` - by default: `10`. Type: int.

### Priority of secret_key value

1.  settings `DRF_HCAPTCHA_SECRET_KEY`
2.  the argument `secret_key` of field
3.  request.context["hcaptcha_secret_key"]

## hCAPTCHA v3

Validation is passed if the score value returned by Google is greater than or equal to required score.

Required score value: `0.0 - 1.0`

### Priority of score value

If not defined or zero in current item then value from next item.

1.  Value for action in settings `DRF_HCAPTCHA_ACTION_V3_SCORES`
2.  Value in argument `required_score` of field
3.  Default value in settings `DRF_HCAPTCHA_DEFAULT_V3_SCORE`
4.  Default value `0.5`
json2toml 2023.10.8
## shell command toolkit :: convert json to toml
License: MIT

# json2toml

- 命令行工具(v2023.10.04)

-----

```
usage: 

## shell command toolkit :: convert json to toml
    
    json2toml (2023.10.08)

eg:
  [0] json2toml --help                                  ; show help
  [1] json2toml input.json output.toml                  ; json to tmol
  [2] json2toml input.toml output.json                  ; toml to json   
  [3] json2toml --stdin '{"name":"jsonfile"}'         ; stdin:json to stdout:toml
  [4] json2toml --stdin 'name = "jsonfile"' --mode=2    ; stdin:toml to stdout:json

options:
  -h, --help            show this help message and exit
  -v, --version         show versions
  -i, --stdin           stdin::text
  -d, --dry_run         debug only, 不运行，只打印调试参数
  --force_redo          force overwrite
  --indent INDENT       output json/toml file
  --mode MODE           0-auto; 1-json2toml; 2-toml2json;
  --input_file INPUT_FILE
                        input json/toml file
  --output_file OUTPUT_FILE
                        output json/toml file

```
timexwiz 1.0.1
Timexwiz is a simple Python library for time measure, benchmarking and algorithm comparisons.
License: MIT
Keywords: measure,benchmark,time,library,Python

# timexwiz
timexwiz - это небольшая библиотека для проведения интеллектуальных замеров процессорного времени, позволяющая проводить замеры времени
выполнения однотипных (с одинаковым интерфейсом) функций на одинаковом наборе данных, затрачивая на это заданное в секундах время.

## Установка

Вы можете установить timexwiz с помощью pip:

```bash
pip install timexwiz
```

## Лицензия

Этот проект лицензирован под лицензией MIT.
Подробнее смотрите файл [LICENSE](LICENSE).
attis 0.0.3.post3
A productivity tool for linux terminal
License: MIT
Requires Python: <4,>=3.5

<img src='https://img.shields.io/pypi/l/attis.svg'> <img src='https://img.shields.io/pypi/v/attis.svg'> <img src='https://img.shields.io/pypi/dm/attis.svg'> <img src='https://img.shields.io/pypi/pyversions/attis.svg'> <img src='https://img.shields.io/badge/code%20style-black-000000.svg'>

# Attis
A productivity tool for linux terminal

# Installation

```
$ sudo pip3 install attis
```

# Usage