taskdog-core
Core business logic and infrastructure for Taskdog task management system.
Overview
This package contains the core components shared by both the Taskdog server and UI:
- Domain Layer: Business entities, domain services, and interfaces
- Application Layer: Use cases, queries, DTOs, and business logic orchestration
- Infrastructure Layer: Persistence implementations, external service integrations
- Controllers: Business logic orchestrators used by presentation layers
Installation
pip install taskdog-core
For development:
pip install -e ".[dev]"
Architecture
Follows Clean Architecture principles:
Domain (entities, services, repositories)
↑
Application (use cases, queries, DTOs)
↑
Infrastructure (SQLite, file storage)
↑
Controllers (orchestration layer)
Key Components
Domain Layer (taskdog_core/domain/):
Task- Core entity with status, priority, deadlines, dependenciesTaskStatus- PENDING, IN_PROGRESS, COMPLETED, CANCELEDTimeTracker- Records actual_start/actual_end timestampsTaskNotFoundException,TaskValidationError- Domain exceptions
Application Layer (taskdog_core/application/):
- Use Cases: CreateTaskUseCase, StartTaskUseCase, OptimizeScheduleUseCase, etc.
- Validators: TaskFieldValidatorRegistry with Status and Dependency validators
- Services: WorkloadAllocator, OptimizationSummaryBuilder, TaskQueryService
- Optimization: 9 scheduling strategies (greedy, balanced, backward, priority_first, earliest_deadline, round_robin, dependency_aware, genetic, monte_carlo)
Infrastructure Layer (taskdog_core/infrastructure/):
SqliteTaskRepository- SQLite persistence with transactional writesSqliteNotesRepository- Database-based notes storageConfigManager- TOML configuration loading
Controllers (taskdog_core/controllers/):
TaskCrudController- Create, update, delete operationsTaskLifecycleController- Start, complete, pause, cancel, reopenTaskRelationshipController- Dependencies and tagsTaskAnalyticsController- Statistics and optimizationQueryController- Read-only operations
Usage Example
from taskdog_core.domain.entities.task import Task, TaskStatus
from taskdog_core.infrastructure.persistence.database.sqlite_task_repository import SqliteTaskRepository
from taskdog_core.controllers.task_crud_controller import TaskCrudController
from taskdog_core.infrastructure.config.config_manager import ConfigManager
# Setup
repository = SqliteTaskRepository("sqlite:///tasks.db")
config = ConfigManager()
# Create controller
crud_controller = TaskCrudController(repository, config)
# Create a task
from taskdog_core.application.dto.task_request import CreateTaskRequest
request = CreateTaskRequest(name="My Task", priority=100)
task = crud_controller.create_task(request)
Dependencies
holidays: Holiday checking for schedulingpython-dateutil: Date/time utilitiessqlalchemy: Database ORM
Related Packages
- taskdog-server: FastAPI REST API server using this package
- taskdog-ui: CLI and TUI interfaces using this package
- taskdog-client: HTTP client library for API access
For detailed architecture documentation, see CLAUDE.md.
Testing
pytest tests/
License
MIT
Release files for taskdog-core 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| taskdog_core-0.28.0.tar.gz | 127.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| taskdog_core-0.28.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 335.4 kB
Release files / taskdog_core-0.28.0.tar.gz
| Download URL | taskdog_core-0.28.0.tar.gz |
|---|---|
| Size | 127.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f76e0c5bc016ac4adba7e478d856fe313a08f50c998505abb6d812c63443f67c
|
|
BLAKE2b-256 checksum How to use checksums |
66f683046c80923924d9e1afc54d9d62941b384170c38436995e6f3d7d845809
|
| 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 logRelease files / taskdog_core-0.28.0-py3-none-any.whl
| Download URL | taskdog_core-0.28.0-py3-none-any.whl |
|---|---|
| Size | 208.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0210b16892c3668eafb30ceb03205662d745fafb8ce346ee5c8252cd06e83691
|
|
BLAKE2b-256 checksum How to use checksums |
c366cb037dd1f3ac8fde251246e358e43468e556791d878de008862502d6c5b2
|
| 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