Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,7 @@ dmypy.json

.idea/
recipe_client
example.db
example.db

# Pipenv
Pipfile
407 changes: 188 additions & 219 deletions assignments/add-put-and-delete-endpoints/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assignments/add-put-and-delete-endpoints/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["ChristopherGS"]

[tool.poetry.dependencies]
python = "^3.8"
uvicorn = "~0.11.3"
fastapi = "~0.68.0"
uvicorn = "~0.29.0"
fastapi = "~0.110.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = "~1.8.1"}
pydantic = {extras = ["email"], version = "~1.10.0"}
388 changes: 182 additions & 206 deletions part-06-jinja-templates/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion part-06-jinja-templates/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ uvicorn = {extras=["standard"], version="~0.23.0"}
fastapi = "^0.104.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = ">=2.0"}
Jinja2 = "~3.0.3"
Jinja2 = "~3.1.3"
396 changes: 186 additions & 210 deletions part-06b-basic-deploy-linode/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion part-06b-basic-deploy-linode/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ uvicorn = {extras=["standard"], version="~0.23.0"}
fastapi = "^0.104.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = ">=2.0"}
Jinja2 = "^3.0.1"
Jinja2 = "^3.1.3"
gunicorn = "^20.1.0"
7 changes: 5 additions & 2 deletions part-07-database/app/backend_pre_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
def init() -> None:
try:
db = SessionLocal()
# Try to create session to check if DB is awake
db.execute("SELECT 1")
is_awake = db.is_active
if is_awake:
print("Session is awake")
else:
print("Session not awake")
except Exception as e:
logger.error(e)
raise e
Expand Down
931 changes: 474 additions & 457 deletions part-07-database/poetry.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions part-07-database/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ authors = ["ChristopherGS"]

[tool.poetry.dependencies]
python = "^3.8"
uvicorn = "~0.11.3"
fastapi = "~0.68.0"
uvicorn = "~0.29.0"
fastapi = "~0.110.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = "~1.8.1"}
Jinja2 = "^3.0.1"
pydantic = {extras = ["email"], version = "~1.10.0"}
Jinja2 = "^3.1.3"
SQLAlchemy = "^1.4.22"
alembic = "^1.6.5"
tenacity = "^8.0.1"
greenlet = "^1.1.2"
setuptools = "^69.2.0"
7 changes: 5 additions & 2 deletions part-08-structure-and-versioning/app/backend_pre_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
def init() -> None:
try:
db = SessionLocal()
# Try to create session to check if DB is awake
db.execute("SELECT 1")
is_awake = db.is_active
if is_awake:
print("Session is awake")
else:
print("Session not awake")
except Exception as e:
logger.error(e)
raise e
Expand Down
931 changes: 474 additions & 457 deletions part-08-structure-and-versioning/poetry.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions part-08-structure-and-versioning/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ authors = ["ChristopherGS"]

[tool.poetry.dependencies]
python = "^3.8"
uvicorn = "~0.11.3"
fastapi = "~0.68.0"
uvicorn = "~0.29.0"
fastapi = "~0.110.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = "~1.8.1"}
Jinja2 = "^3.0.1"
pydantic = {extras = ["email"], version = "~1.10.0"}
Jinja2 = "^3.1.3"
SQLAlchemy = "^1.4.22"
alembic = "^1.6.5"
tenacity = "^8.0.1"
greenlet = "^1.1.2"
setuptools = "^69.2.0"
7 changes: 5 additions & 2 deletions part-09-async/app/backend_pre_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
def init() -> None:
try:
db = SessionLocal()
# Try to create session to check if DB is awake
db.execute("SELECT 1")
is_awake = db.is_active
if is_awake:
print("Session is awake")
else:
print("Session not awake")
except Exception as e:
logger.error(e)
raise e
Expand Down
940 changes: 483 additions & 457 deletions part-09-async/poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions part-09-async/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ authors = ["ChristopherGS"]

[tool.poetry.dependencies]
python = "^3.8"
uvicorn = "~0.11.3"
fastapi = "~0.68.0"
uvicorn = "~0.29.0"
fastapi = "~0.110.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = "~1.8.1"}
Jinja2 = "^3.0.1"
pydantic = {extras = ["email"], version = "~1.10.0"}
Jinja2 = "^3.1.3"
SQLAlchemy = "^1.4.3"
alembic = "^1.6.5"
tenacity = "^8.0.1"
Expand Down
7 changes: 5 additions & 2 deletions part-10-jwt-auth/app/backend_pre_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
def init() -> None:
try:
db = SessionLocal()
# Try to create session to check if DB is awake
db.execute("SELECT 1")
is_awake = db.is_active
if is_awake:
print("Session is awake")
else:
print("Session not awake")
except Exception as e:
logger.error(e)
raise e
Expand Down
1,233 changes: 604 additions & 629 deletions part-10-jwt-auth/poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions part-10-jwt-auth/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ authors = ["ChristopherGS"]

[tool.poetry.dependencies]
python = "^3.8"
uvicorn = "~0.11.3"
fastapi = "~0.68.0"
uvicorn = "~0.29.0"
fastapi = "~0.110.0"
python-multipart = "~0.0.5"
pydantic = {extras = ["email"], version = "~1.8.1"}
pydantic = {extras = ["email"], version = "~1.10.0"}
Jinja2 = "~3.0.1"
SQLAlchemy = "~1.4.3"
alembic = "~1.6.5"
tenacity = "~8.0.1"
httpx = "~0.18.1"
passlib = {extras = ["bcrypt"], version = "^1.7.2"}
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
cffi = "^1.15.0"
cffi = "^1.15.0"
7 changes: 5 additions & 2 deletions part-11-dependency-injection/app/backend_pre_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
def init() -> None:
try:
db = SessionLocal()
# Try to create session to check if DB is awake
db.execute("SELECT 1")
is_awake = db.is_active
if is_awake:
print("Session is awake")
else:
print("Session not awake")
except Exception as e:
logger.error(e)
raise e
Expand Down
Loading