Observed since 20 Oct, 17:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
abip-cli
Command-line interface for checking and reporting abusive IP addresses with AbuseIPDB
abip-cli is a Python package that installs the abip command for checking and reporting abusive IP addresses with the AbuseIPDB API.
It supports single IP lookups, CIDR block checks, abuse reports, and blacklist queries with either rich terminal output or JSON for scripting.
--json for automationpip install abip-cli
The package name on PyPI is abip-cli, but the installed command is:
abip
You can also run it as a module:
python -m abip --help
Create an AbuseIPDB API token and make it available as ABUSEIPDB_TOKEN.
Preferred for installed CLI usage:
export ABUSEIPDB_TOKEN="your-token-here"
For local development, a .env file is also supported:
ABUSEIPDB_TOKEN=your-token-here
Show help:
abip --help
Show the installed version:
abip --version
Check a single IP:
abip check 8.8.8.8
abip check 8.8.8.8 --days 90 --verbose
abip --json check 8.8.8.8
Check a CIDR block:
abip block 203.0.113.0/24
abip --json block 203.0.113.0/24 --days 7
Report an abusive IP:
abip report 203.0.113.10 --categories 18,22 --comment "SSH brute-force attempts"
abip report 203.0.113.10 --categories 14 --comment "Port scanning" --timestamp 2025-01-10T15:04:05Z
Fetch blacklist data:
abip blacklist
abip blacklist --min-confidence 75 --limit 50
abip blacklist --ip-version 4 --countries US,CN
abip --json blacklist --limit 10
0 for successful execution1 for API and runtime errorsInstall development dependencies with uv:
uv sync --group dev
Run tests:
uv run pytest
Build distributions:
uv run python -m build
uv run twine check dist/*
This repository includes GitHub Actions workflows for CI and PyPI publishing via Trusted Publishing.
Before the first release, configure the project on PyPI to trust this GitHub repository, then create a GitHub release to trigger publishing.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
clickEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | click | runtime |
httpxEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | httpx | runtime |
python-dotenvEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | python-dotenv | runtime |
richEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | rich | runtime |
bdist_wheel · 7.84 KB · Python py3
sdist · 42.13 KB · Python source
Observed since 20 Oct, 17:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5855fcd0beb8432a88b2df50c9785168bb110bfbddc5a60eeada4618d1506602