pyCANON: A Python library to check the level of anonymity of a dataset#

pyCANON is a Python library which allows the user to know the anonymity level of a dataset based on a set of quasi-identifiers (QI), and a set of sensitive attributes. To do so, it provides a set of functions to compute the anonymity level of a dataset by means of the following techniques:

  • k-anonymity.

  • (\(\alpha\),k)-anonymity.

  • \(\ell\)-diversity.

  • Entropy \(\ell\)-diversity.

  • Recursive (c, \(\ell\))-diversity.

  • t-closeness.

  • Basic \(\beta\)-likeness.

  • Enhanced \(\beta\)-likeness.

  • \(\delta\)-disclosure privacy.

User documentation#


pyCANON is licensed under Apache License Version 2.0 (

Indices and tables#