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.3.tar.gz (64.2 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.3-py3-none-any.whl (173.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for signupcheck_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 74b0a544def95a9327c7fef2ba308d40bc71055f21e0cbc3185643acfa5839ac
MD5 95eb261cfc9f461049ba1b7cbe1bbe2a
BLAKE2b-256 5389116b5385334e61eddcf5fc76b457051afc34556326f49b50f6e74eb54530

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signupcheck_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36ffd0eaafa1082cba21ac43db1530cc185dec795d7b4823a0f0537f35dc106a
MD5 2771db94902303d60274af614852f49b
BLAKE2b-256 ccc00307d7dd10b910ad32644063c9f43407c56fe9a2795af32e8c50859a2817

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