Skip to main content

Python client for the SignupCheck anti-abuse API

Project description

signupcheck-sdk

Python client for the SignupCheck anti-abuse API — block disposable emails, VPNs, proxies, bots, and malicious IPs at signup.

Install

pip install signupcheck-sdk

Requires Python 3.9+.

Quick start

import os
import signupcheck
from signupcheck.models.evaluate_signup_request import EvaluateSignupRequest

cfg = signupcheck.Configuration(host="https://api.signupcheck.com")
cfg.api_key["API Key"] = os.environ["SIGNUPCHECK_API_KEY"]

with signupcheck.ApiClient(cfg) as client:
    api = signupcheck.DecisionEngineApi(client)
    resp = api.evaluate_signup(EvaluateSignupRequest(
        email="user@example.com",
        ip="1.2.3.4",
    ))
    print(resp.decision, resp.risk_score)

The client reads the API key via the X-API-Key header. To use Bearer auth instead:

cfg.api_key["Bearer"] = os.environ["SIGNUPCHECK_API_KEY"]
cfg.api_key_prefix["Bearer"] = "Bearer"

Available APIs

Class Endpoint prefix Purpose
DecisionEngineApi /v1/evaluate/signup ALLOW / CHALLENGE / BLOCK decision
ChecksApi /v1/evaluate/{email,ip} Standalone email / IP risk checks
ListsApi /v1/lists Manage allow / block lists
RulesApi /v1/rules Manage custom rules
FeedbackApi /v1/feedback/signup Submit outcome feedback
ObservabilityApi /v1/events, /v1/metrics/signup Query events and metrics
AccountApi /v1/me Validate API key (no credit charge)

Development

This package is generated from the OpenAPI spec in the signupcheck API repo. To regenerate after a schema change, run make sdk-python in the API repo.

Local build and test from this directory:

make build      # python -m build → dist/
make check      # twine check dist/*

License

Proprietary. See the repository for terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

signupcheck_sdk-0.1.1.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

signupcheck_sdk-0.1.1-py3-none-any.whl (171.7 kB view details)

Uploaded Python 3

File details

Details for the file signupcheck_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: signupcheck_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for signupcheck_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b6b07f3bcc3a1df154e4339441c4de12d7f9a5341e1817a0559c8357bbd951ed
MD5 920408729b58d577fb452b8498963573
BLAKE2b-256 359b56291b6efaa933d6599f91b4b3952f07589507631c3c2f0a7925dec26fcb

See more details on using hashes here.

File details

Details for the file signupcheck_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: signupcheck_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 171.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for signupcheck_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8578916ebcd27899241c958520c6bc31ba5aeffeefd9512a89c35b149c072008
MD5 a9ca9b65a475230a5ae50689bf5a2029
BLAKE2b-256 00ef9e87c29969249fd8614cca82dd01d9cbfcf7ee6cf3088a576142596a8463

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page