{"id":25898231,"url":"https://github.com/adminy/sls-py","last_synced_at":"2025-07-27T14:41:33.542Z","repository":{"id":164085627,"uuid":"639172213","full_name":"adminy/sls-py","owner":"adminy","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-19T12:17:47.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T12:58:51.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/adminy.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-05-10T23:16:44.000Z","updated_at":"2024-02-13T22:46:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8b6ed28-972f-4c97-a710-9704ba61430f","html_url":"https://github.com/adminy/sls-py","commit_stats":null,"previous_names":["adminy/sls-py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adminy/sls-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminy%2Fsls-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminy%2Fsls-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminy%2Fsls-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminy%2Fsls-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adminy","download_url":"https://codeload.github.com/adminy/sls-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adminy%2Fsls-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267371594,"owners_count":24076633,"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-07-27T02:00:11.917Z","response_time":82,"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":[],"created_at":"2025-03-03T00:17:41.146Z","updated_at":"2025-07-27T14:41:33.520Z","avatar_url":"https://github.com/adminy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sls-py\n\n![sls-py](https://github.com/adminy/sls-py/assets/22717869/08427ded-a060-4066-958e-98d0a8765726)\n\n\n```yaml\nplugins:\n  - sls-py\nprovider:\n  name: aws\n  runtime: python3.9\n  region: eu-west-1\n  vpc:\n    subnetIds: !Split [\",\", \"subnet-id1,subnet-id2\"]\n    securityGroupIds: !Split [\",\", \"sg-id1,sg-id2\"]\ncustom:\n  pythonRequirements:\n    # shared properties across all lambda functions\n    enableLambdaInsights: true\n    vpc: ${self:provider.vpc}\n    timeout: 900\n    # pip arguments for dependency installation\n    indexUrl: https://pypi.org/simple\n    extraIndexUrl: https://pypi.org/simple\n    trustedHost: pypi.org\n    # common modules between all lambda functions\n    shared:\n      common_utils: ../shared\n      common_data: ../data\n    # files and directories to exclude\n    exclude:\n      - somefile.txt\n      - data.tmp\n\n\nfunctions:\n  hello:\n    handler: handler.hello\n```\n---\n\u003e **Note**\n\n\n\u003e filter using the `exclude` option.\n\n\u003eIn handler.py, **shared** code can be imported like this:\n```py\nfrom common_utils import shared_resource\n```\n\n\u003c!-- - [ ] [zip-imports](https://docs.python.org/3/library/zipimport.html) --\u003e\n\n## Requirements\n---\n- [x] python \u0026 pip installed\n- [x] minimum required node version \u003e= 16\n\n### Features\n- `shared` is attached to all the lambdas.\n  - you can place repeated dependencies inside your shared layer to:\n    - save space.\n    - reduce cold startup time.\n    - much faster deployments.\n- `exclude` works for excluding code and dependencies alike.\n\n\n\n\nLicense: [lgpl-3.0 or later](https://www.gnu.org/licenses/lgpl-3.0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadminy%2Fsls-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadminy%2Fsls-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadminy%2Fsls-py/lists"}