%global _empty_manifest_terminate_build 0
Name: python-clkhash
Version: 0.18.1
Release: 1
Summary: Encoding utility to create Cryptographic Linkage Keys
License: Apache
URL: https://github.com/data61/clkhash
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/65/78/5dc0305e321604c329dfd9d3223a9772f94215c48a2be342e1a1d22d7548/clkhash-0.18.1.tar.gz
BuildArch: noarch
Requires: python3-bitarray
Requires: python3-cryptography
Requires: python3-jsonschema
Requires: python3-mypy_extensions
Requires: python3-pyblake2
Requires: python3-tqdm
%description
# CLK Hash
[](https://codecov.io/gh/data61/clkhash)
[](http://clkhash.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/data61/clkhash/actions/workflows/unittests.yml)
[](https://github.com/data61/clkhash/actions/workflows/typechecking.yml)
[](https://pepy.tech/project/clkhash)
**clkhash** is a Python implementation of cryptographic linkage key hashing as described by _Rainer Schnell, Tobias Bachteler, and Jörg Reiher_ in
[A Novel Error-Tolerant Anonymous Linking Code](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3549247).
## Installation
Install clkhash with all dependencies using pip:
pip install clkhash
## Documentation
[https://clkhash.readthedocs.io](https://clkhash.readthedocs.io/en/latest/)
## Python API
To hash a CSV file of entities using the default schema:
```python
from clkhash import clk, randomnames
fake_pii_schema = randomnames.NameList.SCHEMA
clks = clk.generate_clk_from_csv(open('fake-pii-out.csv','r'), 'secret', fake_pii_schema)
```
## Command Line Interface
See [Anonlink Client](https://github.com/data61/anonlink-client) for a command line interface to clkhash.
## Citing
Clkhash, and the wider Anonlink project is designed, developed and supported by
[CSIRO's Data61](https://www.data61.csiro.au). If you use any part of this library in your research, please
cite it using the following BibTex entry::
@misc{Anonlink,
author = {CSIRO's Data61},
title = {Anonlink Private Record Linkage System},
year = {2017},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/data61/clkhash}},
}
%package -n python3-clkhash
Summary: Encoding utility to create Cryptographic Linkage Keys
Provides: python-clkhash
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-clkhash
# CLK Hash
[](https://codecov.io/gh/data61/clkhash)
[](http://clkhash.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/data61/clkhash/actions/workflows/unittests.yml)
[](https://github.com/data61/clkhash/actions/workflows/typechecking.yml)
[](https://pepy.tech/project/clkhash)
**clkhash** is a Python implementation of cryptographic linkage key hashing as described by _Rainer Schnell, Tobias Bachteler, and Jörg Reiher_ in
[A Novel Error-Tolerant Anonymous Linking Code](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3549247).
## Installation
Install clkhash with all dependencies using pip:
pip install clkhash
## Documentation
[https://clkhash.readthedocs.io](https://clkhash.readthedocs.io/en/latest/)
## Python API
To hash a CSV file of entities using the default schema:
```python
from clkhash import clk, randomnames
fake_pii_schema = randomnames.NameList.SCHEMA
clks = clk.generate_clk_from_csv(open('fake-pii-out.csv','r'), 'secret', fake_pii_schema)
```
## Command Line Interface
See [Anonlink Client](https://github.com/data61/anonlink-client) for a command line interface to clkhash.
## Citing
Clkhash, and the wider Anonlink project is designed, developed and supported by
[CSIRO's Data61](https://www.data61.csiro.au). If you use any part of this library in your research, please
cite it using the following BibTex entry::
@misc{Anonlink,
author = {CSIRO's Data61},
title = {Anonlink Private Record Linkage System},
year = {2017},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/data61/clkhash}},
}
%package help
Summary: Development documents and examples for clkhash
Provides: python3-clkhash-doc
%description help
# CLK Hash
[](https://codecov.io/gh/data61/clkhash)
[](http://clkhash.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/data61/clkhash/actions/workflows/unittests.yml)
[](https://github.com/data61/clkhash/actions/workflows/typechecking.yml)
[](https://pepy.tech/project/clkhash)
**clkhash** is a Python implementation of cryptographic linkage key hashing as described by _Rainer Schnell, Tobias Bachteler, and Jörg Reiher_ in
[A Novel Error-Tolerant Anonymous Linking Code](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3549247).
## Installation
Install clkhash with all dependencies using pip:
pip install clkhash
## Documentation
[https://clkhash.readthedocs.io](https://clkhash.readthedocs.io/en/latest/)
## Python API
To hash a CSV file of entities using the default schema:
```python
from clkhash import clk, randomnames
fake_pii_schema = randomnames.NameList.SCHEMA
clks = clk.generate_clk_from_csv(open('fake-pii-out.csv','r'), 'secret', fake_pii_schema)
```
## Command Line Interface
See [Anonlink Client](https://github.com/data61/anonlink-client) for a command line interface to clkhash.
## Citing
Clkhash, and the wider Anonlink project is designed, developed and supported by
[CSIRO's Data61](https://www.data61.csiro.au). If you use any part of this library in your research, please
cite it using the following BibTex entry::
@misc{Anonlink,
author = {CSIRO's Data61},
title = {Anonlink Private Record Linkage System},
year = {2017},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/data61/clkhash}},
}
%prep
%autosetup -n clkhash-0.18.1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-clkhash -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon May 15 2023 Python_Bot - 0.18.1-1
- Package Spec generated