Aerox
Aerox is an open aircraft performance toolbox. It provides detailed aircraft data and performance models, such as drag and kinematics, for 150+ aircraft types. The models are physical models built from open data.
Aerox complements OpenAP. It covers more aircraft types, with more parameters for each type. For example, Aerox builds up the drag of each aircraft part from its geometry, instead of estimating the drag from flight data.
A selection of the aircraft, drawn from the Aerox geometry data:
Install
pip install aerox
Or, from a copy of the repository:
pip install .
Add the plot extra (pip install "aerox[plot]") to draw aircraft with Matplotlib.
Quick start
Aircraft
Load an aircraft:
from aerox import load_aircraft, get_available_aircraft
ac = load_aircraft("A320")
print(ac.mtow, ac.wing.area, ac.wing.span)
print(get_available_aircraft())
View an aircraft in 2D and 3D
The aerox command opens an aircraft viewer in the browser:
aerox view # all aircraft
aerox view A320 B789 # only these aircraft
aerox view --out a320.html A320 # write the page to a file instead
The viewer shows each aircraft in 3D and as a 2D three-view, with dimensions and a scale. Click a part to see its dimensions and where each value comes from. The server runs on http://127.0.0.1:8765 until you press Ctrl+C. Use --port to change the port and --no-open to keep the browser closed. The page loads three.js from a CDN, so it needs an internet connection. python -m aerox view does the same.
The same drawings are available in Python, with the plot extra:
from aerox.plot import three_view, view_3d
three_view(ac).savefig("a320-three-view.png")
view_3d(ac)
The drawings are outline models. The sizes come from the record. The positions of the wing, tails, and engines along the fuselage follow simple rules, so they are approximate.
Drag model
Aerox gives drag in two forms. Both have a cd() method (an alias of drag_coefficient()) that returns the drag coefficient at a flight condition.
build_drag_model(ac) |
build_parabolic_polar(ac) |
|
|---|---|---|
| Returns | the full drag model | CD = cd0 + k CL² |
| Changes with Mach and Reynolds number | yes | no, fixed at the reference condition of the record |
| Wave drag | yes | no |
| Use it for | performance at a flight condition | quick estimates and closed-form analysis |
The full model, at a flight condition:
from aerox.models.drag import build_drag_model
model = build_drag_model(ac)
print(model.cd(cl=0.55, mach=0.78, h=11_000)) # altitude in m, ISA
With the altitude h, the model computes the Reynolds number from the ISA atmosphere. Add dT= for a temperature offset from ISA, or pass reynolds_per_m= instead of h to give the Reynolds number yourself.
The parabolic polar, the same at every flight condition:
from aerox.models.drag import build_parabolic_polar
polar = build_parabolic_polar(ac)
print(polar.cd0, polar.k)
print(polar.cd(cl=0.55))
Near the reference cruise condition of the record, and at cruise lift coefficients, the two agree within a few percent. Away from that condition, or at high lift coefficients where wave drag appears, use the full model. See the drag docs for details.
What each part of the aircraft contributes to the drag:
The maximum lift-to-drag ratio of every turbofan aircraft in the database:
Kinematics
Each record also has the typical speeds and vertical rates of each flight phase, from takeoff to landing:
k = ac.kinematic
print(k.climb_to_fl150_ias) # 290 kt
print(k.climb_to_fl150_vs) # 2000 ft/min
print(k.cruise_mach) # 0.79
print(k.cruise_range_nm) # 2700 nm
The A320 values, phase by phase (see the kinematics docs for all fields):
Atmosphere and speeds
Atmosphere and speed conversions, in SI units:
from aerox import aero
p, rho, T = aero.atmos(h=10_000) # altitude in m
cas = aero.mach2cas(mach=0.78, h=10_000) # m/s
What is included
- Aircraft data. One YAML record per type with geometry, mass limits, and engine data. Each geometry and mass value has a source note under
src/aerox/data/aircraft/sources. - Drag. A drag model computed from the aircraft geometry: skin friction and form factors for the wing, fuselage, tails, nacelles, and pylons, plus wave drag and induced drag, and drag increments for deployed flaps and landing gear.
- Math backends. The drag model is also available as a closed-form expression for JAX and CasADi, for optimization and automatic differentiation (see Math backends).
- Drawings.
aerox viewandaerox.plot, 2D and 3D outline drawings of each aircraft. - Kinematics. Typical speeds and vertical rates of each flight phase, for every aircraft.
- Atmosphere and speeds.
aerox.aero, ISA atmosphere and CAS/TAS/EAS/Mach conversions. - Flight management.
aerox.fms, route, altitude and speed intent, and guidance primitives (still under development).
Current accuracy and limits
- At cruise, the drag model agrees with a reference performance model within 5 % for most jet transports. At lower Mach numbers (about 0.6) it is 4 to 12 % too high.
- Flap and landing gear drag come from simple handbook methods. Slats add no drag, and spoiler drag is not modelled.
- The modules for thrust, lift, flight dynamics, and simulation are experimental. Their interfaces can change.
Sources
- Aircraft data. Type certificate data sheets (EASA, FAA, Transport Canada, CAA New Zealand), manufacturer airport planning documents, and manufacturer CAD drawings (Airbus, Boeing), from which the wing and tail geometry is measured. Military types use NASA technical reports and USAF fact sheets. Every geometry and mass value in a record has a source note under
src/aerox/data/aircraft/sources. The cited documents are listed insources/sources.yml, and the drawings and measurement tables are insources/. Values not yet traced to such a document are markedlegacy-unverified. The kinematic values have no source notes yet. - Drag methods. Component drag build-up after Raymer, Kroo, and Scholz, nacelle and pylon terms after FLOPS and SUAVE, and wave drag from the Korn equation with Lock's fourth-power law.
- Atmosphere.
aerox.aerois ported fromopenap.aero(OpenAP 2.6.0).
Documentation
See docs/ for the aircraft data, the drag model, the kinematics, the atmosphere functions, and the roadmap.
Development
uv sync --all-extras # the tests need every extra
uv run pytest -q
uv run --extra editor tools/web_editor.py # local editor for aircraft records
uv run --extra research tools/make_readme_figures.py # figures in docs/figures
Licence
GNU Lesser General Public License v3 (LGPL v3). See LICENSE.
Metadata
Release files for aerox 0.4
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 |
|---|---|---|---|---|
| aerox-0.4.tar.gz | 2.0 MB | With provenance | Details for aerox-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aerox-0.4-py3-none-any.whl | Python 3 | none | any | Details for aerox-0.4-py3-none-any.whl |
Total release size: 3.7 MB
Release files / aerox-0.4.tar.gz
| Download URL | aerox-0.4.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
106726c5c852b515f10b0c69498b93739eb61ddfe5e7fdfd2127c70262d65ff0
|
|
BLAKE2b-256 checksum How to use checksums |
fff43ab8aa3bbbdf1a59cc363efdf31568f44538deb386bdbd408f8693d6dad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 24, 2026.
Transparency logRelease files / aerox-0.4-py3-none-any.whl
| Download URL | aerox-0.4-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc0322453d68eb3079feeb00d539e1f4963444edf2cbf6b878563d1ef7e12ce6
|
|
BLAKE2b-256 checksum How to use checksums |
3a4b34165313abd497cb551f400d8238454c0480a59668a00ff2b26ea25f3ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 24, 2026.
Transparency logSecurity for aerox 0.4
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
Both files in this release have been uploaded with provenance metadata.
Attestation for aerox-0.4.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 24, 2026.
Transparency logA 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.