I've found many discussions on bundling python scripts but I'm interested in bundling into a ZIP file my Python script that depends only on 2 libraries "JSON" and "PYMYSQL". Thus, I'd like to get a ZIP file that is containing my Python script with the packages "JSON" and "PYMYSQL" only. Is it possible?
I've used the library called "Pigar" in order to list in the "requirements.txt" the necessary 2 dependencies (i.e. json and pymysql).
The aim is to create a ZIP file to deploy it as a lambda function on AWS; I'm thus looking for a small ZIP file that does not exceed 50MB.
I am not an expert in all virtualenv etc... I guess my package would not work with only JSON and pymysql right?
Many thanks