{"id":20784684,"url":"https://github.com/av1m/functions-multiple-endpoints","last_synced_at":"2025-05-04T06:13:45.545Z","repository":{"id":57432609,"uuid":"475439048","full_name":"av1m/functions-multiple-endpoints","owner":"av1m","description":"Run multiple endpoints on Serverless services (e.g AWS lambda, Google Cloud Functions and Azure Functions)","archived":false,"fork":false,"pushed_at":"2022-08-14T17:38:22.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:04:21.200Z","etag":null,"topics":["flask","functions-as-a-service","functions-framework","wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/functions-wrapper/","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/av1m.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":"2022-03-29T12:45:37.000Z","updated_at":"2024-04-22T20:03:08.000Z","dependencies_parsed_at":"2022-09-17T03:51:22.106Z","dependency_job_id":null,"html_url":"https://github.com/av1m/functions-multiple-endpoints","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/av1m%2Ffunctions-multiple-endpoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/av1m%2Ffunctions-multiple-endpoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/av1m%2Ffunctions-multiple-endpoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/av1m%2Ffunctions-multiple-endpoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/av1m","download_url":"https://codeload.github.com/av1m/functions-multiple-endpoints/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251727291,"owners_count":21633972,"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":["flask","functions-as-a-service","functions-framework","wrapper"],"created_at":"2024-11-17T14:32:07.887Z","updated_at":"2025-05-03T02:33:25.778Z","avatar_url":"https://github.com/av1m.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run multiple endpoints on Google Cloud Functions and Amazon Lambda\n\nThis example show how to run multiple endpoints on Google Cloud Functions and Amazon Lambda.\n\nBy default, [functions-framework-python](https://github.com/GoogleCloudPlatform/functions-framework-python) can't run multiple endpoints on the same function.\n\nI present two examples here:\n\n* By using only [one file](examples/onefile/main.py)\n* By using [flask blueprints](examples/blueprint/main.py)\n\n## Get started\n\nInstall the dependencies:\n\n```bash\npip install functions_wrapper\n```\n\n```python\n# main.py \nfrom flask import Flask\nfrom functions_wrapper import entrypoint\n\napp = Flask(__name__)\n\n@app.route(\"/\")\ndef home():\n    return \"Hello World!\"\n\n@app.route(\"/test\")\ndef test():\n    return \"Hello Test!\"\n\napp_wrap = lambda request: entrypoint(app, request)\n```\n\nRun this file with functions-framework:\n\n```bash\nfunctions_framework --target app_wrap\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fav1m%2Ffunctions-multiple-endpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fav1m%2Ffunctions-multiple-endpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fav1m%2Ffunctions-multiple-endpoints/lists"}