Skip to content
Back to skills

Python Fastapi

ASecurity

FastAPI 기반 Python 백엔드 컨벤션

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 28, 2026
ai-agentspythonsqlfastapiapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add ggombee/code-forge --skill python-fastapi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Fastapi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Fastapi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ggombee-python-fastapi/badge)](https://www.skillsdirectory.com/skills/ggombee-python-fastapi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: python-fastapi
description: FastAPI 기반 Python 백엔드 컨벤션
---

# FastAPI 컨벤션

## 프로젝트 구조

```
app/
├── main.py          # FastAPI 앱 진입점, 라우터 등록
├── api/             # 라우터 모음 (v1/, v2/ 등 버전 분리)
├── core/            # 설정, 의존성, 보안
├── models/          # SQLAlchemy ORM 모델
├── schemas/         # Pydantic 스키마 (요청/응답)
├── services/        # 비즈니스 로직 (라우터와 분리)
└── tests/
```

## 네이밍 규칙

- 파일/모듈: `snake_case`
- 클래스: `PascalCase`
- 함수/변수: `snake_case`
- 상수: `UPPER_SNAKE_CASE`
- Pydantic 스키마: `{Entity}Request`, `{Entity}Response`

## 에러 처리

- `HTTPException(status_code=..., detail=...)` 사용
- 공통 에러는 `app/core/exceptions.py`에 커스텀 예외 클래스로 정의
- 전역 exception handler는 `main.py`에 `@app.exception_handler` 등록

## 테스트

- `pytest` + `httpx.AsyncClient` 조합
- `conftest.py`에 DB fixture, 앱 fixture 정의
- 단위 테스트: `services/` 레이어 집중
- 통합 테스트: 라우터 엔드포인트 전체 흐름

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.