Skip to main content

steel-sections

Weights, dimensions and section properties of standard steel sections, plus weight formulas for plate, bar and tube. Pure Python, no dependencies, data bundled.

pip install steel-sections
import steel_sections as ss

ss.get("ISMB 200").mass_kg_m        # 24.17
ss.get("ismb200").mass_1964_kg_m    # 25.4  (the old handbook value many charts still print)
ss.get("IPE 300").iy_cm4            # 8356.0
ss.get("ISA 50x50x5").mass_kg_m     # 3.79

[s.section for s in ss.series("HEA")][:3]   # ['HEA 100', 'HEA 120', 'HEA 140']

ss.rebar(12).weight_kg_m            # 0.888
ss.rebar("#5").weight_lb_ft         # 1.043
ss.pipe("2", "40").weight_lb_ft     # 3.66
ss.gauge(16).mm                     # 1.519

# formulas: dimensions in mm, kg per metre (plate: kg per piece); density defaults to 7850 kg/m³
ss.round_bar(12) * 12               # 10.65 kg for a 12 m bar
ss.flat_bar(50, 6)                  # 2.355
ss.round_tube(60.3, 3.91)           # 5.44
ss.plate(2500, 1250, 10)            # 245.3 kg
ss.round_bar(20, density=2700)      # aluminum

Command line:

$ steel-sections ISMB 200
$ steel-sections --series ISMC
$ steel-sections --rebar 16
$ steel-sections --pipe 1-1/2 80
$ steel-sections --gauge 14

MCP server for AI assistants

The package includes a Model Context Protocol server, so Claude, Cursor, VS Code and other MCP clients can look up sections and calculate weights. It has no dependencies and talks over stdio.

{
  "mcpServers": {
    "steel-sections": {
      "command": "uvx",
      "args": ["--from", "steel-sections", "steel-sections-mcp"]
    }
  }
}

With the package installed (pip install steel-sections), the command can also be just steel-sections-mcp.

Tools: get_section (IS 808 and EN sections with all properties), list_series, pipe (NPS and schedule), rebar (US bar sizes and metric diameters), sheet_gauge, and shape_weight (plate, flat, round, square and hex bar, round and rectangular tube, angle; any density). Every result carries a reference to the matching weight chart.

What is included

Series Standard Sizes Fields
ISMB, ISWB, ISMC, ISA (equal angles) IS 808:2021 120 dimensions, kg/m, lb/ft, area, Ix, Iy, Iu, Iv, r, Z, Zp, It, Iw, and the IS 808:1989 and 1964 handbook masses
IPE, HEA, HEB, HEM, UPN EN 10365 profiles 108 dimensions, kg/m, lb/ft, area, Iy, Iz
Pipe ASME B36.10M / B36.19M sizes 405 NPS × schedule rows OD, wall, lb/ft, kg/m
Rebar ASTM A615 #3–#18; metric 6–50 mm 23 diameter, area, kg/m, lb/ft
Sheet metal gauges Manufacturers' standard gauge 36 steel, galvanized, stainless, aluminum thickness

Every section row was checked against the source: mass against 0.785 × area, radius of gyration against √(I/A), elastic modulus against I/(D/2). Misprints in the printed IS 808 tables are corrected. Section attributes keep the CSV column names, with units in the name (mass_kg_m, ix_cm4, depth_mm). European sections use EN axis names (y-y major, z-z minor). American W, S, C, MC, L and HSS shapes are not included: the AISC Shapes Database has no redistribution licence.

Values are theoretical (7850 kg/m³). Check them against the current standard or the mill certificate before design or purchase. Interactive version with drawings, charts and a calculator: steelweight-calculator.com.

Licence

Code: MIT. Data: Indian sections CC BY 4.0 (values from IS 808 as made public by Public.Resource.Org); European sections Apache-2.0 (geometry from the fib-international structuralcodes library); pipe, rebar and sheet gauge tables CC BY-SA 4.0 (adapted from the Wikipedia articles Nominal Pipe Size, Rebar and Sheet metal). See DATA-LICENSE.md.

Metadata

Release files for steel-sections 0.2.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 steel-sections 0.2.0
File Size Uploaded Provenance Actions
steel_sections-0.2.0.tar.gz 33.8 kB Without provenance Details for steel_sections-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for steel-sections 0.2.0
File Interpreter ABI Platform Actions
steel_sections-0.2.0-py3-none-any.whl Python 3 none any Details for steel_sections-0.2.0-py3-none-any.whl

Total release size: 67.9 kB

Release files / steel_sections-0.2.0.tar.gz

Download URL steel_sections-0.2.0.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2ece0775741d0f3adbfd579dec143dc50e9e0b4aa75a1b0280d3ab688902ede0
BLAKE2b-256 checksum
How to use checksums
8479864f19670f81c239313a600812b16aacbef2aa5da329bac4986f5f5efea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / steel_sections-0.2.0-py3-none-any.whl

Download URL steel_sections-0.2.0-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4039b770356a0b13212ecbd3f7c56fda89e7b95e59aca97fa6517ddd193eaecd
BLAKE2b-256 checksum
How to use checksums
49c8a77ea6402596791312b5746f25d678a7de27e996e9f8ff989a36bd9177a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for steel-sections 0.2.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.

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