InfoPeak Captcha for Python
Server-side verification for InfoPeak Captcha - the privacy-first, EU-hosted captcha. No tracking, no cookies, no image puzzles.
Install
pip install infopeak-captcha
Requires Python 3.8+. Zero dependencies (standard library only).
Usage
Add the widget to your form (full guide):
<form action="/signup" method="POST">
<input type="email" name="email" required>
<div class="infopeak-captcha" data-sitekey="YOUR_SITEKEY"></div>
<button type="submit">Sign up</button>
</form>
<script src="https://captcha.infopeak.io/infopeak-captcha.js" defer></script>
Verify the token when the form is submitted (Flask example):
import os
from infopeak_captcha import verify, FIELD
@app.post("/signup")
def signup():
if not verify(
request.form.get(FIELD),
sitekey="YOUR_SITEKEY",
secret=os.environ["INFOPEAK_CAPTCHA_SECRET"],
):
return "Captcha verification failed", 400
# ... proceed
Django works the same way with request.POST.get(FIELD).
Need quota information too?
from infopeak_captcha import verify_detailed
result = verify_detailed(token, sitekey="YOUR_SITEKEY", secret="YOUR_SECRET")
result.valid # True when the token was genuine and unused
result.over_limit # True when the sitekey is over its monthly quota
Verification fails closed: network errors and non-200 responses return valid=False.
Testing
Public test credentials that work on any domain and never count against a quota (never use in production):
sitekey: ipk_test_sitekey
secret: ipk_test_secret
Links
- Get a free sitekey - 10,000 verifications/month at no cost
- Developer documentation
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infopeak_captcha-1.0.1.tar.gz.
File metadata
- Download URL: infopeak_captcha-1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb1d3586ea6dd7856c5561d73634efad6b918bda0a0b3c40c39069a8d80de5a2
|
|
| MD5 |
363919a0a4e8c24ad67cfb4a7b13377e
|
|
| BLAKE2b-256 |
7b0189050a6c3bdbaf439ac6cfae437f19ae81291c1cbcc495eadfe663f77157
|
Provenance
The following attestation bundles were made for infopeak_captcha-1.0.1.tar.gz:
Publisher:
publish.yml on infopeak/captcha-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infopeak_captcha-1.0.1.tar.gz -
Subject digest:
bb1d3586ea6dd7856c5561d73634efad6b918bda0a0b3c40c39069a8d80de5a2 - Sigstore transparency entry: 2212450451
- Sigstore integration time:
-
Permalink:
infopeak/captcha-python@506fdae8724b863581eaa4d3737b20ecf9092ab2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/infopeak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506fdae8724b863581eaa4d3737b20ecf9092ab2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file infopeak_captcha-1.0.1-py3-none-any.whl.
File metadata
- Download URL: infopeak_captcha-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49506409320ad3e3ead817f20e3ed994592005294e60e2fa5295047d1af8101b
|
|
| MD5 |
93d78bc0baab5237cc98e5aa04220cf2
|
|
| BLAKE2b-256 |
fa0aa273709033748bfa1f7d84196bb47eb6f56f070929d237f100b5f8dc5c4e
|
Provenance
The following attestation bundles were made for infopeak_captcha-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on infopeak/captcha-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infopeak_captcha-1.0.1-py3-none-any.whl -
Subject digest:
49506409320ad3e3ead817f20e3ed994592005294e60e2fa5295047d1af8101b - Sigstore transparency entry: 2212450463
- Sigstore integration time:
-
Permalink:
infopeak/captcha-python@506fdae8724b863581eaa4d3737b20ecf9092ab2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/infopeak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506fdae8724b863581eaa4d3737b20ecf9092ab2 -
Trigger Event:
workflow_dispatch
-
Statement type: