Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.34 KB

README.md

File metadata and controls

41 lines (35 loc) · 1.34 KB

FastAPI Worker Service

Powered by RDKit

Development

  • The build system is uv.

Run Dev

uv run fastapi dev

http://localhost:8000/

Test

uv run pytest

Add a dev dependency:

uv add --dev httpx2

CI/CD

Export requirements if project.toml or uv.lock changes

uv export --format requirements-txt --no-dev --no-emit-project --output-file requirements.txt

Manually build the image:

docker build -t worker .
# run the container based on the image
docker run -d --name fastapi-worker -p 80:80 worker
uv lock --check
uv run ruff check .
uv run ruff format --check .
uv run pytest