diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:53:53 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:53:53 +0000 |
commit | a735ef0fc8cc3c7347fcec7c728b5b25d6e371cc (patch) | |
tree | 8d5688fb3f4d6430b51994ea7da592921a7bc756 | |
parent | ba49e25cddea21cc589f5d5f69a7366f3d495a2d (diff) |
automatic import of python-clkhash
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-clkhash.spec | 258 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 260 insertions, 0 deletions
@@ -0,0 +1 @@ +/clkhash-0.18.1.tar.gz 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 + +<p align="center"> + <img alt="Clkhash Logo" src="./docs/_static/logo.svg" width="250" /> +</p> + +<div align="center"> + +[](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) + +</div> + +**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 + +<p align="center"> + <img alt="Clkhash Logo" src="./docs/_static/logo.svg" width="250" /> +</p> + +<div align="center"> + +[](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) + +</div> + +**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 + +<p align="center"> + <img alt="Clkhash Logo" src="./docs/_static/logo.svg" width="250" /> +</p> + +<div align="center"> + +[](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) + +</div> + +**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 <Python_Bot@openeuler.org> - 0.18.1-1 +- Package Spec generated @@ -0,0 +1 @@ +2d4d6bfc300f7440a5e8903736750480 clkhash-0.18.1.tar.gz |