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
Metadata
Release files for restmachine-aws 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| restmachine_aws-0.1.1.tar.gz | 46.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| restmachine_aws-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.5 kB
Release files / restmachine_aws-0.1.1.tar.gz
| Download URL | restmachine_aws-0.1.1.tar.gz |
|---|---|
| Size | 46.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccb7d3610fc5aba023c2ff32cce72be0938de8420c740734163f2ce3bb05ec10
|
|
BLAKE2b-256 checksum How to use checksums |
1aa07eb4577231c67099ac09815e8f971e5da891bd26c6d12b56a436776673f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logRelease files / restmachine_aws-0.1.1-py3-none-any.whl
| Download URL | restmachine_aws-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6af6ffbf0ea3dbe5e998a907fdb89d3486ea63e91d0051fb33a3ecdef66daaf7
|
|
BLAKE2b-256 checksum How to use checksums |
531bb474cc4568d81dd7aacc155d99686eab0220a900e6cc731add69e0bd3b5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency log