Metadata-Version: 2.5
Name: valgix-humanpass
Version: 0.1.0
Summary: Official Python server SDK for Valgix HumanPass.
Project-URL: Documentation, https://docs.valgix.com/humanpass/
Project-URL: Repository, https://github.com/valgixcenter/humanpass-python
Project-URL: Issues, https://github.com/valgixcenter/humanpass-python/issues
Author: Valgix
Keywords: captcha,humanpass,security,valgix
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# HumanPass for Python

Official Python server SDK for [Valgix HumanPass](https://docs.valgix.com/humanpass/).

```bash
pip install valgix-humanpass
```

```python
import os
from humanpass import HumanPass

humanpass = HumanPass(secret=os.environ["HUMANPASS_SECRET_KEY"])

result = humanpass.verify(
    response=request.form["humanpass-response"],
    expected_action="signup",
    expected_hostname="example.com",
)

if not result.success:
    # Reject the protected operation.
    pass
```

Keep the secret key on your server. Browser applications use the HumanPass widget and a public site key instead.
