현재까지 발견된 이 책의 오탈자 정보와 오류를 안내합니다. 집필/번역/편집 시에 미처 확인하지 못하고 불편을 끼쳐드려 죄송하다는 말씀을 드립니다. 아래의 오탈자 사항은 추후 재쇄 시에 반영하겠습니다.
이 밖의 오탈자 정보를 발견하시면 출판사(help@jpub.kr)로 연락해주시면 고맙겠습니다.
최종 수정일: 2025년 3월 05일 1쇄본 오탈자 |
7~8쪽 poetry init 명령 관련 코드를 다음으로 전체 수정:
$ mkdir fastapi-ca
$ cd fastapi-ca
$ poetry init
This command will guide you through creating your pyproject.toml config.
Package name [fastapi-ca-poetry]:
Version [0.1.0]:
Description []:
Author [dextto <dexter.haan@gmail.com>, n to skip]:
License []:
Compatible Python versions [>=3.11]:
Would you like to define your main dependencies interactively? (yes/no) [yes]
You can specify a package in the following forms:
- A single name (requests): this will search for matches on PyPI
- A name and a constraint (requests@^2.23.0)
- A git url (git+https://github.com/python-poetry/poetry.git)
- A git url with a revision (git+https://github.com/python-poetry/poetry.git#develop)
- A file path (../my-package/my-package.whl)
- A directory (../my-package/)
- A url (<https://example.com/packages/my-package-0.1.0.tar.gz>)
Package to add or search for (leave blank to skip):
Would you like to define your development dependencies interactively? (yes/no) [yes]
Package to add or search for (leave blank to skip):
Generated file
[project]
name = "fastapi-ca-poetry"
version = "0.1.0"
description = ""
authors = [
{name = "dextto",email = "dexter.haan@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
Do you confirm generation? (yes/no) [yes]
$
8쪽 마지막 행:
poetry shell 명령어를 입력한다. -> poetry env activate 명령어를 입력하면 가상 환경을 실행할 수 있는 명령어가 출력된다. 이 명령어를 복사해서 다시 입력하면 가상 환경이 구동된다.
8쪽 각주 전체 교체:
윈도우의 경우 보안 정책 때문에 파워셸을 관리자 모드로 실행한 후, 프롬프트에 먼저 Set-ExecutionPolicy Unrestricted를 입력해야 정상적으로 구동된다.
->
poetry 1.x에서는 poetry shell 명령어를 사용했다. 이 명령어를 그대로 사용하고 싶다면 먼저 poetry self add poetry-plugin-shell 명령어로 포어트리 플러그인을 설치하면 된다.
9쪽 첫 번째 터미널 전체 교체 및 내용 추가:
$ poetry env activate
Creating virtualenv fastapi-ca-6_xzty7g-py3.11 in /Users/dexter/Library/Caches/pypoetry/virtualenvs
source /Users/dexter/Library/Caches/pypoetry/virtualenvs/fastapi-ca-6_xzty7g-py3.11/bin/activate
$ source /Users/dexter/Library/Caches/pypoetry/virtualenvs/fastapi-ca-6_xzty7g-py3.11/bin/activate
(fastapi-ca-py3.11) $
이 과정이 번거롭다면 다음 eval 명령어와 조합하여 수행할 수 있다.
$ eval $(poetry env activate)
윈도우 파워셸에서는 Invoke-Expression 명령어를 사용한다.
PS1> Invoke-Expression (poetry env activate)
28쪽 아래서 2행:
잘 굴러가는 데 -> 잘 굴러가는데
49쪽 코드 3.13(남궁 O 님 제보):
@router.post("")
->
@router.post("", status_code=201)
62쪽 코드 3.23(김정O 님 제보):
with SessionLocal() as db:
db = SessionLocal() ❸
db.add(new_user) ❹
db.commit() ❺
->
with SessionLocal() as db: ❸
db.add(new_user) ❹
db.commit() ❺
63쪽 3번 설명:
앞서 만든 SessionLocal을 이용해 새로운 세션을 생성한다. -> SessionLocal 객체를 생성한다. with 구문을 이용하여 세션이 자동으로 닫히도록 하였다.
62쪽 코드 3.24:
try:
db = SessionLocal()
db.add(new_user)
->
try:
db.add(new_user)
63쪽 마지막 코드 바로 위 1행:
3.2.2절 참고 -> 3.3.3절 참고
82쪽 코드 13행(kimdogyun 님 제보):
password=crypto.encrypt("test"), -> password=Crypto().encrypt("test"),
92쪽 첫 번째 코드 아래 1행:
추가됐고 -> 추가됐다고
107쪽 마지막 행:
JSON 웹 토큰(JSON Web Token, JWT)는 -> JSON 웹 토큰(JSON Web Token, JWT)은
125쪽 두 번째 문단 1행(Jeong Hyunseok 님 제보):
실행할 수고, -> 실행할 수도 있고,
138쪽 2번 2행:
배열일때는 -> 배열일 때는
159쪽 4번 1행(Jeong Hyunseok 님 제보):
두 번째 터는 -> 두 번째부터는
'오탈자 정보' 카테고리의 다른 글
[기초부터 배우는 최신 스토리지 입문] 오탈자 (0) | 2024.12.18 |
---|---|
[전혀 다른 생성형 AI] 오탈자 (0) | 2024.11.06 |
[리얼월드 암호학] 오탈자 (0) | 2024.10.24 |
[헬로 Bun] 오탈자 (0) | 2024.10.17 |
[러스트 프로페셔널 코드] 오탈자 (0) | 2024.09.19 |