From a735ef0fc8cc3c7347fcec7c728b5b25d6e371cc Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 06:53:53 +0000 Subject: automatic import of python-clkhash --- python-clkhash.spec | 258 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 python-clkhash.spec (limited to 'python-clkhash.spec') diff --git a/python-clkhash.spec b/python-clkhash.spec new file mode 100644 index 0000000..f0e5b0c --- /dev/null +++ b/python-clkhash.spec @@ -0,0 +1,258 @@ +%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 + +

+ Clkhash Logo +

+ +
+ +[![codecov](https://codecov.io/gh/data61/clkhash/branch/master/graph/badge.svg)](https://codecov.io/gh/data61/clkhash) +[![Documentation Status](https://readthedocs.org/projects/clkhash/badge/?version=latest)](http://clkhash.readthedocs.io/en/latest/?badge=latest) +[![Unit Testing](https://github.com/data61/clkhash/actions/workflows/unittests.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/unittests.yml) +[![Typechecking](https://github.com/data61/clkhash/actions/workflows/typechecking.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/typechecking.yml) +[![Downloads](https://pepy.tech/badge/clkhash)](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 + +

+ Clkhash Logo +

+ +
+ +[![codecov](https://codecov.io/gh/data61/clkhash/branch/master/graph/badge.svg)](https://codecov.io/gh/data61/clkhash) +[![Documentation Status](https://readthedocs.org/projects/clkhash/badge/?version=latest)](http://clkhash.readthedocs.io/en/latest/?badge=latest) +[![Unit Testing](https://github.com/data61/clkhash/actions/workflows/unittests.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/unittests.yml) +[![Typechecking](https://github.com/data61/clkhash/actions/workflows/typechecking.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/typechecking.yml) +[![Downloads](https://pepy.tech/badge/clkhash)](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 + +

+ Clkhash Logo +

+ +
+ +[![codecov](https://codecov.io/gh/data61/clkhash/branch/master/graph/badge.svg)](https://codecov.io/gh/data61/clkhash) +[![Documentation Status](https://readthedocs.org/projects/clkhash/badge/?version=latest)](http://clkhash.readthedocs.io/en/latest/?badge=latest) +[![Unit Testing](https://github.com/data61/clkhash/actions/workflows/unittests.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/unittests.yml) +[![Typechecking](https://github.com/data61/clkhash/actions/workflows/typechecking.yml/badge.svg)](https://github.com/data61/clkhash/actions/workflows/typechecking.yml) +[![Downloads](https://pepy.tech/badge/clkhash)](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 -- cgit v1.2.3