[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pythaiidcard"
version = "0.3.0"
description = "Python library for reading Thai national ID cards using smartcard readers"
authors = [
    {name = "Ninyawee", email = "ninyawee@users.noreply.github.com"}
]
license = {text = "ISC"}
readme = "README.md"
requires-python = ">=3.13"
keywords = ["thai", "id-card", "smartcard", "pcsc", "national-id", "thailand", "citizen-id"]
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: ISC License (ISCL)",
    "Operating System :: POSIX :: Linux",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: System :: Hardware",
    "Topic :: Security",
]
dependencies = [
    "pillow>=11.3.0",
    "pyscard>=2.3.0",
    "pydantic>=2.0",
    "typer[all]>=0.9.0",
    "python-dateutil>=2.8.2",
]

[project.urls]
Homepage = "https://github.com/ninyawee/pythaiidcard"
Documentation = "https://github.com/ninyawee/pythaiidcard#readme"
Repository = "https://github.com/ninyawee/pythaiidcard"
"Issue Tracker" = "https://github.com/ninyawee/pythaiidcard/issues"

[project.scripts]
pythaiidcard = "pythaiidcard.cli:app"
pythaiidcard-desktop = "desktop_client.main:main"
pythaiidcard-server = "api_server.main:start_server"

[dependency-groups]
dev = [
    "ruff>=0.8.4",
    "streamlit>=1.28.0",
]
docs = [
    "mkdocs-material>=9.5.0",
    "mkdocstrings[python]>=0.24.0",
]
desktop = [
    "fastapi>=0.115.0",
    "uvicorn[standard]>=0.32.0",
    "PySide6>=6.8.0",
    "websockets>=13.0",
]
