Skip to main content

eddy-solve

The Eddy SDK for Python — every operation of the engine's API as a typed method, generated from the engine's own OpenAPI document (version 0.1.0). Standard library only; Python 3.9+.

pip install eddy-solve
from eddy_solve import Eddy

eddy = Eddy("http://127.0.0.1:8080", api_key=None)  # or EDDY_BASE_URL / EDDY_API_KEY
result = eddy.solve_structural(
    geometry={"primitive": {"box": {"lx": 1.0, "ly": 0.2, "lz": 0.2}}},
    material={"id": "steel", "e": 210e9, "nu": 0.3, "rho": 7850, "yield": 250e6},
    loads=[{"region": "x_max", "force": [0, 0, -1000]}],
    constraints=[{"region": "x_min", "fixed": "all"}],
    mesh_opts={"element_size": 0.1},
)
print(result["result_id"], result["cached"], result["metrics"])
u = eddy.field(result, "displacement")   # Field: 3 components per node
print(u.count, "nodes, max |u| =", u.max_magnitude())
assert eddy.verify_report(result["result_id"])["matches"]
  • Errors are EddyError with .code (the API's error code), .message, .status.
  • Async jobs: a 202 is followed through poll to the result; _wait=False returns the handle, wait_for_job(job) / job_events(job_id) finish it.
  • Blobs go through a content-addressed local cache (EDDY_CACHE_DIR, default ~/.cache/eddy-solve/blobs; cache_dir=False disables it); field(result, name) decodes an SSFLD1 blob into a Field.
  • Retries with backoff: content-addressed operations and every GET on any transport failure; other POSTs only when the engine was not reached.

The reference: https://eddy-ac74d702.mintlify.site/sdks/python — one method per operation, snake_case of the operation id.

Generated by superstring --emit-sdk python; do not edit by hand.

Metadata

Release files for eddy-solve 0.1.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 eddy-solve 0.1.0
File Size Uploaded Provenance Actions
eddy_solve-0.1.0.tar.gz 451.9 kB Without provenance Details for eddy_solve-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eddy-solve 0.1.0
File Interpreter ABI Platform Actions
eddy_solve-0.1.0-py3-none-any.whl Python 3 none any Details for eddy_solve-0.1.0-py3-none-any.whl

Total release size: 912.9 kB

Release files / eddy_solve-0.1.0.tar.gz

Download URL eddy_solve-0.1.0.tar.gz
Size 451.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63fb262e1aba32dc8798ff24593764c2555f80a117c1c3220c575bcf6ae9e297
BLAKE2b-256 checksum
How to use checksums
754ea3bfec6278fcf97ce010dd9aed043ce58856802585c99037a322d66facae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Release files / eddy_solve-0.1.0-py3-none-any.whl

Download URL eddy_solve-0.1.0-py3-none-any.whl
Size 461.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ad8dad240ae995f4453929c1274ab9f68574443c18df5f651d1fb44045b858e
BLAKE2b-256 checksum
How to use checksums
b6153f4c3b6a29917e70fac32535d004aba30cb530fa4e6c7d60ba63966335d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Security for eddy-solve 0.1.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.

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