seal-python 4.1.2__tar.gz → 4.1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: seal-python
3
+ Version: 4.1.2.1
4
+ Summary: Python wrapper for the Microsoft SEAL
5
+ Home-page: https://github.com/Huelse/SEAL-Python
6
+ Author: Huelse
7
+ Author-email: topmaxz@protonmail.com
8
+ License: MIT
9
+ Project-URL: Repository, https://github.com/Huelse/SEAL-Python
10
+ Project-URL: Issues, https://github.com/Huelse/SEAL-Python/issues
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: C++
24
+ Classifier: Topic :: Security :: Cryptography
25
+ Requires-Python: >=3.8
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: license
35
+ Dynamic: license-file
36
+ Dynamic: project-url
37
+ Dynamic: requires-python
38
+ Dynamic: summary
39
+
40
+ ## Microsoft SEAL For Python
41
+
42
+ This is a python binding for the Microsoft SEAL library.
43
+
44
+ Microsoft [**SEAL**](https://github.com/microsoft/SEAL) is an easy-to-use open-source ([MIT licensed](https://github.com/microsoft/SEAL/blob/master/LICENSE)) homomorphic encryption library developed by the Cryptography Research group at Microsoft.
45
+
46
+ [**pybind11**](https://github.com/pybind/pybind11) is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code.
@@ -1,15 +1,18 @@
1
1
  ## Microsoft SEAL For Python
2
2
 
3
+ This is a python binding for the Microsoft SEAL library.
4
+
3
5
  Microsoft [**SEAL**](https://github.com/microsoft/SEAL) is an easy-to-use open-source ([MIT licensed](https://github.com/microsoft/SEAL/blob/master/LICENSE)) homomorphic encryption library developed by the Cryptography Research group at Microsoft.
4
6
 
5
7
  [**pybind11**](https://github.com/pybind/pybind11) is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code.
6
8
 
7
- This is a python binding for the Microsoft SEAL library.
9
+ [![Supported Versions](https://img.shields.io/pypi/pyversions/SEAL-Python.svg)](https://github.com/Huelse/SEAL-Python)
8
10
 
9
11
 
10
12
 
11
13
  ## Contents
12
14
 
15
+ * [Install](#install)
13
16
  * [Build](#build)
14
17
  * [Typing](#typing)
15
18
  * [Note](#note)
@@ -20,8 +23,28 @@ This is a python binding for the Microsoft SEAL library.
20
23
 
21
24
 
22
25
 
26
+ ## Install
27
+
28
+ SEAL-Python is available on [PyPI](https://pypi.org/project/seal-python/):
29
+
30
+ ```shell
31
+ python -m pip install seal-python
32
+ ```
33
+
34
+
35
+
23
36
  ## Build
24
37
 
38
+ On macOS, use the same deployment target for both the SEAL static library and the Python extension to avoid linker warnings about mismatched macOS versions:
39
+
40
+ ```shell
41
+ export MACOSX_DEPLOYMENT_TARGET=$(python3 - <<'PY'
42
+ import sysconfig
43
+ print(sysconfig.get_config_var("MACOSX_DEPLOYMENT_TARGET") or "15.0")
44
+ PY
45
+ )
46
+ ```
47
+
25
48
  * ### Linux
26
49
 
27
50
  Recommend: Clang++ (>= 10.0) or GNU G++ (>= 9.4), CMake (>= 3.16)
@@ -37,7 +60,7 @@ This is a python binding for the Microsoft SEAL library.
37
60
  # Install dependencies
38
61
  pip3 install numpy pybind11
39
62
 
40
- # Init the SEAL and pybind11
63
+ # Pull the SEAL
41
64
  git submodule update --init --recursive
42
65
  # Get the newest repositories (dev only)
43
66
  # git submodule update --remote
@@ -45,6 +68,8 @@ This is a python binding for the Microsoft SEAL library.
45
68
  # Build the SEAL lib without the msgsl zlib and zstandard compression
46
69
  cd SEAL
47
70
  cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF
71
+ # macOS:
72
+ cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
48
73
  cmake --build build
49
74
  cd ..
50
75
 
@@ -68,8 +93,8 @@ This is a python binding for the Microsoft SEAL library.
68
93
 
69
94
  ```shell
70
95
  # Run in "x64 Native Tools Command Prompt for VS" command prompt
71
- cmake -S . -B build -G Ninja -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF
72
- cmake --build build
96
+ cmake -S . -B build -G Ninja -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF
97
+ cmake --build build --config Release
73
98
 
74
99
  # Build
75
100
  pip install numpy pybind11