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-0.8.0-cp38-cp38-manylinux2010_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8 macOS 10.13+ x86-64

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

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

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

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

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

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

Uploaded CPython 3.6m macOS 10.13+ x86-64

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

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

qif-0.8.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-0.8.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c3926957938ca6a57c92b5e67f243eca920662cbe66fad1be4c402f931c6b5e9
MD5 2b71b0b94397c57213fe459c8ba435d7
BLAKE2b-256 15bb9fb24dbec845fa34a445dc6948095adfd40042de2bc8acdf57294091db64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9d69489b818b9d7fb1ed3f9dd42ac6a17bdb30fecff150c9053add41a4e33cdc
MD5 e2f90520293d14d3c8c730b4f0ec3eea
BLAKE2b-256 46c77acc44fd5ee830344240271ff3f537e19ed29f9dc67348c9cee64efd46e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b7c719944479d50661064c52b752598fca0600df0a1b68ef46db3f2f90ce2661
MD5 2eee42819ad03ea8f3aff22d5b948f3b
BLAKE2b-256 07fec79e0ace4a411469858f2419da68da21c2a15539615c7dfcc7cff08bdb8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 64d28990bfe272e7470302e190e66318bb5cd8093b9196bd50f819f151b38aa4
MD5 abd2b78638ca9c99c73f5bb814a20e01
BLAKE2b-256 9bfa9b2ac7cd794d29a20e938afd797b722430e1e96cdf672b3b1612c3596809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 71964dfda7ab618a068f2e272fee38886f10474bfda93cd9c59e459aa25f8f33
MD5 cd9778737f5ff0f076241104026a04bc
BLAKE2b-256 390846851d0c477d2ffa87e88d60e2237b2adaca546aa3276326e94a4cec98b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a752286ea92864653067369ec6abb43ebd53338b2cb44da168f56e8874032f27
MD5 de9a14b31d55a94eb2481f5becef7b07
BLAKE2b-256 544b4f61dfb1d90d950c76c981eeb8252caf6bb78a10619aa0c4c6918eda3762

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 655b13c04b61896ef04bf54856079c483ea7a2004bb9394f311edb1a4652ae18
MD5 aa118b65766e3ad92e1c75c7ac6888e2
BLAKE2b-256 9173263d622780b582eb5ab664f89a53a0d2b6d8d26d505baec982805d1c6cf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qif-0.8.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-0.8.0-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 64da8f9631c96e1bd3429126d1815ccb2e47574b9cd9aff198098b90215d43c0
MD5 3b9b220757b69178e46fba98959d10be
BLAKE2b-256 b29ae9a03628540e2c135a2789cb4492a26e02b7c364c33feeeb5495c2444c46

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