#274274th of 433 in ML frameworks and libraries

tenseal

Python library for homomorphic encryption on tensors, built on Microsoft SEAL

Stars
1k
License
Apache-2.0
Last commit
Sep 2026
Last release
Sep 2026
Language
C++
Stars, last 30 weeks+39
27 Apr 2026: 1,005 stars4 May 2026: 1,006 stars11 May 2026: 1,007 stars18 May 2026: 1,010 stars25 May 2026: 1,015 stars1 Jun 2026: 1,016 stars8 Jun 2026: 1,018 stars15 Jun 2026: 1,018 stars22 Jun 2026: 1,020 stars29 Jun 2026: 1,021 stars6 Jul 2026: 1,024 stars13 Jul 2026: 1,025 stars20 Jul 2026: 1,025 stars27 Jul 2026: 1,028 stars3 Aug 2026: 1,028 stars10 Aug 2026: 1,029 stars17 Aug 2026: 1,031 stars24 Aug 2026: 1,031 stars31 Aug 2026: 1,031 stars7 Sept 2026: 1,035 stars14 Sept 2026: 1,036 stars21 Sept 2026: 1,038 stars28 Sept 2026: 1,039 stars5 Oct 2026: 1,039 stars12 Oct 2026: 1,039 stars19 Oct 2026: 1,039 stars26 Oct 2026: 1,040 stars2 Nov 2026: 1,040 stars9 Nov 2026: 1,042 stars16 Nov 2026: 1,042 stars23 Nov 2026: 1,044 stars

1,005 on 27 Apr 20261,044 on 23 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

OpenMined is hiring: 16 open roles

Overview

TenSEAL wraps Microsoft SEAL with a Python API and a C++ tensor layer. It encrypts integer vectors with BFV and real-number vectors with CKKS, and supports element-wise arithmetic, dot product, vector-matrix multiplication and N-dimensional encrypted tensors. Contexts, keys and ciphertexts can be serialized, and the full SEAL API is exposed under `tenseal.sealapi`.

Who it is for: Privacy-preserving ML developers working with encrypted tensor computation

Strengths

  • Supports both BFV (integers) and CKKS (real numbers) schemes
  • Prebuilt wheels for Linux (glibc, musl), macOS arm64 and Windows x64
  • Tutorials cover encrypted logistic regression training and MNIST convolution
  • Full SEAL API exposed under tenseal.sealapi for lower-level control

Weaknesses

  • Requires Python 3.11 or newer
  • Docker Hub images are unmaintained, last published in 2021
  • Bazel build is broken; C++ microbenchmarks cannot currently be run
  • Source builds fail on AppleClang 17+ and need a CMake 4 policy workaround

What it needs

  • no GPU
  • Needs Microsoft SEAL, NumPy

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#272dlpackCommon in-memory tensor struct for sharing tensors between ML frameworks1.3k starsApache-2.047 out of 100
#273functimePolars-based library for time-series forecasting and feature extraction1.2k starsApache-2.047 out of 100
#275paddledetectionObject detection toolkit on PaddlePaddle with tracking, keypoints and export tools14.5k starsApache-2.046 out of 100
#276surprisePython scikit for building and evaluating rating-based recommender systems6.8k starsBSD-3-Clause46 out of 100
#277paddleclasImage classification and recognition toolkit on PaddlePaddle, with PP-ShiTuV2 and PULC5.9k starsApache-2.046 out of 100