본문 바로가기

Victoree's Blog

검색하기
Victoree's Blog
프로필사진 victoree

  • 분류 전체보기 (99)
    • Python (17)
      • 3rd-Party (3)
      • Fast API (6)
      • Fluent Python (7)
    • Infra (12)
      • Docker (10)
      • Kubernetes (2)
    • Blockchain (10)
    • Rust (10)
    • Pattern (6)
      • Clean code (2)
      • GURU (4)
    • Dev Circles (7)
      • Ausg (4)
      • Depromeet (2)
      • Flutter (1)
    • Algorithm (33)
      • 2019~2020 (27)
      • 2021 (6)
    • Hobby (3)
      • 독서 (1)
Guestbook
250x250
Notice
Recent Posts
Recent Comments
Link
  • 이전 블로그
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • dockerfile
  • AWS
  • 파이썬
  • BlockChain
  • 알고리즘
  • Fast API
  • Ethereum
  • Python
  • RabbitMQ
  • 러스트
  • guru
  • 동시성
  • 이더리움
  • fluent python
  • docker
  • BAEKJOON
  • IMAGE
  • 블록체인
  • function
  • Thread
  • 플랫폼
  • Algorithm
  • Container
  • 전문가를 위한 파이썬
  • 백준
  • rust
  • Refactoring
  • Kubernetes
  • Network
  • 코어 이더리움 프로그래밍
more
Archives
Today
Total
관리 메뉴
글쓰기 방명록 관리

목록pydantic (1)

Victoree's Blog

[4] Pydantic Model

1.Model Dict 1) wrapping/unwrapping @app.post("/user/", response_model=UserOut) async def create_user(user_in: UserIn): user_saved = fake_save_user(user_in) return user_saved user_in 객체는 Pydantic models 임 Pydantic models은 .dict()라는 함수가 있으며, model data를 dict로 리턴함 user_dict = user_in.dict() { 'username': 'john', 'password': 'secret', 'email': 'john.doe@example.com', 'full_name': None, } dict를 unwr..

Python/Fast API 2021. 7. 22. 13:58
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바