Skip to content

Instantly share code, notes, and snippets.

@onelharrison
Last active December 30, 2022 16:49
Show Gist options
  • Save onelharrison/ce7cc260afa864d8b82aae55dc843ef9 to your computer and use it in GitHub Desktop.
Save onelharrison/ce7cc260afa864d8b82aae55dc843ef9 to your computer and use it in GitHub Desktop.
import json
from faker import Faker
fake = Faker()
def handler(event, context):
return {
"statusCode": 200,
"headers": {"Content-Type": "application/json"},
"body": json.dumps({"profile": { "name": fake.name(), "address": fake.address() }}),
}
if __name__ == "__main__":
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment