> I intend to deploy a project to AWS Lambda including pycryptodome. I noticed that by far the largest part of the code is the SelfTest sub-package. When generating the deployment package of our application to go into production, is it safe to simply delete the SelfTest directory?
Yes, it is safe. That directory only contains the test suite. If you
don't run the tests, it can be removed.