Skip to content

Add an API to instantiate an instrument without configuration file #28

@gupichon

Description

@gupichon

Description:
Currently, an instrument can only be created from a YAML configuration file.
It should also be possible to instantiate an instrument programmatically using a direct API call.

Example use case:
Developers may want to:

  • Build instruments dynamically (e.g., from in-memory definitions or database records)
  • Use PyAML in scripts or tests without maintaining a YAML file on disk

Expected feature:
Provide a Python API such as:

from pyaml import Instrument

instr = Instrument.from_dict({
    "name": "ring",
    "devices": [...],
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions