ClientCaptain
GitHub repository · Documentation
Open-source CLI and Python SDK for email, domain, and IP screening.
Install
pip install clientcaptain
CLI
clientcaptain check suspicious@tempmail.com
clientcaptain check example.com
clientcaptain check 185.220.101.5
Pass --json (-j) to print the raw JSON API response for shell scripts or CI/CD pipelines:
clientcaptain check suspicious@tempmail.com --json
The CLI resolves MX, SPF, and DMARC records locally via DNS and queries:
POST https://www.api.clientcaptain.io/v1/screen
To point the CLI at a local or staging instance, pass --api-url or set CLIENTCAPTAIN_API_URL:
clientcaptain check 185.220.101.5 --api-url http://localhost:8000
CLIENTCAPTAIN_API_URL=http://localhost:8000 clientcaptain check 185.220.101.5
Python SDK
from clientcaptain import ClientCaptain
client = ClientCaptain()
result = client.screen(email="user@example.com")
print(result["verdict"]) # ALLOW | FLAG | BLOCK
Pass api_key (for upcoming Pro keys) or override base_url:
client = ClientCaptain(
base_url="https://www.api.clientcaptain.io",
api_key="cc_live_...",
)
result = client.screen(ip="185.220.101.5")
Async usage:
import asyncio
from clientcaptain import ClientCaptain
async def main() -> None:
client = ClientCaptain()
result = await client.screen_async(ip="185.220.101.5")
print(result)
asyncio.run(main())
Data & Privacy
- Local DNS checks:
MX,SPF, andDMARClookups run directly from your machine against your configured DNS resolver. - API lookups: Only the normalized target (
email,domain, orip) is sent over HTTPS towww.api.clientcaptain.ioto check disposable domain lists and IP/CIDR blocklists. - Failure behavior: If the API is unreachable, rate-limited (
HTTP 429), or returns an invalid payload, the CLI exits with status code1and the SDK raises an exception rather than defaulting toALLOW.
Disclaimer
ClientCaptain verdicts, DNS results, and threat-intelligence data are provided on a best-effort basis. They may be incomplete, delayed, unavailable, or incorrect, and must not be relied upon as the sole basis for security, compliance, identity, or access-control decisions. No result or absence of a signal guarantees that a target is safe or malicious.
Use ClientCaptain with appropriate human review and other independent security controls. The software is provided under the MIT License without guarantees or warranties as described in the license.
License
MIT
Metadata
Release files for clientcaptain 1.0.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 | Actions |
|---|---|---|---|---|
| clientcaptain-1.0.0.tar.gz | 10.4 kB | Without provenance | Details for clientcaptain-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clientcaptain-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for clientcaptain-1.0.0-py3-none-any.whl |
Total release size: 17.1 kB
Release files / clientcaptain-1.0.0.tar.gz
| Download URL | clientcaptain-1.0.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
983d755adf4d6715b8057d9ed6f8db3c17625a28cdcbfbdf9cffd6d4c433a841
|
|
BLAKE2b-256 checksum How to use checksums |
d4da6539039a82c51d9d365e59122cb7d45a3ea17e1fd717857edbea1f0db358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|
Release files / clientcaptain-1.0.0-py3-none-any.whl
| Download URL | clientcaptain-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6aca348ce60c4c1e3b48145870be78e296bd582ed1b5a12d30c802faddd105a
|
|
BLAKE2b-256 checksum How to use checksums |
87b9bcda4fc1f8a4486e5d33187b1887b7a9125c69678e3c8a751bef29b15f1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.6
|
Security for clientcaptain 1.0.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.