Skip to main content

Python spamassassin spamc client library

spamc is a python module that provides fully compliant client side functionality of the spamassassin spamd protocol

It can be used with gevent and eventlet, is thread safe and supports streaming.

Build Status Code Climate codecov.io Documentation Status License

Installation

Install from PyPi

pip install spamc

Install from Githib

git clone https://github.com/akissa/spamc.git
cd spamc
python setup.py install

Usage

Examples are in the examples directory

$ ./examples/example1.py -h
Usage: example1.py [options]

Options:
  -h, --help            show this help message and exit
  -s SERVER, --server=SERVER
                        The spamassassin spamd server to connect to
  -p PORT, --port=PORT  The spamassassin spamd server port to connect to
  -u SOCKET_PATH, --unix-socket=SOCKET_PATH
                        The spamassassin spamd unix socket to connect to
  -t, --tls             Use TLS
  -z, --use-zlib-compression
                        Use Zlib compression
  -l COMPRESS_LEVEL, --zlib-compression-level=COMPRESS_LEVEL
                        Zlib compression level
  -a USER, --user=USER  Username of the user on whose behalfthis scan is being
                        performed

Module documentation is available on readthedocs.org

Contributing

  1. Fork it (https://github.com/akissa/spamc/fork)

  2. Create your feature branch (git checkout -b my-new-feature)

  3. Commit your changes (git commit -am 'Add some feature')

  4. Push to the branch (git push origin my-new-feature)

  5. Create new Pull Request

License

All code is licensed under the AGPLv3+ License.

Metadata

Release files for spamc 0.0.8

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

Source distribution (sdist)

Source distribution for spamc 0.0.8
File Size Uploaded Provenance Actions
spamc-0.0.8.tar.bz2 22.7 kB Without provenance Details for spamc-0.0.8.tar.bz2

Release files / spamc-0.0.8.tar.bz2

Download URL spamc-0.0.8.tar.bz2
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8597a9d55aa3fead736bdac0884d13c1e143149812e599c61dc97691605a8b3f
BLAKE2b-256 checksum
How to use checksums
2302636eeb8b3b43c23569d35c957a99b61c5071cdb1268dc250e099ed717a39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for spamc 0.0.8

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.

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