scietex.vacuum_gauge_service
scietex.vacuum_gauge_service is a scietex.service worker that monitors one
or more Modbus/TCP vacuum gauges through the Scietex Modbus gateway. Each gauge
is polled through a scietex.hal.vacuum_gauge
driver selected by dotted path, and the per-gauge readings are published to
Valkey. The service accepts monitoring commands and per-gauge control commands
through the framework's task-handler channel.
The worker is a long-running daemon. It seeds its in-memory gauge list from
vacuum_gauge.yml at startup and updates it from the framework's remote-config
channel at runtime.
Python ≥ 3.10 · License: MIT
Configuration
The service reads vacuum_gauge.yml from a vacuum_gauge/ subdirectory of its
config directory. When the file is missing, the service generates a default on
first run:
gateway:
host: 127.0.0.1
port: 502
timeout: 1.0
gauges: []
| Setting | Default | Meaning |
|---|---|---|
gateway.host |
127.0.0.1 |
Modbus gateway TCP host |
gateway.port |
502 |
Modbus gateway TCP port |
gateway.timeout |
1.0 |
Per-transaction timeout, seconds |
gauges |
[] |
Monitored gauge list |
Each gauge entry:
| Field | Default | Meaning |
|---|---|---|
label |
— (required) | Human-readable gauge name |
driver |
— (required) | Dotted path to a scietex.hal.vacuum_gauge gauge class |
unit_id |
1 |
Modbus unit id on the gateway bus |
poll_interval |
1.0 |
Poll period, seconds |
Running
start-vacuum-gauge-service --conf-dir /etc/scietex
--conf-dir defaults to the framework's auto-resolved config directory when
omitted. The service runs in the foreground until it receives SIGINT or
SIGTERM.
Environment variables:
| Variable | Meaning |
|---|---|
SCIETEX_SERVICE_NAME |
Service name |
SCIETEX_LOGGING_LEVEL |
Logging level |
Container image
The Containerfile is a two-stage build on python:3.14-slim-trixie:
- Builder stage installs the released
scietex.vacuum_gauge_servicewheel from PyPI (selected by theVERSIONbuild arg) and its dependencies into/opt/venv, then slims the venv (drops pip/setuptools/wheel, bytecode caches, and the unused per-interpreterglide_sharedextensions). - Runtime stage copies the venv, creates a non-root
appuser(uid 1000), prepares/config, and runsstart-vacuum-gauge-service.
The image installs the published package rather than building from the local
checkout, so the image and the PyPI artifact for a given version are the same
code. The VERSION build arg must name a version that exists on PyPI.
The service reaches gauges over Modbus/TCP through a gateway, so the container needs no serial devices and no privileged ports.
The image sets these defaults:
ENV SCIETEX_CONFIG_DIR=/config \
SCIETEX_SERVICE_NAME=VacuumGaugeService \
SCIETEX_LOGGING_LEVEL=INFO
VOLUME ["/config"]
Build
podman build --build-arg VERSION=0.1.1 -t scietex-vacuum-gauge-service .
build_image.sh builds a multi-arch manifest (linux/amd64,linux/arm64) and
pushes it to registry.buro-nts.ru/scietex-vacuum-gauge-service, tagged with the
version from version.py. It passes that version as the VERSION build arg, so
the image always installs the matching PyPI release. Pass --latest to also
push the latest tag.
Run
podman run --rm \
-v scietex-config:/config \
-e SCIETEX_SERVICE_NAME=VacuumGaugeService \
scietex-vacuum-gauge-service:0.1.1
The gateway address and gauge list come from the API domain plugin, which
publishes them to Valkey; vacuum_gauge.yml under the config volume only seeds
the initial values.
Development
Dependencies are managed with uv; checks and tests run through tox:
uv sync --all-extras
uv run tox
Metadata
Release files for scietex.vacuum-gauge-service 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| scietex_vacuum_gauge_service-0.1.1.tar.gz | 29.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scietex_vacuum_gauge_service-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.7 kB
Release files / scietex_vacuum_gauge_service-0.1.1.tar.gz
| Download URL | scietex_vacuum_gauge_service-0.1.1.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d842de04d988ad4df2cac306c3d666fd8eb0d68387dc9e54c20c4e5ab4843de
|
|
BLAKE2b-256 checksum How to use checksums |
671d282c56c98f95ebacd2d0e14d8c3a3c78c22dc00eb7d0f264719fafc90272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / scietex_vacuum_gauge_service-0.1.1-py3-none-any.whl
| Download URL | scietex_vacuum_gauge_service-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c0f1a9c1eb82a7ccee6db34387efb60cb10506a23040d441cf3ff7fa467a11d
|
|
BLAKE2b-256 checksum How to use checksums |
313510a19b05aca37b23eb2bbca17005c2fcd314342e28e4d4a22dffa69475ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logSecurity for scietex.vacuum-gauge-service 0.1.1
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.
Attestation for scietex_vacuum_gauge_service-0.1.1.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 Oct 21, 2026.
Transparency logA 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.