AWS Lambda adapter for RestMachine framework
Project description
RestMachine AWS Adapter
AWS Lambda adapter for RestMachine framework.
Installation
pip install restmachine-aws
For development:
# From monorepo root
pip install -e packages/restmachine[dev]
pip install -e packages/restmachine-aws[dev]
Usage
from restmachine import RestApplication
from restmachine_aws import AwsApiGatewayAdapter
app = RestApplication()
@app.get("/hello")
def hello():
return {"message": "Hello from AWS Lambda!"}
# Create Lambda handler
adapter = AwsApiGatewayAdapter(app)
def lambda_handler(event, context):
return adapter.handle_event(event, context)
Features
- AWS API Gateway Lambda proxy integration support
- Automatic conversion between API Gateway events and RestMachine requests
- Base64 encoding/decoding for binary content
- Query parameters, path parameters, and headers support
- Full request context available
Testing
pytest packages/restmachine-aws/tests/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file restmachine_aws-0.1.1.tar.gz.
File metadata
- Download URL: restmachine_aws-0.1.1.tar.gz
- Upload date:
- Size: 46.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccb7d3610fc5aba023c2ff32cce72be0938de8420c740734163f2ce3bb05ec10
|
|
| MD5 |
58c59c4326f6e19f7144fe77ab9827da
|
|
| BLAKE2b-256 |
1aa07eb4577231c67099ac09815e8f971e5da891bd26c6d12b56a436776673f9
|
Provenance
The following attestation bundles were made for restmachine_aws-0.1.1.tar.gz:
Publisher:
publish.yml on rfestag/restmachine-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restmachine_aws-0.1.1.tar.gz -
Subject digest:
ccb7d3610fc5aba023c2ff32cce72be0938de8420c740734163f2ce3bb05ec10 - Sigstore transparency entry: 607029870
- Sigstore integration time:
-
Permalink:
rfestag/restmachine-python@351c2ac01720804df0b4546fab297dd136f6651f -
Branch / Tag:
refs/tags/restmachine-aws-0.1.1 - Owner: https://github.com/rfestag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@351c2ac01720804df0b4546fab297dd136f6651f -
Trigger Event:
push
-
Statement type:
File details
Details for the file restmachine_aws-0.1.1-py3-none-any.whl.
File metadata
- Download URL: restmachine_aws-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6af6ffbf0ea3dbe5e998a907fdb89d3486ea63e91d0051fb33a3ecdef66daaf7
|
|
| MD5 |
847bd138e5858a130087fae0d79e6e4b
|
|
| BLAKE2b-256 |
531bb474cc4568d81dd7aacc155d99686eab0220a900e6cc731add69e0bd3b5a
|
Provenance
The following attestation bundles were made for restmachine_aws-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on rfestag/restmachine-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restmachine_aws-0.1.1-py3-none-any.whl -
Subject digest:
6af6ffbf0ea3dbe5e998a907fdb89d3486ea63e91d0051fb33a3ecdef66daaf7 - Sigstore transparency entry: 607029878
- Sigstore integration time:
-
Permalink:
rfestag/restmachine-python@351c2ac01720804df0b4546fab297dd136f6651f -
Branch / Tag:
refs/tags/restmachine-aws-0.1.1 - Owner: https://github.com/rfestag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@351c2ac01720804df0b4546fab297dd136f6651f -
Trigger Event:
push
-
Statement type: