Skip to content

Instantly share code, notes, and snippets.

View junah201's full-sized avatar
😼
with cat

Jun-Ah 준아 junah201

😼
with cat
View GitHub Profile
@junah201
junah201 / bootstrap_1.py
Last active January 18, 2025 06:44
AWS Lambda Python 런타임의 Logging 시스템 뜯어보기
# https://github.com/aws/aws-lambda-python-runtime-interface-client/blob/849e874de01776cb386c18fb2c1731d43cd2b2f4/awslambdaric/bootstrap.py#L478C1-L534C14
def run(app_root, handler, lambda_runtime_api_addr):
sys.stdout = Unbuffered(sys.stdout)
sys.stderr = Unbuffered(sys.stderr)
use_thread_for_polling_next = os.environ.get("AWS_EXECUTION_ENV") in {
"AWS_Lambda_python3.12",
"AWS_Lambda_python3.13",
}
google.com, pub-7313453775881678, DIRECT, f08c47fec0942fa0
@junah201
junah201 / database.py
Created April 1, 2023 13:08
Pynamodb study
from pynamodb.attributes import UnicodeAttribute, NumberAttribute, BooleanAttribute, UTCDateTimeAttribute, JSONAttribute
from pynamodb.models import Model
from time import sleep
Access_Key = "AKIASDKHWTHT5FZB5TMC"
Secret_Key = "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"
Region = "ap-northeast-2"
class BaseModel(Model):