{"id":16545277,"url":"https://github.com/vincentsarago/lambda-pyskel","last_synced_at":"2025-10-28T15:31:27.007Z","repository":{"id":57447868,"uuid":"154694530","full_name":"vincentsarago/lambda-pyskel","owner":"vincentsarago","description":"Create skeleton of a python AWS Lambda function","archived":false,"fork":false,"pushed_at":"2019-07-04T15:07:45.000Z","size":32,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T07:42:38.997Z","etag":null,"topics":["aws-lambda","gdal","python","rasterio","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincentsarago.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-25T15:27:29.000Z","updated_at":"2022-08-01T21:55:11.000Z","dependencies_parsed_at":"2022-09-26T17:30:33.436Z","dependency_job_id":null,"html_url":"https://github.com/vincentsarago/lambda-pyskel","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-pyskel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-pyskel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-pyskel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-pyskel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentsarago","download_url":"https://codeload.github.com/vincentsarago/lambda-pyskel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238672360,"owners_count":19511253,"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","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","gdal","python","rasterio","serverless"],"created_at":"2024-10-11T19:06:18.743Z","updated_at":"2025-10-28T15:31:21.697Z","avatar_url":"https://github.com/vincentsarago.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-pyskel\n\nCreate python AWS Lambda skeleton from templates.\n\n[![Packaging status](https://badge.fury.io/py/lambda-pyskel.svg)](https://badge.fury.io/py/lambda-pyskel)\n[![CircleCI](https://circleci.com/gh/vincentsarago/lambda-pyskel.svg?style=svg)](https://circleci.com/gh/vincentsarago/lambda-pyskel)\n[![codecov](https://codecov.io/gh/vincentsarago/lambda-pyskel/branch/master/graph/badge.svg)](https://codecov.io/gh/vincentsarago/lambda-pyskel)\n\nShameless inspiration from @sgillies https://github.com/mapbox/pyskel\n\n## Install\n\nYou can install lambda-pyskel using pip\n\n```bash\n$ pip install -U pip\n$ pip install lambda-pyskel\n```\n\nor install from source:\n\n```bash\n$ git clone https://github.com/vincentsarago/lambda-pyskel.git\n$ cd lambda-pyskel\n$ pip install -U pip\n$ pip install -e .\n```\n\n## Templates\n\n**Three** different templates are available:\n  - **simple**: simple python lambda function\n  - **rasterio**: include rasterio wheels\n  - **gdal**: include custom gdal (2.4.1) installation [from remotepixel docker image](https://github.com/RemotePixel/amazonlinux-gdal)\n\nEach templates has the following structure::\n```\npyskel/                : main module\n    __init__.py\n    handler.py         : handler function\ntests/                 : python tests\n    test_handler.py\n    test_mod.py\nDockerfile             : Dockerfile to create the package.zip\nLICENSE                : BSD-2 license file\nMakefile               : make commands to create/tests the packages\nREADME.md             : Readme\nsetup.py               : Python setup\ntox.ini                : tox template\n```\n\n## Deployement Toolkit\n\nIn addition to python module templates, lambda-pyskel can also add\nconfiguration files for **serverless** or **kes** toolkit.\n\n**kes**: http://devseed.com/kes/\n\n**serverless**: https://serverless.com\n\n## Usage\n\n```bash\n$ lps --help\nUsage: lps [OPTIONS] NAME\n\n  Create new python AWS Lambda skeleton.\n\nOptions:\n  --version                             Show the version and exit.\n  --template [simple|rasterio|gdal]     Use specific template (default: 'simple')\n  --serverless-toolkit [kes|serverless] Add deployement toolkit\n  --help                                Show this message and exit.\n```\n\nCreate a python lambda function with rasterio\n\n```bash\n$ lps yo --template rasterio\n$ ls -1 yo\n  Dockerfile\n  LICENSE\n  Makefile\n  README.rst\n  setup.py\n  tests/\n  tox.ini\n  yo/\n\n# edit yo/handler.py and setup.py\n$ make build\n```\n\n## Contribution \u0026 Devellopement\n\nIssues and pull requests are more than welcome.\n\n**Dev install \u0026 Pull-Request**\n\n```bash\n$ git clone https://github.com/vincentsarago/lambda-pyskel.git\n$ cd lambda-pyskel\n$ pip install -e .[dev]\n```\n\n*Python3.6 only*\n\nThis repo is set to use `pre-commit` to run *flake8*, *pydocstring* and *black* (\"uncompromising Python code formatter\") when committing new code.\n\n```\n$ pre-commit install\n$ git add .\n$ git commit -m'my change'\nblack....................................................................Passed\nFlake8...................................................................Passed\nVerifying PEP257 Compliance..............................................Passed\n$ git push origin\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentsarago%2Flambda-pyskel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentsarago%2Flambda-pyskel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentsarago%2Flambda-pyskel/lists"}