Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to include PyOpenSSL in a python package

I need to deploy an application on AWS Lambda in python . This app is based on Google API SDK, which require a crypto library such as pyOpenSSL. But, contrary to other libs which are included in my package by doing something like this :

pip install myLib -t \my_path\to_my_package\

, the pyOpenSSL seems to be a part of python. It's implemented while compiling or via

apt-get install pyopenssl.

I have no clue on what to do to import this lib without depending on the python version and its modules.

Thanks in advance

like image 602
Adrien QUINT Avatar asked Feb 16 '26 01:02

Adrien QUINT


1 Answers

The solution was to install the package "Crypto" in my package and make a :

import Crypto

That solved the problem.

like image 196
Adrien QUINT Avatar answered Feb 18 '26 14:02

Adrien QUINT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!