Skip to main content

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)

Source distribution for restmachine-aws 0.1.1
File Size Uploaded
restmachine_aws-0.1.1.tar.gz 46.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for restmachine-aws 0.1.1
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page