{"id":19437880,"url":"https://github.com/architect/functions-python","last_synced_at":"2025-09-10T11:34:39.483Z","repository":{"id":52414291,"uuid":"167772260","full_name":"architect/functions-python","owner":"architect","description":"AWS Lambda Python runtime helpers for Architect apps","archived":false,"fork":false,"pushed_at":"2023-12-22T21:16:19.000Z","size":110,"stargazers_count":14,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-03T12:02:19.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/architect.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-01-27T05:12:28.000Z","updated_at":"2024-09-30T00:03:11.000Z","dependencies_parsed_at":"2022-09-09T16:01:45.310Z","dependency_job_id":null,"html_url":"https://github.com/architect/functions-python","commit_stats":null,"previous_names":["arc-repos/arc-functions-python"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/architect","download_url":"https://codeload.github.com/architect/functions-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249845514,"owners_count":21333728,"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":[],"created_at":"2024-11-10T15:16:10.468Z","updated_at":"2025-04-24T21:32:30.474Z","avatar_url":"https://github.com/architect.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/architect/assets.arc.codes/raw/main/public/architect-logo-light-500b%402x.png\"\u003e\n  \u003cimg alt=\"Architect Logo\" src=\"https://github.com/architect/assets.arc.codes/raw/main/public/architect-logo-500b%402x.png\"\u003e\n\u003c/picture\u003e\n\n## [`architect-functions`](https://pypi.org/project/architect-functions/)\n\n\u003e Runtime utility package for [Functional Web Apps (FWAs)](https://fwa.dev/) built with [Architect](https://arc.codes)\n\n[![GitHub CI status](https://github.com/architect/functions-python/actions/workflows/build.yml/badge.svg)](https://github.com/architect/functions-python/actions/workflows/build.yml)\n\nCheck out the full docs for [this library](https://arc.codes/docs/en/reference/runtime-helpers/python) and [Architect](https://arc.codes)\n\n\n## Install\n\nWithin your Architect project directory, add `architect-functions` to its root `requirements.txt`:\n\n```bash\npip install architect-functions -r requirements.txt\n```\n\n\u003e You may also add `architect-functions` to individual Lambda `requirements.txt` files, but we suggest making use of Architect's automated Lambda treeshaking. See the [Architect dependency management guide](https://staging.arc.codes/docs/en/guides/developer-experience/dependency-management#python) for more details.\n\n\n## Usage\n\n```py\nimport arc          # Import all tools, or\nimport arc.events   # @events pub/sub\nimport arc.http     # @http tools + sessions\nimport arc.queues   # @queues pub/sub\nimport arc.services # Architect resource / service discovery\nimport arc.tables   # @tables DynamoDB helper methods + API client\nimport arc.ws       # @ws WebSocket helper + API client\n```\n\n\n## API\n\n[**`@events` methods**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.events)\n- [`arc.events.parse()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.events.parse())\n- [`arc.events.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.events.publish())\n\n[**`@http` methods**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.http)\n- [`arc.http.parse_body()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.http.parse_body())\n- [`arc.http.res()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.http.res())\n- [`arc.http.session_read()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.http.session_read())\n- [`arc.http.session_write()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.http.session_write())\n\n[**`@queues` methods**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.queues)\n- [`arc.queues.parse()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.queues.parse())\n- [`arc.queues.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.queues.publish())\n\n[**Service discovery**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.services())\n- [`arc.services()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.services())\n\n[**`@tables` methods**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.tables)\n- [`arc.tables.name()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.tables.name())\n- [`arc.tables.table()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.tables.table())\n\n[**`@ws` methods**](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.ws)\n- [`arc.ws.api()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.ws.api())\n- [`arc.ws.close()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.ws.close())\n- [`arc.ws.info()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.ws.info())\n- [`arc.ws.send()`](https://arc.codes/docs/en/reference/runtime-helpers/python#arc.ws.send())\n\n---\n\n## Development\n\nInstall [Pipenv](https://pipenv.pypa.io/en/latest/#install-pipenv-today)\n\n```bash\npipenv install --dev\n```\n\n---\n\n## Testing\n\n```bash\npipenv run pytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Ffunctions-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchitect%2Ffunctions-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Ffunctions-python/lists"}