Skip to main content

Fieldbench Python SDK (fieldbench)

Zero-dependency, fully typed Python 3.10+ SDK for the Fieldbench bus engineering platform.

Install

pip install ./sdk/python

No third-party runtime dependencies are installed — everything runs on the Python standard library (subprocess, urllib.request, dataclasses, json).

Quick Start

Authoring an STL Assertion Suite

from fieldbench import FieldbenchCli, StlBuilder

suite = (
    StlBuilder("EV-600 Thermal & Brake Compliance", description="HIL gate")
    .always("BMS_PackStatus.PackTemp <= 60.0", name="Pack Thermal Ceiling", unit="°C", severity="critical")
    .latency("Chassis_Pedals.BrakePedal > 0.2", "Chassis_Lights.BrakeLight == 1", within_ms=50, name="Brake Light Latency")
    .cycle_jitter_below(0x100, 2, name="VCU Cycle Jitter")
    .alive_counter(0x100, "AliveCounter", name="VCU Alive Counter")
)
suite.write("ev600_safety.fbt")

cli = FieldbenchCli()
report = cli.assert_run("capture.blf", "ev600_safety.fbt", schema_path="ev600.dbc", junit_out="junit.xml")
assert report.all_passed, [v.name for v in report.verdicts if not v.passed]

Connecting to a Fieldbench Team Hub

from fieldbench import FieldbenchHubClient

hub = FieldbenchHubClient("http://127.0.0.1:8080")
hub.login("hil-ci@example.com", "secret")
proj = hub.create_project("EV-600 HIL")
report = hub.run_assert(proj["id"], trace_id="tr_01", suite_fbt=suite.to_fbt())

Running Tests

python3 -m unittest discover -s sdk/python/tests -v

Metadata

Release files for fieldbench-sdk 0.2.1

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

Source distribution (sdist)

Source distribution for fieldbench-sdk 0.2.1
File Size Uploaded Provenance Actions
fieldbench_sdk-0.2.1.tar.gz 22.5 kB Without provenance Details for fieldbench_sdk-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fieldbench-sdk 0.2.1
File Interpreter ABI Platform Actions
fieldbench_sdk-0.2.1-py3-none-any.whl Python 3 none any Details for fieldbench_sdk-0.2.1-py3-none-any.whl

Total release size: 38.1 kB

Release files / fieldbench_sdk-0.2.1.tar.gz

Download URL fieldbench_sdk-0.2.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
74d51f3c1bbea260e89acc2db1f39676ed7c4ebc5f7272e2534265d93a5e11b9
BLAKE2b-256 checksum
How to use checksums
6356439f4c73dac269d06ff1acfb5de16423c208cb5fb0ab1ce9453882225bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"45","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fieldbench_sdk-0.2.1-py3-none-any.whl

Download URL fieldbench_sdk-0.2.1-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d00aa4f4248f8ec64daa9f6710e083a1517557eb237da53cd5c21ed7181e207
BLAKE2b-256 checksum
How to use checksums
5d1ccf38687f1794f8af58aeea16bd78a79a69ce875309b51ea6cb6e5afc15d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"45","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for fieldbench-sdk 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.2.1 This release

2 release files No provenance

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