Pyliblinear - a liblinear python API

pyliblinear is an API for liblinear without using ctypes. It aims for more pythonic access to liblinear’s features, especially featuring streams of data and lazy evaluations whereever possible.

Supported python versions are Python 2.7 and Python 3.6+.


Development Status


The API is not stabilized yet. There also may be a few kinks here and there. But generally it works as expected.


Current Stable Version

Integrity Check

There are hashes (MD5, SHA1 and SHA256) of the download packages stored in the digests file. In order to check the integrity of the downloaded file, use a tool like md5sum (or sha1sum, sha256sum accordingly), e.g.:

$ md5sum -c pyliblinear-244.0.digests
pyliblinear-244.0.tar.bz2: OK
pyliblinear-244.0.tar.gz: OK
pyliblinear-244.0.tar.xz: OK OK

In order to check the integrity of the digest file itself, you can check the PGP signature of that file. The file is signed by André Malo, Key-ID 0x029C942244325167:

$ gpg --verify pyliblinear-244.0.digests
gpg: Signature made Sun Jul 31 12:47:20 2022 CEST
gpg:                using RSA key 21B65583FF640D34E8662B6B3DED446369F2EE1A
gpg: Good signature from "André Malo <>"


pyliblinear is available under the terms and conditions of the “Apache License, Version 2.0.” You’ll find the detailed licensing terms in the root directory of the source distribution package or online at

pyliblinear ships with a copy of liblinear, which is licensed under the terms of the 3-clause BSD license.


No bugs, of course. ;-) But if you’ve found one or have an idea how to improve pyliblinear, feel free to send a pull request on github or send a mail to <>.

Author Information

pyliblinear was written and is maintained by André Malo.