Skip to main content

Quantitative Information Flow library

Project description

Build Status PyPI version

libqif

Install

pip install qif
  • Needs python >= 3.5 and a sandybridge or later CPU
  • On linux pip >= 19 is needed (make sure to pip install -U pip)

A sample program

from qif import *

C = channel.randu(5)
pi = probab.uniform(5)

print("Channel:\n", C)
print("Prior:\n", pi)

print("Bayes vulnerability", measure.bayes_vuln.posterior(pi, C))
print("Bayes mult-capacity", measure.bayes_vuln.mult_capacity(C))

Documentation

A list of methods provided by qif is available here.

Use libqif with C++

See the installation instructions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

qif-1.0.0-cp38-cp38-manylinux2010_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

qif-1.0.0-cp38-cp38-macosx_10_13_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

qif-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

qif-1.0.0-cp37-cp37m-macosx_10_13_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

qif-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

qif-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

qif-1.0.0-cp35-cp35m-manylinux2010_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

qif-1.0.0-cp35-cp35m-macosx_10_13_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.5m macOS 10.13+ x86-64

File details

Details for the file qif-1.0.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 18.8 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for qif-1.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b2302cb8a75166ef0ddd06105c500fb027514e557a4e8037e827e4b754918db5
MD5 917a56322ad51290fe3adc89109cb5ea
BLAKE2b-256 d7b3271cead1ddb7e4c4c329654a1ad18f9bdb43407ff3df55850e66acfda46d

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for qif-1.0.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 260b213218e54f773844482ff965b55ceb8bece118125c7adc432ad652e77fb8
MD5 cdd8746b9b6fb8e57b3188592d3565cc
BLAKE2b-256 c9124a7ceffd24db5ff7d3c99e9f6b76b28f859e9e65e2ceb69894423f211c66

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 18.8 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for qif-1.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 17c98cc228a8abc29be13bbfdce7b3d471a4583ddda3726237900474691c46df
MD5 3aadf4b4560ff78082f6312a3df05567
BLAKE2b-256 ad7c35f01aba22a2c5839ab34ca7f96eec3ae70962d73ce27e2a83c233839bb1

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for qif-1.0.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 27580b2eea36055fa75b2215b54000592447030d327cb39e7b0b3cc0ef714af9
MD5 b75851c50d3a20caa3c457bdd67a045c
BLAKE2b-256 f511aa962008444559080db853da8bfc878526cb1a334df8f353b7418d5de2f6

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 18.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for qif-1.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8bc694eaef1d6fc83bfd5d23d62061939bb46da12c07f4f7a5e784929f31e3d2
MD5 2bdc4be331d6ada26fb9c4d70c6ea2f4
BLAKE2b-256 62f91ac93fac505c05510249ff988a0245d00c5ebc873628f3afa7034fd98e17

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for qif-1.0.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f32785199351b39cbff40e0634048989090fa750208f474c6e3be8c684c5e4a8
MD5 4d9735aa1b16036fc905814786597cbc
BLAKE2b-256 81b8bdd1516864e57a0d637bc397801ab1a719ddba5adb1162240224956c3670

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 18.8 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for qif-1.0.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9811fa8bb9bfaeab98bab04f5995b042bf2caaa2bdd66f164fdb878e209fb5f9
MD5 b7e2f3e4ddf8a36d70350f55e7c59f93
BLAKE2b-256 2feabec007149a05d76446b48bc3df6dffe8752ea5cf3ec6b7bebedb634a3fc3

See more details on using hashes here.

File details

Details for the file qif-1.0.0-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: qif-1.0.0-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for qif-1.0.0-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 291f41844da8ec583641fecf06abd37c7c26e44fa22a2b7578294b4b05f28d02
MD5 5164bf089c363dbdb3cdeb3da4971ff6
BLAKE2b-256 cb9ba5fb902de6e8bde4b131d178c45c157422c10f702a0a8e41f04522172e76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page