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.2.tar.gz (63.6 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.2-py3-none-any.whl (171.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: signupcheck_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 63.6 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.2.tar.gz
Algorithm Hash digest
SHA256 f867dc94a16bf898869e1f86ff6c78054335c7ab49aae9f54cdded5b76e15ed6
MD5 721a65752f6b4b9b2e46f6c76ef064e7
BLAKE2b-256 9072e9729f2e2b2f03f6f4d7a7ff1571357e8cff0984d18a9c22d1b47fa1277d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for signupcheck_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6319975e91d3437c7269c7c150c86f4e5a0f76a4a738fcfa37b1326c84a340b8
MD5 aef876b50f4b45ede5ecd3d646aafa4f
BLAKE2b-256 9e14b823dbb059662871c1a96be27fa810c14e6c020db1ed49a394ae00de7fe1

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