a cpython bindings to libaesni which is a binding to intel aes ni.
If you want to install it yourself then you’re going to need a yasm compiler. you can get it from here https://yasm.tortall.net/Download.html
You can also download it from pip if a wheel is available for your device.
pip install pyaesni
Usage is pretty simple.
import pyaesni
encrypted = pyaesni.ige256_encrypt(data, key, iv)
everything is a buffer there. you can check the examples folder for more
ige256_encrypt ige256_decrypt ctr256_encrypt ctr256_decrypt cbc256_encrypt cbc256_decrypt
wirtos for doing most of the stuff and compilation
painor me for motivating him (and some setup.py stuff)
dan for the cpython boilerplate