pip install gensafeprime==1.6

Generate safe primes using OpenSSL (a prime p = 2*q+1, and q is prime too)

Source
Among top 50% packages on PyPI.
Over 764 downloads in the last 90 days.

Version usage of gensafeprime

Proportion of downloaded versions in the last 3 months (only versions over 1%).

1.6

48.95%

1.5

12.30%

1.4

11.39%

1.3

9.29%

1.1

9.16%

1.2

8.90%