Skip to content

Example 1 — hello-world: pure-soft @attr decorator device #398

Description

@coretl

Part of the 5-example tutorial sequence (#388). Step 1: the simplest possible controller — a pure-soft "hello world" using the @attr decorator (the PyTango one-decorated-getter feel). No hardware backend, so it runs with zero external processes — the honest first rung.

Scope

  • Add src/fastcs/demo/hello_world.py: a tiny controller with one or two soft attributes via @attr/@attr_rw (no real IO — soft values), e.g. a greeting/counter. The point is to show the decorator spelling at its simplest.
  • Unit tests.

Acceptance

uv run --locked tox -e pre-commit,type-checking,tests green.

ADR: 0018
Parent: #388
Blocked by: #397

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions