Relative Content

Tag Archive for pythonamazon-web-servicesclassaws-lambdaenvironment-variables

How to set up different sets of class methods in based on an environment variable?

I am developing a toy crypto project that involves training keras models and then deploying them in AWS lambda. I test the models locally and deploy them as lambda functions in AWS. Some classes are used both locally and during lambda invocation, but they have wildly different internal working. For instance, a class Asset implements current_price method, but it calls API in one case and local db in another.