Featured image of post [Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

[Python Cheatsheet] 13. Files - pathlib/encoding/open 패턴

파일 입출력과 경로 처리를 빠르게 하기 위한 치트시트입니다. pathlib로 경로 다루기, open()의 encoding/newline, 텍스트·바이너리 모드, 안전한 읽기/쓰기(with) 패턴과 흔한 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 15. venv & pip - 환경/의존성 기본

[Python Cheatsheet] 15. venv & pip - 환경/의존성 기본

가상환경과 패키지 설치를 빠르게 정리하는 치트시트입니다. venv 생성/활성화, pip install/upgrade, requirements.txt 관리, 재현 가능한 설치 습관과 흔한 환경 꼬임을 최소 체크리스트로 정리합니다.

Featured image of post [Python Cheatsheet] 20. dataclasses - default_factory/frozen 패턴

[Python Cheatsheet] 20. dataclasses - default_factory/frozen 패턴

dataclasses를 빠르게 적용하기 위한 치트시트입니다. @dataclass 기본, field(default_factory), frozen/slots, 비교/정렬 옵션, 불변 객체로 모델링하는 패턴과 mutable default 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 35. JSON & CSV - 읽기/쓰기/인코딩

[Python Cheatsheet] 35. JSON & CSV - 읽기/쓰기/인코딩

JSON/CSV를 빠르게 읽고 쓰기 위한 치트시트입니다. json.load/dump 옵션(ensure_ascii/indent), DictReader/DictWriter, newline/encoding 주의점, 흔한 데이터 타입 이슈를 실전 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 37. datetime - timezone/파싱/포맷

[Python Cheatsheet] 37. datetime - timezone/파싱/포맷

datetime을 안전하게 다루기 위한 치트시트입니다. naive/aware 구분, timezone(UTC) 기본, ISO 파싱/포맷, 타임존 변환, 흔한 버그 포인트(로컬타임/서머타임)를 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 39. Regex - 안전하게 쓰는 최소 패턴

[Python Cheatsheet] 39. Regex - 안전하게 쓰는 최소 패턴

정규표현식을 안전하게 쓰기 위한 치트시트입니다. re.search/match/findall/sub, 그룹/이름그룹, greedy vs non-greedy, flags, raw string, 과도한 백트래킹 회피 등 실무 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 57. Logging & Debugging - traceback 읽기

[Python Cheatsheet] 57. Logging & Debugging - traceback 읽기

로깅과 디버깅을 빠르게 정리하는 치트시트입니다. logging 기본 설정, logger 사용 패턴, 예외 로깅(exception), traceback 읽는 법, breakpoint/pdb 활용(선택)과 실무 함정을 최소 예제로 정리합니다.

Featured image of post [Python Cheatsheet] 59. Testing - unittest/pytest 관점

[Python Cheatsheet] 59. Testing - unittest/pytest 관점

테스트를 빠르게 시작하기 위한 치트시트입니다. Arrange-Act-Assert, pytest 스타일 assert, unittest 기본, fixture/parameterize 개념, mock의 최소 사용 원칙과 실무에서 자주 깨지는 포인트를 정리합니다.