Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tiferet-mission

Domain-driven mission planning for autonomous drone operations, powered by MAVLink-compatible workflows and dual-backend persistence.

Overview

tiferet-mission is a Tiferet extension package that provides a complete Domain-Driven Design (DDD) layer for drone mission planning. It models MAVLink-style mission plans as first-class domain objects with lifecycle management, device assignment validation, and dual-backend persistence (SQLite and HDF5).

Installation

# Core (SQLite backend)
pip install tiferet-mission

# With HDF5 support
pip install tiferet-mission[h5]

Quick Start

from tiferet.events import DomainEvent
from tiferet_mission.events import CreateMission, AddMissionItem, ValidateMission
from tiferet_mission.repos.sqlite import MissionSqliteRepository

# Initialize the SQLite repository
mission_service = MissionSqliteRepository(db_path='missions.db')

# Create a mission
mission = DomainEvent.handle(
    CreateMission,
    dependencies={'mission_service': mission_service},
    name='Survey Alpha',
    drone_type='copter',
)

# Add waypoints
for cmd, kwargs in [
    ('NAV_TAKEOFF', {'altitude': 10.0}),
    ('NAV_WAYPOINT', {'latitude': 35.123, 'longitude': -120.456, 'altitude': 50.0}),
    ('NAV_RETURN_TO_LAUNCH', {}),
]:
    DomainEvent.handle(
        AddMissionItem,
        dependencies={'mission_service': mission_service},
        id=mission.id, command=cmd, **kwargs,
    )

# Validate the mission
validated = DomainEvent.handle(
    ValidateMission,
    dependencies={'mission_service': mission_service},
    id=mission.id,
)
print(f'Mission "{validated.name}" status: {validated.status}')  # validated

Architecture

tiferet_mission/
├── assets/           Error code constants
├── domain/           DomainObject subclasses (Mission, MissionItem, DeviceAssignment)
├── events/           DomainEvent subclasses (11 mission lifecycle events)
├── interfaces/       Service contracts (MissionService, DeviceRegistryService)
├── mappers/          Aggregates + SQL TransferObjects + H5 TableObjects/NodeObjects
├── repos/            SQLite repository implementation
└── tests/            Unit + integration tests

Features

Domain Objects

  • Mission — ordered collection of mission items with lifecycle status and device reference
  • MissionItem — MAVLink-compatible command (NAV/DO/CONDITION) with auto-derived metadata
  • DeviceAssignment — audit record linking a device to a mission

Domain Events (11)

  • CRUD: CreateMission, GetMission, ListMissions, DeleteMission
  • Items: AddMissionItem, RemoveMissionItem, ReorderMissionItems
  • Device: AssignDevice (with type validation), UnassignDevice
  • Lifecycle: ValidateMission, UpdateMissionStatus

MAVLink Compatibility

  • 20+ MAV_CMD commands mapped (NAV_WAYPOINT, NAV_TAKEOFF, NAV_LAND, DO_CHANGE_SPEED, etc.)
  • Mission items mirror the MISSION_ITEM_INT message structure
  • Extensible command reference table

Dual-Backend Persistence

  • SQLite — relational storage via MissionSqliteRepository
  • HDF5 — columnar storage via H5 transfer objects (requires [h5] extra)
  • Both implement the same MissionService interface — switching is a config change

Device Type Validation

  • DeviceRegistryService — read-only interface for querying external device registries
  • AssignDevice event validates drone type compatibility before assignment

Dependencies

  • tiferet >= 2.0.0b1 (core framework)
  • tiferet-h5 >= 0.1.0 + tables >= 3.10.0 (optional, for HDF5 backend)

Documentation

License

BSD 3-Clause. See LICENSE.

Metadata

Release files for tiferet-mission 0.1.0a1

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

Source distribution (sdist)

Source distribution for tiferet-mission 0.1.0a1
File Size Uploaded Provenance
tiferet_mission-0.1.0a1.tar.gz 27.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tiferet-mission 0.1.0a1
File Interpreter ABI Platform
tiferet_mission-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 64.6 kB

Release files / tiferet_mission-0.1.0a1.tar.gz

Download URL tiferet_mission-0.1.0a1.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
98deaabb24216900cdf2430998b26ede28f92b4c4778d8437783c5827d76e644
BLAKE2b-256 checksum
How to use checksums
4282551d234727791583ff29288b592b7ac26a92216ed50cdc1023c6fb84da8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Release files / tiferet_mission-0.1.0a1-py3-none-any.whl

Download URL tiferet_mission-0.1.0a1-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
538a5ac4145a3cbc93d0ada2e6fbb72c50e6ed4e012da5fb7431141fa4687057
BLAKE2b-256 checksum
How to use checksums
93527b378afcbc65358c1332b13a3c1764a0448cbef85bbef7d9ccb09d7a4d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Security for tiferet-mission 0.1.0a1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tiferet_mission-0.1.0a1.tar.gz

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 May 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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