1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 00:15:10 +01:00

Be more explicit about some dependencies

This commit is contained in:
2025-09-21 21:24:50 +02:00
parent 21306f030e
commit 5f2e2c37fa
3 changed files with 15 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
# Core application # Core application
fastapi[all] fastapi[all]
sqlmodel sqlmodel
sqlalchemy
pydantic
pydantic_settings
alembic alembic
aiosqlite aiosqlite
# Fetch external resources
httpx
# Fetch title etc from links # Fetch title etc from links
beautifulsoup4 beautifulsoup4

View File

@@ -1,9 +1,15 @@
# Core application # Core application
fastapi[all] fastapi[all]
sqlmodel sqlmodel
sqlalchemy
pydantic
pydantic_settings
alembic alembic
aiosqlite aiosqlite
# Fetch external resources
httpx
# Fetch title etc from links # Fetch title etc from links
beautifulsoup4 beautifulsoup4

View File

@@ -1,8 +1,9 @@
"""Bookmark helper functions, like content scrapers, favicon extractor, updater functions.""" """Bookmark helper functions, like content scrapers, favicon extractor, updater functions."""
import logging import logging
from collections.abc import Sequence
from datetime import UTC, datetime from datetime import UTC, datetime
from typing import Annotated, Sequence from typing import Annotated
from urllib.parse import urlparse, urlunparse from urllib.parse import urlparse, urlunparse
import bs4 import bs4
@@ -29,7 +30,7 @@ def get_favicon(html_content: str, root_url: str) -> str:
# TODO: save the preferred image to file and return # TODO: save the preferred image to file and return
async def set_information_from_source(logger, bookmark: Bookmark, request: Request) -> Bookmark: async def set_information_from_source(bookmark: Bookmark, request: Request) -> Bookmark:
"""Request the title by requesting the source url.""" """Request the title by requesting the source url."""
logger.info('Extracting information from url %s', bookmark.url) logger.info('Extracting information from url %s', bookmark.url)
try: try: