PQ Python

kyber-py, dilithium-py

kyber-py and dilithium-py are educational pure-Python ML-KEM and ML-DSA implementations that are not constant-time, and their author says not to use them for cryptography.

PyPI
kyber-py, dilithium-py
Version cited
1.2.0 / 1.5.1kyber-py 1.2.0; dilithium-py 1.5.1
Downloads
52K / 199K/mo

Key exchange and encryption

Stopgap only

Educational ML-KEM; not constant-time

Signatures and identity

Stopgap only

Educational ML-DSA; not constant-time

What to do

Do not use in production. Use them for learning or test vectors; switch real code to cryptography or pycryptodome.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

educational only

kyber-py 1.2.0 (52,005 downloads per 30 days) and dilithium-py 1.5.1 (198,758) are pure-Python ML-KEM and ML-DSA implementations by Giacomo Pope (kyber-py). They are not constant-time. The author’s own banner warns: “Under no circumstances should this be used for cryptographic applications.”

Both reports put them in the “avoid in production” group, suitable for prototyping and interop testing at most.

Sources cited on this page 1
  1. kyber-py github.com

All sources across the guide