2020-05-22 Why Do I Move Away From Zappa Serverless?
2020-05-22
It is slow
It is difficult to work with SSO
# code for step 5def load_extensions():
from saml2 import extension
import pkgutil
package = extension
prefix = package.__name__ + "."
ext_map = {}
for importer, modname, ispkg in pkgutil.iter_modules( package.__path__,
prefix):
module = __import__(modname, fromlist="dummy")
if modname != "saml2.extension.__pycache__":
ext_map[module.NAMESPACE] = module# code for step 7copytree(os.path.join( current_site_packages_dir, "lib"), os.path.join(venv_site_packages_dir, "lib"))
def create_handler_venv(self):
"""
Takes the installed zappa and brings it into a fresh virtualenv-like folder. All dependencies are then downloaded.
"""
import subprocess
# We will need the currenv venv to pull Zappa from
current_venv = self.get_current_venv()
# Make a new folder for the handler packages
ve_path = os.path.join(os.getcwd(), 'handler_venv')
if os.sys.platform == 'win32':
current_site_packages_dir = os.path.join(current_venv, 'Lib', 'site-packages')
venv_site_packages_dir = os.path.join(ve_path, 'Lib', 'site-packages')
else:
current_site_packages_dir = os.path.join(current_venv, 'lib', get_venv_from_python_version(), 'site-packages')
venv_site_packages_dir = os.path.join(ve_path, 'lib', get_venv_from_python_version(), 'site-packages')
copytree(os.path.join( current_site_packages_dir, "lib"), os.path.join(venv_site_packages_dir, "lib"))It could not load big sized data
It is difficult to debug
It is not cheap
Previous2023-01-02 Create A Tutorial Video Using Python Scripts And AINext2018-07-29 How To Earn Free Credits From Labii ELN & LIMS
Last updated