Metadata-Version: 2.1
Name: lof
Version: 0.2.0a0
Summary: AWS Lambdas on FastAPI it is a Cli utilit that up & run your lambdas in local env based on AWS Code Deploy Config
Home-page: https://github.com/xnuinside/lof
License: MIT
Author: Iuliia Volkova
Author-email: xnuinside@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: PL/SQL
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: SQL
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Dist: PyYAML (>=5.4.1,<6.0.0)
Requires-Dist: fastapi (>=0.66.0,<0.67.0)
Requires-Dist: python-dotenv (>=0.18.0,<0.19.0)
Requires-Dist: typer (>=0.3.2,<0.4.0)
Requires-Dist: uvicorn (>=0.14.0,<0.15.0)
Project-URL: Repository, https://github.com/xnuinside/lof
Description-Content-Type: text/x-rst


AWS Lambdas on FastAPI - LoF
----------------------------

AWS Lambdas on FastAPI (LoF) is a command line tool that helps you fast & easy up & run your AWS Lambdas for tests and local development.

Context
^^^^^^^

On my current project I works a lot with AWS Lambdas & tries to up & run them with SAM local. 
And there is some issues especially when you work on the project with a big count of lambdas.

Some of them:

1) First of all it does not allow skip some lambdas form config
2) It build lambdas inside each docker container so it takes significant time to build/rebuild & up all containers (and you need up all containers if you want to have fast integration tests)

Both points in the mix make impossible to use SAM in weak developers envs like VDI, for example.

How does it work?
-----------------

Install
^^^^^^^

.. code-block:: bash


       pip install lof

Now run lof & provide to it path to your template yaml file.
Or you can run it from source dir with template.yaml without any args

.. code-block:: bash


       lof

       # or if path custom

       lof --template example/template.yaml

You can choose that lambdas exclude from run by passing their names:

.. code-block:: bash


       lof --template example/template.yaml --exclude=PostLambda2Function

To pass environment variables to Lambdas, use flag --env, you can pass variables in 2 formats - json format and '.env' format. Both files as examples presented in example/ folder

.. code-block:: bash


       lof --env=.env

       # or 

       lof --env=vars.json

This mean, that lof will up & run all lambdas exclude this 2: PostTrafficHook & Roles

Example
^^^^^^^

To try how LoF works you can use AWS Code Deploy template.yaml & Lambdas from example folder.

Issues & features request
^^^^^^^^^^^^^^^^^^^^^^^^^

Fill free to open Issues & report bugs. I will solve them as soon as possible.

Changelog
---------

**v0.2.0**


#. Fixed status_code resend from lambda & JSON body response

**v0.1.0**


#. First version of Lambdas on FastApi. 
   Based on CodeDeploy template it's serve lambdas as FastAPI endpoints for local testing.

