Skip to main content

FastAPI server for Taskdog task management system

Project description

taskdog-server

FastAPI server for Taskdog task management system.

Overview

This package provides a REST API for all Taskdog functionality including:

  • Task CRUD operations
  • Task lifecycle management (start, complete, pause, cancel, reopen)
  • Task relationships (dependencies, tags)
  • Time tracking and logging
  • Schedule optimization
  • Statistics and analytics
  • WebSocket real-time updates

Installation

pip install taskdog-server

For development:

pip install -e ".[dev]"

Usage

Start the server:

taskdog-server

With custom options:

taskdog-server --host 0.0.0.0 --port 3000

Development mode with auto-reload:

taskdog-server --reload

API Documentation

Once the server is running, visit:

For complete API reference, see docs/API.md.

Authentication

Configure API key authentication in ~/.config/taskdog/server.toml:

[auth]
enabled = true

[[auth.api_keys]]
name = "my-client"
key = "your-secret-key"

Clients authenticate via X-Api-Key header:

curl -H "X-Api-Key: your-secret-key" http://localhost:8000/api/v1/tasks/

See Authentication Documentation for details.

WebSocket Real-time Updates

Connect to /ws for real-time task notifications:

const ws = new WebSocket('ws://localhost:8000/ws?token=your-api-key');

ws.onmessage = (event) => {
  const data = JSON.parse(event.data);
  console.log('Event:', data.type);  // task_created, task_updated, etc.
};

Event types:

  • task_created - New task created
  • task_updated - Task fields updated
  • task_deleted - Task deleted
  • task_status_changed - Task status changed
  • schedule_optimized - Schedule optimization completed

Note: WebSocket uses an in-memory connection manager, so the server always runs as a single process.

Configuration

Server configuration: ~/.config/taskdog/server.toml

[auth]
enabled = true

[[auth.api_keys]]
name = "my-client"
key = "your-secret-key"

[audit]
enabled = false

Core configuration: ~/.config/taskdog/core.toml

[region]
country = "JP"

See Configuration Guide for all options.

Architecture

The server uses:

  • FastAPI: Modern, fast web framework
  • Pydantic: Data validation with type hints
  • uvicorn: ASGI server
  • taskdog-core: Core business logic and infrastructure

API Routers

  • tasks.py - Task CRUD operations
  • lifecycle.py - Task status changes
  • relationships.py - Dependencies and tags
  • analytics.py - Statistics and reporting
  • notes.py - Markdown notes
  • websocket.py - Real-time updates

Dependency Injection

Controllers are injected via FastAPI dependencies:

CrudControllerDep = Annotated[TaskCrudController, Depends(get_crud_controller)]

Related Packages

Testing

pytest tests/

Deployment

Systemd (Linux)

systemctl --user start taskdog-server
systemctl --user enable taskdog-server

Docker

docker pull ghcr.io/kohei-wada/taskdog-server:main
docker run -d -p 8000:8000 -v taskdog-data:/data ghcr.io/kohei-wada/taskdog-server:main

See contrib/README.md for deployment details.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskdog_server-0.18.1.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taskdog_server-0.18.1-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file taskdog_server-0.18.1.tar.gz.

File metadata

  • Download URL: taskdog_server-0.18.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for taskdog_server-0.18.1.tar.gz
Algorithm Hash digest
SHA256 c4ec6693d9616a8510f1eed0720af2dfda72d09053f737ab0f990c783571d843
MD5 8df08dff673b3538430f9bd351047f4f
BLAKE2b-256 b68196378e2607559b7009051e0b008332cf83e9e11df1294c22b0786d0393e7

See more details on using hashes here.

File details

Details for the file taskdog_server-0.18.1-py3-none-any.whl.

File metadata

  • Download URL: taskdog_server-0.18.1-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for taskdog_server-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 739f5954e4df904370c0cb9963f039a272d2f78ce67626b1c2661cd80d15c417
MD5 7abc8f8a976e8d0cbb2a0cfcf4b22edb
BLAKE2b-256 7482cb3f08d4f7fc8e6f2cd837332f608d7c3d2e1e31f6480f90f08ed0d8ab2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page