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
| mbuczkowski-gm |
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
| from json import JSONDecodeError | |
| from uuid import UUID | |
| import psycopg2 | |
| from aiohttp import web | |
| from elasticapm.contrib.aiohttp import ElasticAPM | |
| from sqlalchemy import select | |
| from db_conn import engine, users |
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
| from json import JSONDecodeError | |
| from uuid import UUID | |
| import requests | |
| from time import sleep | |
| from aiohttp import web | |
| from elasticapm.contrib.aiohttp import ElasticAPM | |
| def validate_uuid(value): | |
| try: |
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 aiohttp import web | |
| data = [ | |
| {"name": "Andy"}, | |
| {"name": "Bob"}, | |
| {"name": "Charlie"}, | |
| {"name": "Duncan"}, | |
| ] |