Skip to main content

taskdog-client

HTTP API client library for Taskdog server.

Overview

This package provides a type-safe HTTP client for communicating with the Taskdog API server. It handles authentication, error mapping, and response conversion to domain DTOs.

Use cases:

  • Building custom CLI tools
  • Integrating Taskdog with other systems
  • Creating automated workflows
  • Testing API endpoints

Installation

pip install taskdog-client

For development:

pip install -e ".[dev]"

Client Classes

Client Purpose
TaskClient Task CRUD operations (create, update, delete, archive)
LifecycleClient Status changes (start, complete, pause, cancel, reopen)
RelationshipClient Dependencies and tags
QueryClient List tasks, get task details
AnalyticsClient Statistics and Gantt data
NotesClient Task notes (markdown)
AuditClient Audit log access
BaseApiClient Base class with common HTTP logic

Usage Example

from taskdog_client import TaskClient, LifecycleClient, QueryClient

# Create clients
base_url = "http://127.0.0.1:8000"
api_key = "your-api-key"  # Optional, for authenticated servers

task_client = TaskClient(base_url, api_key)
lifecycle_client = LifecycleClient(base_url, api_key)
query_client = QueryClient(base_url, api_key)

# Create a task
task = task_client.create_task(
    name="My Task",
    priority=100,
    estimated_duration=8.0,
    tags=["backend"]
)
print(f"Created task: {task.id}")

# List tasks
tasks = query_client.list_tasks(status="pending")
for t in tasks:
    print(f"- {t.name} (ID: {t.id})")

# Start a task
lifecycle_client.start_task(task.id)

# Complete a task
lifecycle_client.complete_task(task.id)

Error Handling

Clients raise exceptions from taskdog_core.domain.exceptions:

from taskdog_core.domain.exceptions import TaskNotFoundException, TaskValidationError

try:
    task_client.get_task(999)
except TaskNotFoundException:
    print("Task not found")
except TaskValidationError as e:
    print(f"Validation error: {e}")

Configuration

Clients accept optional configuration:

from taskdog_client import TaskClient

# Basic usage (no auth)
client = TaskClient("http://127.0.0.1:8000")

# With API key authentication
client = TaskClient(
    base_url="http://127.0.0.1:8000",
    api_key="your-secret-key"
)

# Custom timeout (in seconds)
client = TaskClient(
    base_url="http://127.0.0.1:8000",
    timeout=30.0
)

Dependencies

  • taskdog-core: Domain DTOs and exceptions
  • httpx: HTTP client library

Related Packages

Testing

pytest tests/

License

MIT

Release files for taskdog-client 0.28.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taskdog-client 0.28.0
File Size Uploaded
taskdog_client-0.28.0.tar.gz 36.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taskdog-client 0.28.0
File Interpreter ABI Platform
taskdog_client-0.28.0-py3-none-any.whl Python 3 none any Details

Total release size: 68.4 kB

Release files / taskdog_client-0.28.0.tar.gz

Download URL taskdog_client-0.28.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b719cffa493667566337bcfd87646d57f394947e08186f44358f6808b5661275
BLAKE2b-256 checksum
How to use checksums
39db89cba48c92a8cd1d9131d773233ec872cd93c036796867b4e950cf92d1e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release files / taskdog_client-0.28.0-py3-none-any.whl

Download URL taskdog_client-0.28.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57380fe69ebf936c016e73f70470b7c6f048a7da4f4587d9a6548bb51aba4369
BLAKE2b-256 checksum
How to use checksums
ace1b0b8f95a0bc24c02f6ee007b45356f4e7a334611dc058d1523092255336b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.28.0 This release

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.20.0

2 release files

0.18.6

2 release files

0.18.4

2 release files

0.18.3

2 release files

0.18.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page