Logging 레벨 조절
import logging
logging.basicConfig(level=logging.INFO)
logging.info('This is an info message') 1 min read
Gunicorn UNIX 기반 OS 를 위한 WSGI HTTP 서버 Sanic application 하고 Gunicorn 을 함께 돌리기 위해서는 sanic.worker.GunicornWorker 인자를 함께 넣어줘야함 gunicorn myapp:app bind 0.0.0.0:1337 worker-class...
Contextlib contextlib 모듈을 통해서 어떠한 작업을 할때 자동으로 close 메소드를 호출하게끔 할 수 있습니다. 2.
Venv 파이썬 가상 환경 생성을 위한 모듈 B) Related C) References.
Module 모듈 (Module) 은 하나의 파일 .py 을 가리킴 파이썬 모듈 .py 파일은 import 하여 사용할 수 있을 뿐만 아니라, 해당 모듈 파일 안에 있는 스크립트 전체를 바로 실행할 수도 있다.
Sanic Sanic is both a framework and a web server.
RLlib RLlib 은 python library 로 Ray 기반으로 동작하는 RL 알고리즘을 제공한다. B) Related C) References.
Setattr Python 에서 클래스 인스턴스의 attribute 를 설정하는 함수다. 예를 들어, setattr(x, & 039;foobar& 039;, 123) 는 x.foobar = 123 와 같은 효과를 보인다.
PEP PEP 는 Python Enhancement Proposal 을 의미한다. PEP 는 python 코드의 가독성을 최대화 하기 위해 어떻게 코드를 format 해야 할지에 대한 규칙들을 모아놓은 집합이다. B) Related C) References.
커널 재시작 안하고 모듈 불러오기 %load ext autoreload %autoreload 2 B) Related C) References.
Property Decorator python built-in decorator Related References www.daleseo.com/python-property/ .