Last active
December 30, 2022 16:49
-
-
Save onelharrison/ce7cc260afa864d8b82aae55dc843ef9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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