Skip to main content

cabledyn: Python tools for CableDyn

cabledyn is for engineers who script CableDyn analyses. It runs the standalone solver, reads and post-processes results, validates and edits input decks, runs parameter studies, and couples to the solver in-process through the C interface. The full reference is the Python chapter of the CableDyn manual.

Install

From PyPI (Python 3.10 or newer; NumPy is the only required dependency):

py -m pip install cabledyn
py -m pip install "cabledyn[post]"   # adds pandas and matplotlib

The wheels for Windows x64, Linux x86-64 (both for processors with AVX2) and macOS on Apple silicon carry the solver: the CableDyn shared library for the in-process CableDyn class and the standalone driver that CableDynDriver and cabledyn-run run. On another platform pip builds from the source distribution, which needs a Fortran compiler and LAPACK.

The pure Python wheel attached to each GitHub release (cabledyn-0.4.0-py3-none-any.whl) carries no solver. CableDynDriver finds the driver from an explicit path, then the CABLEDYN_DRIVER environment variable, then the driver inside the package, then PATH; the in-process CableDyn class uses the library inside the package, or one named by CABLEDYN_LIBRARY or found in a source checkout's build tree.

Components

Component Purpose
CableDynDriver, cabledyn-run Run a deck, check completion, and read the output tables
read_output, read_openfast_output, read_moordyn_output, read_moordyn_line, read_coupled_run, read_table Read CableDyn, OpenFAST (text and binary), and MoorDyn results
TimeHistory, cabledyn-post Statistics, plots, spectra, coherence, rainflow fatigue, and CSV/TSV export
compare_histories, resample, fft_filter, block_maxima, fit_gumbel, fit_weibull, line_geometry Run comparison, signal processing, extreme values, and line geometry
DeckFile, DeckWriter, cabledyn-deck Validate, edit, and write decks, preserving comments and formatting
generate_deck_cases, parameter_grid, run_study, cabledyn-study Generate and run parameter studies with hashed manifests
CableDyn In-process coupling through the C interface

Example

from cabledyn import CableDynDriver

driver = CableDynDriver(r"C:\CableDyn\CableDyn_driver.exe")
result = driver.run("model.dat", "results/baseline", timeout=600)

history = result.read_main()
print(history.statistics("FairTen1")[0])

fatigue = history.fatigue("FairTen1", start=600.0, stop=4200.0,
                          wohler_exponent=3.0, reference_frequency=1.0, bins=32)
print(fatigue.damage_equivalent_range)

profile = result.read_static()
profile.plot("Curvature", line_id=1)

A returned result is always a converged analysis: a failed solver step, timeout, missing output, or malformed or non-finite data raises a typed exception. Existing results are kept unless overwrite=True, and then restored if the new run fails.

Run a generated study from the command line:

cabledyn-study generated\cases.json --executable C:\CableDyn\CableDyn_driver.exe `
  --output-directory generated\results --jobs 4 --channel FairTen1 --start 600 --stop 4200

cabledyn-study exits 1 if any case failed, 2 for an invalid manifest or unsafe destination, and 3 if the cases ran but study.json or summary.csv could not be written.

Documentation

Licensed under the Apache License 2.0.

Metadata

Release files for cabledyn 0.4.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 cabledyn 0.4.0
File Size Uploaded Provenance Actions
cabledyn-0.4.0.tar.gz 3.6 MB With provenance Details for cabledyn-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cabledyn 0.4.0
File Interpreter ABI Platform Actions
cabledyn-0.4.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cabledyn-0.4.0-py3-none-win_amd64.whl
cabledyn-0.4.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for cabledyn-0.4.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cabledyn-0.4.0-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for cabledyn-0.4.0-py3-none-macosx_15_0_arm64.whl

Total release size: 63.0 MB

Release files / cabledyn-0.4.0.tar.gz

Download URL cabledyn-0.4.0.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
af585bf62ce6c40844b5f663e648230cb0bbb80b34f142722abf9747d4856f3e
BLAKE2b-256 checksum
How to use checksums
5036588071b31cdbdc5d324f2726c9a61b838d171c8d7c82581fd04b809ab59e
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 Nov 4, 2026.

Transparency log

Release files / cabledyn-0.4.0-py3-none-win_amd64.whl

Download URL cabledyn-0.4.0-py3-none-win_amd64.whl
Size 7.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f5ecd4a87efe66499b968bce73f18bef7f505d5292e5ea36abd0827ec48dce09
BLAKE2b-256 checksum
How to use checksums
9bc526cca85751f50e9494e180fe1eab271db668bb4fdf59b9dda8d69d1be1b1
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 Nov 4, 2026.

Transparency log

Release files / cabledyn-0.4.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cabledyn-0.4.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 28.0 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b80378f0460580a36b3de16a1ed1827d3f2afb6d9f280d951513eae436999f91
BLAKE2b-256 checksum
How to use checksums
a03d7e59e62e4537ec5d7067127e1acc9d4e73cb5f6af926f1e7d6e4526e457f
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 Nov 4, 2026.

Transparency log

Release files / cabledyn-0.4.0-py3-none-macosx_15_0_arm64.whl

Download URL cabledyn-0.4.0-py3-none-macosx_15_0_arm64.whl
Size 24.1 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
ba4c750bc35eb9d4ac5880ef819e1b427ea1d5ae4c6efdbdd72910250f661eb1
BLAKE2b-256 checksum
How to use checksums
ac4038063c5885c40a81e8dd31961a589f88586bff73b231ef7b0ea9ee225c11
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 Nov 4, 2026.

Transparency log

Security for cabledyn 0.4.0

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 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for cabledyn-0.4.0.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 Nov 4, 2026.

Transparency log

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.

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