{"id":16101850,"url":"https://github.com/koxudaxi/lambdantic","last_synced_at":"2025-09-05T20:31:51.700Z","repository":{"id":62574988,"uuid":"207117551","full_name":"koxudaxi/lambdantic","owner":"koxudaxi","description":"Pydantic model and lambda event handler for AWS Lambda","archived":false,"fork":false,"pushed_at":"2020-04-20T16:29:21.000Z","size":379,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-29T19:49:46.563Z","etag":null,"topics":["apigateway","aws","lambda","pydantic","python"],"latest_commit_sha":null,"homepage":"https://koxudaxi.github.io/lambdantic","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koxudaxi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-08T13:35:27.000Z","updated_at":"2024-05-04T13:03:53.000Z","dependencies_parsed_at":"2022-11-03T18:53:36.943Z","dependency_job_id":null,"html_url":"https://github.com/koxudaxi/lambdantic","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/koxudaxi/lambdantic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koxudaxi%2Flambdantic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koxudaxi%2Flambdantic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koxudaxi%2Flambdantic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koxudaxi%2Flambdantic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koxudaxi","download_url":"https://codeload.github.com/koxudaxi/lambdantic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koxudaxi%2Flambdantic/sbom","scorecard":{"id":568727,"data":{"date":"2025-08-11","repo":{"name":"github.com/koxudaxi/lambdantic","commit":"e4eb682b9cd7a0d51ceee6d15a91f8a0f9f35cf4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/11 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-47 / GHSA-5jqp-qgf6-3pvh","Warn: Project is vulnerable to: GHSA-mr82-8j83-vxmv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T15:43:53.709Z","repository_id":62574988,"created_at":"2025-08-20T15:43:53.709Z","updated_at":"2025-08-20T15:43:53.709Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273372607,"owners_count":25093713,"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-09-02T02:00:09.530Z","response_time":77,"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":["apigateway","aws","lambda","pydantic","python"],"created_at":"2024-10-09T18:51:26.269Z","updated_at":"2025-09-05T20:31:51.317Z","avatar_url":"https://github.com/koxudaxi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambdantic\n[Pydantic](https://github.com/samuelcolvin/pydantic) model and lambda event handler for [AWS Lambda](https://aws.amazon.com/lambda/)\n\n[![Build Status](https://travis-ci.org/koxudaxi/lambdantic.svg?branch=master)](https://travis-ci.org/koxudaxi/lambdantic)\n[![PyPI version](https://badge.fury.io/py/lambdantic.svg)](https://badge.fury.io/py/lambdantic)\n[![codecov](https://codecov.io/gh/koxudaxi/lambdantic/branch/master/graph/badge.svg)](https://codecov.io/gh/koxudaxi/lambdantic)\n\n\n## This project is an experimental phase.\n\n## What is Lambdantic ?\nThe name means [AWS Lambda](https://aws.amazon.com/lambda/) + [pydantic](https://github.com/samuelcolvin/pydantic)\n\n`lambdantic` dispatch handler function from aws lambda events and to assign attributes from event object.\n\n## Installation\n\nTo install `lambdantic`:\n```sh\n$ pip install lambdantic\n```\n\n## Example\n### API Gateway\nThe example is simple api which is invoked by API Gateway.\n\n`lambdantic` parse  [Lambda Proxy Integration](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html) request.\n\nThe example should be deployed by [Serverless](https://serverless.com/), [AWS CDK](https://github.com/aws/aws-cdk) or other framework which supports [Lambda Proxy Integration](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html).\n\n```python\n# handler.py\nfrom typing import List, Optional\n\nfrom pydantic import BaseModel, Schema\n\nfrom lambdantic.apigateway import Handler\n\nhandler = Handler()\n\n\nclass Pet(BaseModel):\n    pet_id: Optional[int] = Schema(..., alias='id')\n    name: str\n    age: int\n\n\n# database\npets = [\n        Pet(id=1, name='dog', age=3),\n        Pet(id=2, name='cat', age=2)\n    ]\n\n\n@handler.get('/pets')\ndef get_pets() -\u003e List[Pet]:\n    return pets\n\n\n@handler.get('/pets/\u003cpet_id\u003e')\ndef get_pet(pet_id: int) -\u003e Pet:\n    for pet in pets:\n        if pet.pet_id == pet_id:\n            return pet\n\n\n@handler.post('/pets', body_model=Pet, status_code=201)\ndef crate_pet(pet: Pet) -\u003e Pet:\n    pet.pet_id = max(p.pet_id for p in pets)\n    pets.append(pet)\n\n    return pet\n```\n\nIf you use Serverless then, the handler is defined like this example.\n```yaml\nfunctions:\n  pet:\n    handler: handler.handler\n    events:\n      - http:\n          method: any\n          path: /{proxy+}\n```\n\nI show common parameters for Other framework \n```\nHandler: handler.handler\nAPI Gateway API integration type : Lambda Proxy Integration\nPath: /{proxy+}\nmethod: ANY\n```\n\n## Implemented\n- API Gateway (WIP)\n\n## Not Implemented\n- S3\n- SNS\n... and more\n\n\n## Development\n\nInstall the package in editable mode:\n\n```sh\n$ git clone git@github.com:koxudaxi/lambdantic.git\n$ pip install -e lambdantic\n```\n\n## PyPi \n\n[https://pypi.org/project/lambdantic](https://pypi.org/project/lambdantic)\n\n## Source Code\n\n[https://github.com/koxudaxi/lambdantic](https://github.com/koxudaxi/lambdantic)\n\n## Documentation\n\n[https://koxudaxi.github.io/lambdantic](https://koxudaxi.github.io/lambdantic)\n\n## License\n\nlambdantic is released under the MIT License. http://www.opensource.org/licenses/mit-license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoxudaxi%2Flambdantic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoxudaxi%2Flambdantic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoxudaxi%2Flambdantic/lists"}