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.1-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.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 cabledyn 0.4.1
File Size Uploaded Provenance Actions
cabledyn-0.4.1.tar.gz 3.7 MB With provenance Details for cabledyn-0.4.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cabledyn 0.4.1
File Interpreter ABI Platform Actions
cabledyn-0.4.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cabledyn-0.4.1-py3-none-win_amd64.whl
cabledyn-0.4.1-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.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cabledyn-0.4.1-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details for cabledyn-0.4.1-py3-none-macosx_15_0_arm64.whl

Total release size: 63.7 MB

Release files / cabledyn-0.4.1.tar.gz

Download URL cabledyn-0.4.1.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
54f78e99dda17d9ccd48d2ed504de93893bce753991fce372233774aac917f45
BLAKE2b-256 checksum
How to use checksums
7421c8d1743bd57673af2f3eaa179f2e6df001093a2a43ec0d8eb40ea9728bd3
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 8, 2026.

Transparency log

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

Download URL cabledyn-0.4.1-py3-none-win_amd64.whl
Size 7.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
39604ea2df121950e7d05e9e62fb5cc43f44d1edd80055c3de3699d853043cbf
BLAKE2b-256 checksum
How to use checksums
993b78e1c69abb33e9dfe030a22b874097b22da335a848d984fde1d1239f7b27
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 8, 2026.

Transparency log

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

Download URL cabledyn-0.4.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 28.2 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9168b913fb9f40bda51441315a60f10dc3b9fec0755c9392db9c0e83aa326379
BLAKE2b-256 checksum
How to use checksums
91c226a069c752ac9bb0e24dd132487cf746e58f3bf5f2db419cc8c5a472f716
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 8, 2026.

Transparency log

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

Download URL cabledyn-0.4.1-py3-none-macosx_15_0_arm64.whl
Size 24.3 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
8a16b5a4119606dd0eb8ec46c6e1b11ea8465255215494fc115dc8bc6876fbf9
BLAKE2b-256 checksum
How to use checksums
13f8c594871df87419ec4e25a77b7de7a9a95c442cb4e765c227692480bc2a0a
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 8, 2026.

Transparency log

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

Select from 4 files

Attestation for cabledyn-0.4.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 Nov 8, 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