본문 바로가기

python37

[Python] 파이썬 \", \n replace 하는 방법 str = str.replace('\\"', '"') str = str.replace('\\n', '') \\" 로 써줘야 \" 로 인식. \n도 마찬가지. 2022. 9. 30.
[Python] 파이썬 FastAPI 서버 구축 삽질 기록 알게된 거 두서없이 기록. * 10 popular REST frameworks For your MicroService https://vishnuch.tech/10-popular-rest-frameworks-for-your-microservice Full Stack FastAPI and PostgreSQL - Base Project Generator : https://github.com/tiangolo/full-stack-fastapi-postgresql *개념 정리 ASGI(Asynchronous Server Gateway Interface)란 : WSGI의 상위 호환. 대용량 트래픽을 처리하기 위한 비동기 처리 지원. 대표 예는 uvicorn Swagger UI란, Swagger 제품군 중 API Do.. 2022. 9. 22.
[Python] ModuleNotFoundError: No module named 'flask_sqlalchemy' 해결 방법 from flask_sqlalchemy import SQLAlchemy 오류 코드 : ModuleNotFoundError: No module named 'flask_sqlalchemy' 해결 : pip install Flask-SQLAlchemy 출처 : https://velog.io/@wrjang96/FLASK-%EC%97%90%EB%9F%AC-%EC%A0%95%EB%A6%AC 2022. 9. 2.
[Python] 파이썬 MySQLdb 라이브러리 python 3.X 사용 방법 MySQLdb 라이브러리는 python2.X에서 사용 가능 python 3.x에서는 pymysql 라이브러리를 쓴다. MySQLdb 라이브러리 python 3.X 사용 방법 : 라이브러리 pymysql, mysqlclient 설치 2022. 9. 1.
[Python] json.dumps 한글 인코딩 문제 : json.dumps(result) 했을 때 한글이 다 깨져 나옴 해결 : results = json.dumps(result, ensure_ascii=False) ensure_ascii=False 넣어서 해결 2022. 9. 1.