Skip to main content

tokamunch-pyuda-datasource

Logo

Python data source plugin for tokamunch. Fetches data from a UDA server via pyuda.

Available on PyPI.


Installation

pip install tokamunch
pip install tokamunch-pyuda-datasource

Configuration

Register the plugin in your munchi.toml and supply the connection args. The table key is the data-source name used in your libtokamap mapping files.

[data_sources.UDA]
plugin = "tokamunch_pyuda_datasource"
enabled = true

args.host = "localhost"
args.port = 56565
args.plugin_name = "UDA"
Arg Type Description
host string UDA server hostname or IP (required)
port int UDA server port (required)
plugin_name string UDA plugin name, e.g. "UDA" or "GEOMETRY" (required)
function string UDA plugin function, defaults to "get"

Any other key in args becomes a default for the per-call UDA query args, which an individual mapping can override.


Mapping example

Per-call arguments come from the mapping's ARGS block, plus the runtime attributes tokamunch passes to Mapper.map (notably shot):

"ip/data": {
    "MAP_TYPE": "DATA_SOURCE",
    "DATA_SOURCE": "UDA",
    "ARGS": {
        "signal": "AMC_PLASMA CURRENT"
    }
}
Arg Description
signal UDA signal name (required)
source Shot/pulse number; defaults to the runtime shot
host / port Default to the config values; override per mapping if needed
time If truthy, returns the time dimension instead of the data
error If truthy, returns the error dimension instead of the data

Any additional key/value pairs are passed through as UDA query parameters.


Args: config vs per-call

  • Config args (host, port, plugin_name, function) are set once when the plugin is constructed from munchi.toml.
  • Per-call args (signal, source, and any extra UDA query parameters) are supplied per mapping call by the tokamunch mapping engine.

host and port are forwarded into every UDA query from the plugin config, so mapping files no longer need to repeat them in their ARGS blocks. source falls back to the runtime shot when the mapping does not set it. Both remain overridable per mapping.


Notes on thread safety

This plugin is not thread-safe. pyuda.Client stores server and port as class-level attributes, so concurrent threads sharing a process will interfere with each other. The plugin re-applies its own server/port under a lock before each request — which keeps several data sources (e.g. UDA and GEOMETRY on different ports) correct within one process — but pyuda itself offers no thread-safety guarantee. Use run.concurrency.mode = "process" if you need parallel requests.

Property Value
Thread-safe No
Process-safe Yes
Reentrant No
Deterministic No
Cacheable No
Requires network Yes

Release files for tokamunch-pyuda-datasource 0.2.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 tokamunch-pyuda-datasource 0.2.0
File Size Uploaded
tokamunch_pyuda_datasource-0.2.0.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tokamunch-pyuda-datasource 0.2.0
File Interpreter ABI Platform
tokamunch_pyuda_datasource-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / tokamunch_pyuda_datasource-0.2.0.tar.gz

Download URL tokamunch_pyuda_datasource-0.2.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
2ccef41910de36d0fe52b5fa07d268c669d3ed3e0f9b7bc3ae3f400efb9cfa6f
BLAKE2b-256 checksum
How to use checksums
604a55d73629d09b1d39a56bbd9c00181636188786a00527c0397cc2104b1ea7
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 Aug 21, 2026.

Transparency log

Release files / tokamunch_pyuda_datasource-0.2.0-py3-none-any.whl

Download URL tokamunch_pyuda_datasource-0.2.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9c5248aa06b6a6b7cb7bb0f0f5a229185edf2e6034ef3d6b5df53f7888c25dc
BLAKE2b-256 checksum
How to use checksums
9b123beeaee227a49cb30d54f3671b18c18e35af3406b9acb99bd2f4cf087ddb
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 Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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