fingerprintchecker (Python)
Install with pip install fingerprintchecker; import it as fpchecker.
Server SDK for FingerPrintChecker. Python 3.9+, standard-library HTTP, one runtime dependency (cryptography, for sealed results).
from fpchecker import FpChecker, unseal_result, verify_webhook_signature, FpCheckerApiError
fp = FpChecker(os.environ["FPCHECKER_SECRET_KEY"])
verdict = fp.check_eligibility({"visitorId": "v_..."})
if verdict.get("ok") is False:
print("refused:", verdict.get("error") or verdict.get("reason"))
Client
FpChecker(secret_key, base_url="https://api.fpchecker.com", timeout=10, *, publishable_key=None) has one method per OpenAPI operationId, in snake_case: create_intent, get_challenge, identify, check_eligibility, release_eligibility, check_quota, bind_subject, relate_subjects, send_feedback, get_claim_flags, search_events, get_event, update_event, get_visitor, delete_visitor, get_health, get_status. Bodies and query parameters are plain dicts; responses are dicts.
- The secret key goes in the
X-Secret-Keyheader, never in a URL, and is not shown byrepr().get_challengeandidentifyuse the publishable key (publishable_key=) inX-Publishable-Keyinstead;get_healthandget_statussend no key. - 2xx responses are returned as data, including refusals such as
{"ok": False, "error": ...}. Checkok. - Non-2xx raises
FpCheckerApiErrorwithstatus,code(errororreasonfrom the body),retry_after(seconds) andbody. - Network failures and timeouts also raise
FpCheckerApiError, withstatus0,code"network_error"or"timeout", and the original exception as__cause__. - Redirects are never followed (they would forward the secret key to another origin).
base_urlmust be https, except localhost, 127.0.0.1 and [::1] (otherwiseValueError). timeout(positive finite seconds) applies per network operation (connect, each read), not to the whole call.- Only GET requests retry (429, 5xx, network failures and timeouts; at most 2 retries, honouring
Retry-After, wait capped at 10 s). POST, PATCH and DELETE are never retried.
Sealed results
result = unseal_result(identify_response["sealedResult"], [os.environ["FPC_SEALED_KEY"]])
Pass every active key (active and previous during rotation). Raises SealedResultError with .code of bad_format, unknown_key, decrypt_failed, invalid_key or unsupported_version.
Webhooks
# raw_body must be the exact bytes received, not a re-serialised object.
verify_webhook_signature(request.body, request.headers["FPC-Signature"], os.environ["FPC_WEBHOOK_SECRET"])
Raises WebhookSignatureError with .code of malformed_header, bad_signature, expired or future. tolerance_sec (default 300) must be a finite number >= 0, else TypeError / ValueError.
License
Apache-2.0
Metadata
Release files for fingerprintchecker 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fingerprintchecker-0.1.0.tar.gz | 17.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fingerprintchecker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / fingerprintchecker-0.1.0.tar.gz
| Download URL | fingerprintchecker-0.1.0.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b71ec477cec03a6e91850a2442f925bdb99caeffe8cfa2fa6a4fb26b3d64528
|
|
BLAKE2b-256 checksum How to use checksums |
400e55877378ba92c8742061f90852d5294bbec5ea4e9380f7a486af72a30270
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / fingerprintchecker-0.1.0-py3-none-any.whl
| Download URL | fingerprintchecker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2a14f6eb22265c647e425523803f33bf9f5b3dc30bd5819e048bb98d9654abf
|
|
BLAKE2b-256 checksum How to use checksums |
598529b685d79ef480a99644d55d0f5b91d1a4c14c62f800d5b49c79eba74426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for fingerprintchecker 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.