Skip to content
PyExtrusion — A beautiful extrusion
Menu

PYTHON LIBRARY · ALUMINIUM EXTRUSION

Engineering
Aluminium
Extrusion.

Engineering calculations for the people
who know what goes into an extrusion.

v0.20.0Python ≥ 3.10Apache-2.0

Technical pencil drawing of an aluminium extrusion profile with the blue π flower and the PyExtrusion signature: A beautiful extrusion.

THREE WORKING AREAS

One process.
Connected perspectives.

Plan the production. Explore the engineering.
Understand the economics.
One consistent Python toolkit.

01

Production & Planning

Turn press, profile and process inputs into billet sizing, production quantities and technical press time.

  • Geometry & productivity
  • Multi-billet configurations
  • Sequences & press comparison
Plan a production
02

Engineering

Explore source-traced material models and analytical mechanical and thermal tools, with explicit model boundaries.

  • AA6060 / AA6063 rheology
  • Axisymmetric pressure baseline
  • Bounded thermal estimates
Explore the models
03

Economics

Connect production results to costs and margins using assumptions you supply and can inspect.

  • Material & scrap economics
  • Production & tooling costs
  • Sales margins
Understand the costs

ENGINEERING PHILOSOPHY

Real constraints.
Transparent calculations.

An extrusion is more than an extrusion ratio. The useful answer also depends on the press, the billet, the cuts and the time between them.

Read the model boundaries
01 /

Deterministic by design

The same inputs produce the same results. Calculations follow explicit rules and caller-supplied assumptions.

02 /

Traceable from input to result

Inspect units, applied defaults, process choices and warnings. Know what each result represents.

03 /

Clear about the limits

Pressure is an axisymmetric screening baseline. Thermal tools are bounded estimates. Industrial judgement remains essential.

FROM INPUT TO INSIGHT

300 bars.
A complete production picture.

A worked example from the User Guide.

01 / PROCESS INPUTS

Nominal press / table
8″ / 54 m
Profile type
Solid
Profile linear mass
1.35 kg/m
Die exits
2
Exit speed
24 m/min
Commercial cut length
7000mm
Total trim per billet
2 m
Production target
300 bars

Normal complexity. Default nominal-press geometry, saw kerfs, butt rule and dead time apply.

02 / CALCULATED PLAN Target fulfilled

30complete billets
300finished bars
2,835 kggood production
53.54 mintechnical press time

Technical time includes extrusion and modelled dead time between billets. It is not a full shift or delivery-time forecast.

See the complete example & assumptions
Inspect the Python behind this result
from pyextrusion import (
    Press, Profile, Process, PlanningCase,
    PlanningRequest, calculate_planning,
)

press = Press(
    name="Example 8-inch press", nominal_size_in=8, table_length_m=54,
)
case = PlanningCase(
    profile=Profile(linear_weight_kg_m=1.35, exits=2, profile_type="solid"),
    process=Process(
        exit_speed_m_min=24, cut_length_mm=7000,
        trim_total_per_billet_m=2, complexity="normal",
    ),
)
plan = calculate_planning(press, case, PlanningRequest.bars(300))

print(plan.planned_billets)  # 30
print(plan.planned_bars)     # 300
print(plan.planned_good_kg)  # 2835.0
print(round(plan.time_used_min, 2))  # 53.54

DESIGNED FOR PYTHON. BUILT FOR EXTRUSION.

Put the engineering
into your workflow.

Use the Python API in your applications and analysis tools,
or work with the JSON and command-line interfaces.

Your first calculation
INSTALL · PYTHON ≥ 3.10
pip install pyextrusion==0.20.0

Ready for your next calculation.

KEEP EXPLORING

The detail is in the documentation.

Updating an existing project? v0.20.0 adds explicit production-family selection when changing cuts. Automatic mode retains the 0.19.0 behavior. Review trim topology & legacy migration before reusing older inputs.