{"id":16615069,"url":"https://github.com/dschep/sls-py-tmpl","last_synced_at":"2025-08-19T09:12:54.108Z","repository":{"id":52422769,"uuid":"116210423","full_name":"dschep/sls-py-tmpl","owner":"dschep","description":"A better Python template for serverless","archived":false,"fork":false,"pushed_at":"2021-04-29T19:04:31.000Z","size":18,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T10:52:25.118Z","etag":null,"topics":["aws-lambda","python","severless","template"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dschep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-04T03:33:02.000Z","updated_at":"2020-07-16T05:47:59.000Z","dependencies_parsed_at":"2022-08-18T18:20:44.619Z","dependency_job_id":null,"html_url":"https://github.com/dschep/sls-py-tmpl","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/dschep/sls-py-tmpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2Fsls-py-tmpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2Fsls-py-tmpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2Fsls-py-tmpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2Fsls-py-tmpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dschep","download_url":"https://codeload.github.com/dschep/sls-py-tmpl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2Fsls-py-tmpl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271128862,"owners_count":24703879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","python","severless","template"],"created_at":"2024-10-12T02:08:36.711Z","updated_at":"2025-08-19T09:12:54.084Z","avatar_url":"https://github.com/dschep.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Python Template\n\nThis repo is intended as a better alternative to the built-in AWS Python\ntemplates in [serverless](https://github.com/serverless/serverless).\n\n## What's included?\nThis template includes a few of my favorite things for working with Python \u0026\nServerless:\n\n * ⚡️🐍📦 [serverless-python-requirements](https://github.com/UnitedIncome/serverless-python-requirements)\n * 🐍λ✨ [lambda-decorators](http://lambda-decorators.rtfd.io)\n * ✨🍰✨ [pipenv](https://docs.pipenv.org)\n\nIt also has a tweaked `serverless.yml` file featuring:\n * custom variable syntax that allows using the default syntax AND `${AWS::AccountId}` CloudFormation-style variables\n * A better IAM example - resources needed for using SSM Parameter store!\n * Add custom section with useful workarounds sls var limitations\n * A few other minor tweaks\n\n## Getting started\n```\n$ # if you don't have them installed, ensure you have serverless \u0026 pipenv\n$ npm i -g serverless ; pip install pipenv\n$ # Clone the template using the\n$ serverless create -u https://github.com/dschep/sls-py-tmpl -n project-name\nServerless: Downloading and installing \"sls-py-tmpl\"...\nServerless: Successfully installed \"project-name\" \n$ cd project-name\n$ # Create virtualenv and install dependencies\n$ pipenv install\nCreating a virtualenv for this project…\nUsing /usr/bin/python3.6m to create virtualenv…\n⠋Running virtualenv with interpreter /usr/bin/python3.6m\nUsing base prefix '/usr'\nNew python executable in /home/dschep/.local/share/virtualenvs/sls-py-tmpl-bdJKnR1O/bin/python3.6m\nAlso creating executable in /home/dschep/.local/share/virtualenvs/sls-py-tmpl-bdJKnR1O/bin/python\nInstalling setuptools, pip, wheel...done.]\n\nVirtualenv location: /home/dschep/.local/share/virtualenvs/sls-py-tmpl-bdJKnR1O\nInstalling dependencies from Pipfile.lock (c44045)…\n  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/1 — 00:00:00\nTo activate this project's virtualenv, run the following:\n $ pipenv shell\n\n$ # Test the sample lambda locally (sls is an included alias for serverless)\n$ pipenv run sls invoke local -f hello\n{\n    \"statusCode\": 200,\n    \"body\": \"{\\\"message\\\": \\\"Go Serverless v1.0! Your function executed successfully!\\\", \\\"input\\\": {}}\"\n}\n$ # Deploy to AWS!\n$ sls deploy\nServerless: Generating requirements.txt from Pipfile...\nServerless: Installing required Python packages with python3.6...\nServerless: Linking required Python packages...\nServerless: Packaging service...\nServerless: Excluding development dependencies...\nServerless: Unlinking required Python packages...\nServerless: Uploading CloudFormation file to S3...\nServerless: Uploading artifacts...\nServerless: Uploading service .zip file to S3 (19.72 KB)...\nServerless: Validating template...\nServerless: Updating Stack...\nServerless: Checking Stack update progress...\n.........\nServerless: Stack update finished...\nService Information\nservice: project-name\nstage: dev\nregion: us-east-1\nstack: project-name-dev\napi keys:\n  None\nendpoints:\n  None\nfunctions:\n  hello: project-name-dev-hello\n$ # Invoke!\n$ sls invoke -f hello\n{\n    \"statusCode\": 200,\n    \"body\": \"{\\\"message\\\": \\\"Go Serverless v1.0! Your function executed successfully!\\\", \\\"input\\\": {}}\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschep%2Fsls-py-tmpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdschep%2Fsls-py-tmpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschep%2Fsls-py-tmpl/lists"}