cursor-boilerplate 0.7.3__py3-none-any.whl → 0.7.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cursor_boilerplate/.cursor/rules/always.mdc +1 -1
- cursor_boilerplate/.cursor/rules/fastapi.mdc +69 -0
- {cursor_boilerplate-0.7.3.dist-info → cursor_boilerplate-0.7.4.dist-info}/METADATA +1 -1
- cursor_boilerplate-0.7.4.dist-info/RECORD +9 -0
- {cursor_boilerplate-0.7.3.dist-info → cursor_boilerplate-0.7.4.dist-info}/WHEEL +1 -1
- cursor_boilerplate-0.7.3.dist-info/RECORD +0 -8
- {cursor_boilerplate-0.7.3.dist-info → cursor_boilerplate-0.7.4.dist-info}/entry_points.txt +0 -0
- {cursor_boilerplate-0.7.3.dist-info → cursor_boilerplate-0.7.4.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
description:
|
3
|
+
globs:
|
4
|
+
alwaysApply: false
|
5
|
+
---
|
6
|
+
# FastAPI 프로젝트 규칙
|
7
|
+
|
8
|
+
## 1. 개발 환경
|
9
|
+
- Python 3.13 사용
|
10
|
+
- 패키지 관리 도구로 `uv` 사용
|
11
|
+
- `pyproject.toml`을 통한 의존성 관리
|
12
|
+
- `uv.lock` 파일을 통한 버전 고정
|
13
|
+
- FastAPI 프레임워크 사용
|
14
|
+
- 내장 Swagger UI 사용 (OpenAPI 문서 자동 생성)
|
15
|
+
|
16
|
+
## 2. 프로젝트 구조
|
17
|
+
```
|
18
|
+
project/
|
19
|
+
├── app/
|
20
|
+
│ ├── __init__.py
|
21
|
+
│ ├── main.py
|
22
|
+
│ ├── api/
|
23
|
+
│ │ ├── __init__.py
|
24
|
+
│ │ └── v1/
|
25
|
+
│ │ ├── __init__.py
|
26
|
+
│ │ └── endpoints/
|
27
|
+
│ ├── core/
|
28
|
+
│ │ ├── __init__.py
|
29
|
+
│ │ ├── config.py
|
30
|
+
│ │ └── security.py
|
31
|
+
│ └── models/
|
32
|
+
│ ├── __init__.py
|
33
|
+
│ └── schemas.py
|
34
|
+
├── tests/
|
35
|
+
├── pyproject.toml
|
36
|
+
├── uv.lock
|
37
|
+
└── README.md
|
38
|
+
```
|
39
|
+
|
40
|
+
## 3. API 개발 규칙
|
41
|
+
- 모든 API 엔드포인트는 `app/api/v1/endpoints/` 디렉토리에 위치
|
42
|
+
- 각 엔드포인트 파일은 단일 리소스에 대한 CRUD 작업을 포함
|
43
|
+
- Pydantic 모델을 사용하여 요청/응답 스키마 정의
|
44
|
+
- OpenAPI 문서를 위한 상세한 docstring 작성
|
45
|
+
|
46
|
+
## 4. 설정 관리
|
47
|
+
- 환경 변수를 통한 설정 관리
|
48
|
+
- `app/core/config.py`에서 모든 설정값 관리
|
49
|
+
- 개발/테스트/운영 환경별 설정 분리
|
50
|
+
|
51
|
+
## 5. 보안
|
52
|
+
- JWT 기반 인증 사용
|
53
|
+
- 비밀번호 해싱
|
54
|
+
- CORS 설정
|
55
|
+
- 요청 속도 제한
|
56
|
+
|
57
|
+
## 6. 테스트
|
58
|
+
- pytest를 사용한 테스트 작성
|
59
|
+
- 각 API 엔드포인트에 대한 테스트 포함
|
60
|
+
- 비동기 테스트 지원
|
61
|
+
|
62
|
+
## 7. 문서화
|
63
|
+
- FastAPI의 자동 문서화 기능 활용
|
64
|
+
- 각 엔드포인트에 대한 상세한 설명 추가
|
65
|
+
- 예시 요청/응답 포함
|
66
|
+
description:
|
67
|
+
globs:
|
68
|
+
alwaysApply: false
|
69
|
+
---
|
@@ -0,0 +1,9 @@
|
|
1
|
+
cursor_boilerplate/__init__.py,sha256=fNOyX5PWOth_NRK0jMtT8zTeiViIztHHz0FylQfqRzQ,22
|
2
|
+
cursor_boilerplate/cli.py,sha256=9i1IEZcaIpFr3tFX3lereiYMjW2F2J7N4CyJcjMNjg8,1506
|
3
|
+
cursor_boilerplate/.cursor/rules/always.mdc,sha256=0ZifFwIAnp6uN9eKV0kuqwr0uJTKdHRfHA5DG2iwNKM,1740
|
4
|
+
cursor_boilerplate/.cursor/rules/fastapi.mdc,sha256=P0cNEenTXbcS-e45z4SvJMlnfeoEElSSDIkDQq1Z95s,1802
|
5
|
+
cursor_boilerplate-0.7.4.dist-info/METADATA,sha256=R5Iwt9GpPghjrpGBltKzarSal7ho5eaK_kNGE_WenFU,1017
|
6
|
+
cursor_boilerplate-0.7.4.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
7
|
+
cursor_boilerplate-0.7.4.dist-info/entry_points.txt,sha256=gD8ysizP4178GaTgjq9pSphgrTkKaZxOAvMEovAmB7E,67
|
8
|
+
cursor_boilerplate-0.7.4.dist-info/top_level.txt,sha256=y8dzxEXg0CC4ruHYL8vncncXIsOpqUqGV-8kqErgMHU,19
|
9
|
+
cursor_boilerplate-0.7.4.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
cursor_boilerplate/__init__.py,sha256=fNOyX5PWOth_NRK0jMtT8zTeiViIztHHz0FylQfqRzQ,22
|
2
|
-
cursor_boilerplate/cli.py,sha256=9i1IEZcaIpFr3tFX3lereiYMjW2F2J7N4CyJcjMNjg8,1506
|
3
|
-
cursor_boilerplate/.cursor/rules/always.mdc,sha256=-HPxppI_IfKUOwlBD0kqpzaKHczycqEfzcItR3Vkf7c,1735
|
4
|
-
cursor_boilerplate-0.7.3.dist-info/METADATA,sha256=qXuXh1jaJpdiPGoWbNYVYzHAylv1r2AkVfGamYKFrgg,1017
|
5
|
-
cursor_boilerplate-0.7.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
6
|
-
cursor_boilerplate-0.7.3.dist-info/entry_points.txt,sha256=gD8ysizP4178GaTgjq9pSphgrTkKaZxOAvMEovAmB7E,67
|
7
|
-
cursor_boilerplate-0.7.3.dist-info/top_level.txt,sha256=y8dzxEXg0CC4ruHYL8vncncXIsOpqUqGV-8kqErgMHU,19
|
8
|
-
cursor_boilerplate-0.7.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|