template, plz check
Project description
Template for sam nbdev
Summary description here.
Install
pip install aws-sam-cli nbdev pynamodb-dax
to configure aws credentials run brew install awscli
then aws configure
you can put the IAM user keys in
How to use
- fill in all the notebooks in the folder nbs
- put
#export
on top of any cells you want to export and#default_exp filename
on top of the notebook (see exampleget.ipynb
) - put
#hide
on top of the cells you dont want to include in python package - change
nbs_path
from.
tonbs
insettings.ini
- run
make build
- edit sam template
- template as necessary, file
template.yaml
- test your sam template using
make test
-
put library to install with pip into
layerRequirements.txt
orsamRequirements.txt
-
only for the first run:
- run
sam build
thensam deploy --guided
- run
make test
- editing the app router
- edit the file
app/app.py
- put this on the top line
from src.<your nb name> import <your lambda function in nbdev>
- dont forget to put
#export
on top of the cells you want to include in the product
-
(optional) to deploy using github action, edit the
deploy.yml
file as appropriatein most cases you should only edit the last line
-
go to cloudformation console to see the result
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
globalPrimePay-0.0.3.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for globalPrimePay-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752500511db394f10f75f48e712edd38ad6439b8510c50f7e1470b09283b5b69 |
|
MD5 | 455fbe74e5849639474b6c16fe5b8da8 |
|
BLAKE2b-256 | 49ec1c7df3f1f43613cb300c0284fe43866ba04f804bce94c4de7807c11d697b |