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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restmachine_aws-0.1.1.tar.gz (46.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

restmachine_aws-0.1.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

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

Hashes for restmachine_aws-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccb7d3610fc5aba023c2ff32cce72be0938de8420c740734163f2ce3bb05ec10
MD5 58c59c4326f6e19f7144fe77ab9827da
BLAKE2b-256 1aa07eb4577231c67099ac09815e8f971e5da891bd26c6d12b56a436776673f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for restmachine_aws-0.1.1.tar.gz:

Publisher: publish.yml on rfestag/restmachine-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file restmachine_aws-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for restmachine_aws-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6af6ffbf0ea3dbe5e998a907fdb89d3486ea63e91d0051fb33a3ecdef66daaf7
MD5 847bd138e5858a130087fae0d79e6e4b
BLAKE2b-256 531bb474cc4568d81dd7aacc155d99686eab0220a900e6cc731add69e0bd3b5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for restmachine_aws-0.1.1-py3-none-any.whl:

Publisher: publish.yml on rfestag/restmachine-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page