Python spamassassin spamc client library
Project description
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.
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
Fork it (https://github.com/akissa/spamc/fork)
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request
License
All code is licensed under the AGPLv3+ License.
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
File details
Details for the file spamc-0.0.8.tar.bz2
.
File metadata
- Download URL: spamc-0.0.8.tar.bz2
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8597a9d55aa3fead736bdac0884d13c1e143149812e599c61dc97691605a8b3f |
|
MD5 | 3c35a2922e6860cbf2f4ca74a0b8847e |
|
BLAKE2b-256 | 2302636eeb8b3b43c23569d35c957a99b61c5071cdb1268dc250e099ed717a39 |