henfoil — Python SDK (HF-SDK-001)
Official headless HTTPS client for production HENFOIL. Same REST surface as the workspace: generate → VIC polars + Trust → export HOLD → batch / select / compare → 2-D RANS + Mesh · CFD · FEA suite → wing PIPE / BLOCK-GATE → icing / erosion / impact / section FEA.
Version 0.3.6 · Docs: api.hendoi.com/?doc=python-sdk · PyPI: pip install henfoil
Header on every call: X-Henfoil-Client: henfoil-python/0.3.6.
Install
pip install henfoil
# pin:
pip install henfoil==0.3.6
# monorepo editable:
pip install -e henfoil-sdk/python
Requires Python ≥ 3.9 and requests≥2.28. License: LicenseRef-Proprietary (HENDOI).
Auth
Create an hfk_… key on HENFOIL → Developers (or company Settings → Generate API key for HENFOIL). There is no henfoil login / device-code flow yet.
export HENFOIL_API_KEY=hfk_…
# optional override (default is production):
# export HENFOIL_API_URL=https://henfoil.hendoi.com
# local product API:
# export HENFOIL_API_URL=http://localhost:8001
python -c "from henfoil import Client; print(Client().sdk_budget())"
Or pass the key explicitly:
from henfoil import Client
c = Client(api_key="hfk_…", base_url="https://henfoil.hendoi.com")
Monthly meters
Every SDK request spends both:
| Meter | What it counts |
|---|---|
apiRequests |
All automation HTTPS (curl, SDK, scripts) |
pythonSdk |
Official henfoil Python client only |
Suite / 2-D RANS / 3-D RANS / FEA also spend computeCredits.
Plan defaults for pythonSdk (reset each billing cycle):
| Plan | pythonSdk / month |
|---|---|
| Free Community | 0 |
| Student | 200 |
| Professional | 2,000 (shared; admin may allocate) |
| Team | 8,000 shared (henfoilPythonSdk per seat) |
Inspect budget before overnight batches:
c = Client()
print(c.usage()["usage"]["pythonSdk"])
print(c.sdk_budget()) # remaining / limit helpers
c.check_quota() # warns on stderr when low
print(c.last_quota) # headers from the last response
Response headers: X-Henfoil-Sdk-Limit, X-Henfoil-Sdk-Remaining, X-Henfoil-Sdk-Warning (plus X-Henfoil-Api-*). HenfoilError.quota_exceeded is true on meter 403s.
Trust (read before citing)
trust_summary(payload) mirrors browser CoreEnggTrust: aggregates decisionGate, holdCodes, and explain[] (why / where / impact / fix) across polar Trust, preSweep, export HOLD, OOD, mesh / CAD / ice / stall / blockGate packs.
from henfoil import Client, trust_summary
polar = Client().polar(coords, re=2e5, aoa=(-4, 12, 2))
t = trust_summary(polar)
print(t["decisionGate"], t.get("holdCodes"))
Screening honesty only — not tunnel / FAR / LEWICE certification.
What it cannot claim
- Not Fluent, Nastran, HyperMesh, PSE, LEWICE, or ICAO certification CFD/FEA
- Not FAR / CS bird-strike SPH (
impact/ HF-BIRD-LE is LE packaging → escalate HENSTRUCT) - Not tunnel / flight CLmax authority — honour
stallCapturedand export HOLD - Shell box FEA: no twist or dihedral; Euler wing drag ≠ airplane Cd
- Section Cd ≠ airplane Cd (Continue → HENSYNTH keeps polar-bridge honesty)
- Industry / OEM / bird-strike LE review cards are UI Trust packs — not separate REST methods
- HEN-AI is browser-only (not an SDK chat client)
- Free plan = 0
pythonSdkcalls/month
End-to-end example
from henfoil import Client, trust_summary
c = Client()
coords = c.generate("2412")["coordinates"]
# VIC polar + Trust
polar = c.polar(coords, re=2e5, aoa=(-4, 12, 2))
print(trust_summary(polar)["decisionGate"])
# export with HF-POLEXPORT-003 HOLD gates (do not invent Clmax):
# c.export_polar(polar, formats=["xfoil"])
# 2-D RANS field → VTK
rans = c.flow_rans(coords, {"includeField": True, "aoaDeg": 4})
c.suite_cfd_export(rans, "vtk")
# Mesh · shell FEA (screening box)
mesh = c.suite_mesh(coords)
fea = c.suite_fea(
coords,
{"chordM": 1, "spanM": 2, "taper": 0.5, "ribs": 4, "speedMs": 60, "cl": 0.8},
)
# Wing PIPE (loft → VIC stations → BLOCK-GATE; optional 3-D)
wing = c.wing_pipeline(
coords,
{"span": 6, "rootChord": 1.0, "taper": 0.5, "twistDeg": -2, "aoaDeg": 4},
run_rans3d=False,
)
# Specialty screens
# c.icing(coords, {"re": 5e5, "alphas": [0, 4]})
# c.erosion(coords, {"re": 5e5, "alphas": [0, 4]})
# c.section_fea(coords, {"chordM": 0.3})
Long solves return a job; methods with await_job=True (default) poll GET /api/v1/jobs/:id until finished.
Client methods → REST
Meters & registry
| Method | Route | Notes |
|---|---|---|
usage / sdk_budget / check_quota |
GET /api/v1/usage |
Meters + remaining |
methods |
GET /api/v1/methods |
HF-* registry |
job |
GET /api/v1/jobs/:id |
Poll async work |
Geometry & polars
| Method | Route | Notes |
|---|---|---|
generate |
GET /api/v1/airfoil-database/generate |
NACA / catalog seed ("2412" → naca4:2412) |
polar |
POST /api/v1/polars |
HF-VIC-004 · HF-REC-003 · Polar Trust |
predict |
POST /api/v1/analysis |
Single-point viscous |
export_polar |
POST /api/v1/polars/export |
HF-POLEXPORT-003 HOLD |
extrapolate_360 |
POST /api/v1/polars/extrapolate |
Viterna / Montgomerie screen |
Decide / matrix / screens
| Method | Route | Notes |
|---|---|---|
batch |
POST /api/v1/batch |
HF-BATCH-002 Re×α matrix |
compare / select |
/compare · /select |
HF-COMPARE-004 · HF-SEL-FAIR-001 |
envelope / sensitivity |
/envelope · /sensitivity |
OP envelope / morph |
optimize / inverse / robustness |
decide loop | HF-OPT-001 · HF-ROB-003 |
self_noise / lsb / transition_sweep |
airfoil screens | BPM / LSB / Ncrit |
unsteady_parameters / dynamic_stall_map |
airfoil screens | Unsteady / DSM |
2-D flow & specialty
| Method | Route | Notes |
|---|---|---|
flow_rans |
POST /api/v1/flow/rans |
2-D RANS-SA (5 credits) |
flow_rans_transition |
POST /api/v1/flow/rans-transition |
Transition / Ncrit path |
flow_rans_polar |
POST /api/v1/flow/rans-polar |
α polar (5 + 2/angle) |
analysis_transonic |
POST /api/v1/analysis/transonic |
HF-EULER-IBL · buffet screen |
icing / erosion / impact |
/icing · /erosion · /impact |
HF-ICE · HF-LEE · LE packaging |
erosion_presets |
GET /api/v1/erosion/presets |
Named LE damage presets |
section_fea / section_fea_export |
/aerospace/section-fea* |
FEA-AFSEC-001 |
Wing PIPE · BLOCK-GATE · 3-D
| Method | Route | Notes |
|---|---|---|
wing_analyze / wing_health |
/wing/analyze · /wing/health |
HF-WINGSEC · HEALTH |
cad_wing_query |
/cad/wing-query |
HF-WINGQ-001 |
mesh_wing_block |
/mesh/wing-block |
Loft-faithful Plot3D + BLOCK-GATE |
flow_rans_3d / flow_rans_3d_polar |
/flow/rans-3d* |
HF-RANS3D-LOFT-002 (8 credits) |
wing_pipeline |
/wing/pipeline |
HF-WING-PIPE-001 one-shot |
Mesh · CFD · FEA suite
| Method | Route | Notes |
|---|---|---|
suite_formats |
GET /api/v1/suite/formats |
0 credits |
suite_mesh / suite_mesh_export |
/suite/mesh* |
2-D grid (vtk, su2, gmsh, plot3d, …) |
suite_cfd_export |
/suite/cfd/export |
Field from finished /flow/rans |
suite_fea / suite_fea_export |
/suite/fea* |
Clamped shell box (vtk, csv, bdf) |
Changelog highlights
0.3.6
- In-depth PyPI README: full method map, meters, Trust, honesty limits, end-to-end example
0.3.5
- Product parity:
flow_rans*,batch/select/envelope/sensitivity, icing / erosion / impact,section_fea*,analysis_transonic,methods - PEP 639
LicenseRef-Proprietary+LICENSEfile
0.3.4 / 0.3.3
- Suite client (
suite_mesh,suite_fea, exports), wing PIPE / BLOCK-GATE /flow_rans_3d*,trust_summary
Links
| Product | https://henfoil.hendoi.com |
| API docs (Python SDK) | https://api.hendoi.com/?doc=python-sdk |
| Suite | https://api.hendoi.com/?doc=suite |
| 3D wing | https://api.hendoi.com/?doc=wing |
| Pricing / plans | https://hendoi.com/pricing |
| Support | support@hendoi.com |
Metadata
Release files for henfoil 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| henfoil-0.3.6.tar.gz | 18.6 kB | Without provenance | Details for henfoil-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| henfoil-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for henfoil-0.3.6-py3-none-any.whl |
Total release size: 32.9 kB
Release files / henfoil-0.3.6.tar.gz
| Download URL | henfoil-0.3.6.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d52cba36c747d654f4f01bfdbbbb8841fe2214013c36b07628e339a96654b399
|
|
BLAKE2b-256 checksum How to use checksums |
f07e08ac3e216e13e275529d7f73e11186f8bb448106054c913e58d1bfa4812a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / henfoil-0.3.6-py3-none-any.whl
| Download URL | henfoil-0.3.6-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80eacaad2b68b119d86c8a80db980b46860377985f08bbbc221c5389ef2e53d9
|
|
BLAKE2b-256 checksum How to use checksums |
b151efe485a08bc07f3e4156efbdc648f8d67a68fa83ec94d0dde6a21cdb12b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for henfoil 0.3.6
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.