Skip to main content

pyflightstream

ci PyPI DOI

Version-aware, didactic Python driver for the FlightStream panel-method solver. Successor of the author's legacy research scripts. MIT licensed.

Status: v0.5.0 is the current release, published to PyPI and archived on Zenodo (DOI recorded in CITATION.cff). CHANGELOG.md carries the release history. That release completed the command database: every command the four registered manual editions document is in it, with a version row per edition.

pip install pyflightstream

A first taste, no solver required (build time is where errors surface):

from pyflightstream.commands import CommandNotInVersionError
from pyflightstream.script import Script

script = Script(version="26.120")  # the FlightStream version is explicit input
script.emit("NEW_SIMULATION")
script.emit("IMPORT", "METER", "STL", "wing.stl", clear=True)
script.emit("SOLVER_SET_AOA", 4.0)
script.emit("START_SOLVER")
print(script.render())  # validated ASCII script, ready for the solver

try:
    Script(version="26.0").emit("SOLVER_SET_AOA", 4.0)
except CommandNotInVersionError as error:
    print(error)  # refused: no recorded evidence for that version

The worked examples in examples/ take it from here to executed polars, campaign matrices, a static wing deflection, and a Campbell diagram. No example runs the coupled loop: it needs a licensed solver in the loop, and the rotary case is solver-blocked (reports/RPT-007). The capability status below says what the FSI subpackage does and does not claim.

Optional extras: [fsi] (aeroelastic coupling, PyNiteFEA), [geom] (probe-survey geometry gating, trimesh/rtree/scipy), [plot] (matplotlib for the plotting examples), and [manual] (pypdf), which is maintainer tooling rather than a user feature: it backs pyfs-manual and nothing in a run imports it.

Why this package

FlightStream is scripted through an ASCII command file, and the solver is under active development: the FlightStream team is responsive to user requests and works with intermediate hotfix builds that consolidate into stable releases. A fast-moving solver naturally means a scripting command set that evolves from version to version, faster than any single document can track. This package makes the FlightStream version an explicit input: every command it emits is validated against a per-version command database, and old versions are only ever added, never dropped, so campaigns stay reproducible across that evolution.

Every database entry carries exactly one piece of evidence: the manual page that documents the command, or, for the few the solver accepts and no manual edition describes, a committed probe report measuring that it does. Its status per version (documented, verified, broken) can only be promoted by citing a committed probe report from a licensed machine. Nothing is guessed; the honest gaps are reported as such.

What ships

  • Command database with per-version evidence and a manual or probe-report citation on every entry, browsable offline via pyflightstream.help() (including a manual-coverage section) and as a generated docs site; the compatibility matrix carries the live counts.
  • Validating script builder with curated helpers: phase ordering, didactic refusals at build time, entity labels (recipes can name frames, actuators, motions, and boundaries instead of raw indices), and a solver-setup provenance snapshot recording the effective value of every solver flag per run. A command a probe measured broken in the target version is refused too, because that one produces a complete run with wrong numbers rather than no run at all; the waiver that emits it anyway records the report and the reason in the manifest.
  • Campaign workspace: an input-artifact library (references, solver presets, boundary groups, geometries, profiles, executables by build id), a run manifest as the single identity authority, output naming templates, campaign pre-flight with zero solver time, and resumable incremental sweeps.
  • Runner and parsers: headless execution, anchor-based parsers for the solver outputs, and a pandas table layer (per-result tables, one wide row per run, whole-sweep DataFrame straight from the manifest).
  • Run-matrix support as a first-class interface: read, convert, pre-flight, and run the pipe-delimited 15-column matrix format.
  • Far-field probe surveys (planar grids, geometry gating, VTK/Tecplot writers, conservation ledgers on xarray) and an aeroelastic coupling subpackage (structural beam, coupled driver, replay harness).
  • Architecture overview from the live module docstrings via pyflightstream.overview().
  • Predictable surfaces: a declared-options registry (pyflightstream.options), one public exception catalog (pyflightstream.exceptions), test assertions with quantified reports (pyflightstream.testing), and the house conventions rendered by help().

Capability status

Not every subpackage carries the same weight of evidence, and until 2026-08-03 nothing said so: an independent review found the feature list above reading as one uniform claim, with the aeroelastic boundary stated only inside the code. The author's decision of 2026-08-03 is that the FSI and probe-survey paths are experimental behind an explicit boundary rather than release-supported, and this table is that boundary.

Capability Status Evidence
Command database, script builder, version refusals supported tier 1 over every registered version; probe reports under reports/
Parsers, tables, run manifest, reconstruction supported tier 1 on committed solver fixtures
Campaigns, run matrices, workspace, pre-flight supported tier 1 end-to-end with a stub solver
Far-field ledgers and probe surveys experimental tier 1 on synthetic fields; the licensed far-field acceptance work is deferred, not done
FSI structural beam and modal analysis experimental tier 1 against analytic beam solutions; examples/wing_static_deflection.py, examples/fsi_campbell_diagram.py
FSI coupled driver (the four-phase loop) experimental tier 1 offline replay on archived WP1 fixtures only; never run against a live solver in CI
Rotary two-way coupling not validated reports/RPT-007 states two-way rotor FSI is blocked in this build; docs/srs/roadmap.md records it in the M6 row; no acceptance evidence exists

Experimental means the interface may change without the deprecation window of NFR-20, and that the evidence behind it is narrower than the supported rows: replaying archived fixtures shows the machine runs, not that its physics is right for a case nobody has measured.

Command-line tools

Tool Purpose
pyfs-qa Tier 2 command-validity probes, Tier 3 physics regression and cross-version drift, status promotion from committed reports
pyfs-workspace Initialize the managed campaign workspace tree
pyfs-matrix Convert and pre-flight run matrices
pyfs-manual Compare one FlightStream manual, or every registered edition at once (sweep), against the command database (maintainer tool, needs the [manual] extra; writes only with --write)
pyfs-fsi The structural executable of the aeroelastic coupling loop

Supported FlightStream versions

"Supported" covered four different states, so it is now four named values (pyflightstream.SupportLevel), every one of them derived from the evidence rather than declared:

Version Vendor name Support level What that means here
26.000 26.0 registered Ordered in the registry, no command carries evidence for it, so nothing can be built yet
26.100 26.1 operational The February 2026 build, and the last to reach this level, on 2026-08-08. It was held at verified less by the solver than by the database: the per-edition sweep that day found 40 commands its own manual documents and this database had no row for, so the emitter refused them and the minimal end-to-end workflow could not be built. With those rows written the workflow builds. Probe coverage is still thinner here than on the newer builds, the harness reaching only commands that carry a probe spec; the compatibility matrix carries the live counts
26.101 26.1 operational The May 2026 build. Commands drafted from the manual with page citations, with the first harness promotions on 2026-08-08, which also carried it to the level where the minimal end-to-end workflow builds. It sits at a hotfix index and does NOT inherit from 26.100: the two are separate vendor releases under one name
26.120 26.12 operational Probe evidence from a licensed machine, and the minimal end-to-end workflow builds
26.121 26.12 operational Hotfix build 1. It inherits the 26.120 records except where a probe on this build overrode them; the compatibility matrix marks every inherited cell and counts them
import pyflightstream

for row in pyflightstream.support_table():
    print(row.summary)

operational is the level that claims a user can get from geometry to a loads file, and it is checkable rather than asserted: it holds only when pyflightstream.support.minimal_workflow(version) builds, which a tier 1 test builds for every version reported at that level.

Canonical identifiers use the 26.XXX scheme, the last digit indexing vendor hotfix builds, so 26.121 is hotfix build 1 of the 26.12 release. The vendor ships both 26.120 and 26.121 under the one release name "26.12", and both 26.100 and 26.101 under "26.1", so neither name selects a build and each is refused with its candidates named; pass the canonical identifier. A vendor name is unique only until the vendor ships the next build under it, which is why a script should not rely on one. The ordered list in src/pyflightstream/commands/_meta.yaml is the only ordering authority, and it orders releases, not support: 26.100 is newer than 26.000 and both sit below 26.120. Supported versions are only ever added, never dropped, which is why the February 2026 build entered as 26.100 and the May build it displaced was appended as 26.101 rather than either being renamed away. The compatibility matrix in the docs is generated from the database at build time.

What is each folder?

Folder Purpose in plain language
src/pyflightstream/ The package, one subpackage per pipeline stage (versions, commands, script, results, cases, run, workspace, post, qa, plus fsi, probes, farfield)
src/pyflightstream/commands/ The command database: what exists in which FlightStream version, with a manual page or probe-report citation per entry
tests/ Tier 1 tests, runnable anywhere, no FlightStream needed
reports/ Committed evidence from licensed machines: command validity (compat), physics regression, drift, and research cards
docs/ Documentation source (ProperDocs); reference pages are generated from the database, never committed
examples/ Runnable example scripts in percent format
guide/ LaTeX source of the user guide (the built pdf never enters Git)
deprecated/ Discontinued public items, grouped here instead of scattered at the top level
.claude/skills/ Maintenance procedures (version updates, command additions, QA runs, releases)
_private/ Local only, never committed: FlightStream manuals, executables, research geometry, the design documents and the plan ledger

Development setup

Maintainers: several machine-specific environment variables locate local tooling and session state and are not in Git. A fresh clone must set them in .claude/settings.local.json; CLAUDE.md (Session protocol) is their single home, lists them, and states what each one does when unset. The count is deliberately not repeated here: it lived in two places and went stale in this one.

pip install -e .[dev,fsi,geom]
pre-commit install
pytest

Tier 1 (the pytest suite) runs anywhere. Tier 2 (command validity probes) and Tier 3 (physics regression) require a local FlightStream license and are documented in CONTRIBUTING.md. The docs build with properdocs build --strict.

License

MIT. Contributions must be original or MIT-compatible; code derived from the AGPL pyFlightscript package is not accepted. See CONTRIBUTING.md.

Release files for pyflightstream 0.5.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 pyflightstream 0.5.0
File Size Uploaded
pyflightstream-0.5.0.tar.gz 808.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyflightstream 0.5.0
File Interpreter ABI Platform
pyflightstream-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / pyflightstream-0.5.0.tar.gz

Download URL pyflightstream-0.5.0.tar.gz
Size 808.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01bc92bb641b45d076db75fc74f0794b19d97f00e20c9b9441dc0a17d00010aa
BLAKE2b-256 checksum
How to use checksums
b9e78d215fd4476e6775f651cc521d22388fcad044cfa45e5672071fb1b16a6b
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 9, 2026.

Transparency log

Release files / pyflightstream-0.5.0-py3-none-any.whl

Download URL pyflightstream-0.5.0-py3-none-any.whl
Size 522.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa3c8abcba53d0773d1a07f9044c00dbab44b1a4de878fb7b049ea907812f10c
BLAKE2b-256 checksum
How to use checksums
ef9dafcd00a12abe782f3f1aa8e914bbc90fe859d04dc1bb4b38812232e6d850
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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.27.0

2 release files

0.26.0

2 release files

0.25.1

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.1

2 release files

0.21.0

2 release files

0.20.1

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.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