Skip to main content

pyspamhauscli

Description

A simple Python script to interact with Spamhaus APIs from cli.

Usage

$ pip install pyspamhauscli
$ python pyspamhauscli.py -h
usage: pyspamhauscli.py [-h] [-k API_KEY] [-a {submit,get_threats_types,get_subs_list,get_subs_counter}] [-i INPUT_FILE] [-r REASON]

version: 1.2

options:
  -h, --help            show this help message and exit

common parameters:
  -k, --api-key API_KEY
                        API key (could either be provided in the "SECRET_SPAMHAUS_API_KEY" env var)
  -a, --action {submit,get_threats_types,get_subs_list,get_subs_counter}
                        Action to do on Spamhaus (default 'submit')

'submit' action parameters:
  -i, --input-file INPUT_FILE
                        Input file (list of newline-separated FQDN or URL or IP or email address)
  -r, --reason REASON   Reason to use (max length 255 characters)

Changelog

  • version 1.1->1.2 - 2025-09-07: Publication on pypi.org and few fixes

Copyright and license

pyspamhauscli is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pyspamhauscli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with pyspamhauscli. If not, see http://www.gnu.org/licenses/.

Contact

  • Thomas Debize < tdebize at mail d0t com >

Metadata

Release files for pyspamhauscli 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyspamhauscli 1.2
File Size Uploaded
pyspamhauscli-1.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyspamhauscli 1.2
File Interpreter ABI Platform
pyspamhauscli-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / pyspamhauscli-1.2.tar.gz

Download URL pyspamhauscli-1.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2ba0388e74d4c2f249a56a721769a82159b93d0eeae735416059f9ab4ce190e
BLAKE2b-256 checksum
How to use checksums
100504bb376be125ba7192fa44cd5a2a72a05c87d8dd266a760d0d811c24d79b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyspamhauscli-1.2-py3-none-any.whl

Download URL pyspamhauscli-1.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7d811f81f5b50f4348f764d6ccebd4ebfd568302039bd56f94c4236e5bbcea5
BLAKE2b-256 checksum
How to use checksums
1ab9b1c49d1070b122454f9c10564ba4be27014a3bb9ebdcb812d63bff1b2217
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page