structural-lib-is456
IS 456 reinforced-concrete design library (Python package).
Version: 0.29.2 (normal/final version format; publication state is in the release ledger)
Status:
⚠️ Pre-1.0 API: APIs may change until v1.0. For reproducible results, pin to an exact release.
Supported-case boundary: this package implements selected IS 456 workflows, not the whole standard. Every output requires independent verification and qualified structural-engineering review. Use official standards as the authoritative source.
New in v0.29.2
- Beam imports and snapshots validate case coverage, source units, model facts and station evidence before checks use those inputs.
- Beam checks reject invalid torsion and serviceability inputs and correct lap, anchorage and longitudinal detailing outcomes.
- Workbooks, reports and diagnostics retain failed, held and unavailable results with their supporting evidence.
Introduced in v0.29.1
- Direct beam shear rejects zero and negative support distances supplied as
av_mm. - Ordinary beam shear reports the derived steel percentage and its source when it falls outside the supported 0.15–3.0% range.
Introduced in v0.29.0
- Check signed flexure, shear and straight anchorage for supplied concurrent actions on an ordinary two-span rectangular beam.
- Check an ordinary rectangular cantilever at the fixed face, free end and both sides of a supplied point-load station.
- Check signed rectangular, T and L beam sections with actual multilayer bars.
- Check actual short and braced slender rectangular column cages, short tied and spiral circular cages, and reinforcement from a finite column catalogue.
- Check shear, tie zones, development and the admitted contact splices for a short tied eight-bar column, with a report, drawing and bar bending schedule where the assembly passes.
- Preserve the supplied load-basis status in continuous one-way and restrained two-way slab API results.
The beam worked example and column worked examples explain the inputs, outputs and limits of each supported profile.
Introduced in v0.28.2
- Imported-beam inspection, reports, BBS, DXF, and project quantities use the current checked reinforcement layout.
- Unsupported logging levels fall back to WARNING. Clause lookup identifies effective flange width and material safety factors under their correct IDs.
Maintenance fixes from the 0.28.1 candidate
- Biaxial column checks reject nonfinite axial loads. Material constructors and factories reject invalid strengths at the input boundary.
- Beam input preserves explicit end stirrup spacing and case identity. CLI detailing keeps the bar diameter used to derive effective depth.
- CLI reports retain review and reinforcement evidence. Combined BBS and DXF exports distinguish repeated beam labels across storeys.
Introduced in v0.28.0
- Runnable reference scripts cover one simply supported one-way slab and one square concentric isolated footing. They use public calculation routes and preserve the request, calculations and check statuses in JSON.
- The slab fixture exposes supplied reinforcement, shear, the reviewed span/depth screen, and its capacity/review-limit controls. It does not claim direct deflection, crack-width verification, automatic shear reinforcement, or load-envelope generation.
- The footing fixture exposes service and factored actions, approved-basis input provenance, flexure, one-way/punching shear, bearing/dowel transfer, and supplied detailing. Its 4Ø10 transfer control fails; an assumed soil basis holds an otherwise passing result.
The cases require independent verification and qualified structural-engineering review. The 0.28 candidate plan, INDIA-1D slab evidence, and INDIA-1C footing evidence define their inputs and boundaries. Retained v0.27.0 beam, column, torsion, and T-member coverage remains supported within its documented profiles.
Retained capabilities from v0.24.0
- Fail-closed project intake: malformed, missing, unknown, or mixed-validity beam rows block the whole project instead of being defaulted or skipped.
- Safe public CLI:
designkeeps JSON on stdout, sends diagnostics to stderr, exits non-zero on blocked input, and preserves thebbs/detail/dxfchain. - Traceable results: import ledgers, input/result provenance, API classification, and qualified-review boundaries are explicit and machine-readable.
- Additional bounded workflows: braced walls, straight-flight staircases, simply supported deep beams, regular interior flat slabs, symmetric combined footings, and property-line strap footings expose case-qualified APIs.
- Release verification matrix: exact-wheel UAT exercises 29 positive and negative cases, 15 CLI entries, and the 13 canonical family construction journeys.
Install
Use the release ledger
to find the verified public version. Replace VERSION with that number to
reproduce an exact install. Use pip install -e ./Python when testing a
development checkout.
pip install "structural-lib-is456==VERSION"
pip install "structural-lib-is456[dxf]==VERSION" # with DXF export
python -m structural_lib install-preflight # interpreter/origin/extras
The reference scripts are copied from the current branch and are not packaged. After installing the public pin above in a clone, run:
python -I Python/examples/slab_one_way_reference.py --case baseline
python -I Python/examples/isolated_footing_reference.py --case baseline
Use capacity-fail or review-limit-fail for slab controls and
transfer-fail or assumption-hold for footing controls. Install a retained
candidate from its local wheel in a clean environment.
python -m pip install /path/to/structural_lib_is456-VERSION-py3-none-any.whl
python -I Python/examples/isolated_footing_reference.py --case transfer-fail
Final PEP 440 releases are eligible for ordinary package resolution. The package retains its Beta maturity classifier and the supported-case limits above.
Requires Python 3.11+. On Python 3.9–3.10, pip installs the older v0.16.x (beam-only, no column/footing).
Choosing an API
For supported element design/checks, use structural_lib.design.is456.
For explicit physical beam reinforcement, analysis and project workflows, see
structural_lib.beam and the source repository's docs/library/getting-started.md.
Existing root and api imports remain supported compatibility routes.
The published package includes typed family group imports, typed calculation
results, slab input_* builders and JSON loaders such as beam.load_json.
JSON loaders reject ambiguous duplicate fields and return structured input errors.
From a repository checkout, use pip install -e ./Python to run the examples
against that checkout's source. Start with Python/examples/canonical_workflows.py.
For typed operation outputs and result-bound physical-member and candidate workflows, run
Python/examples/physical_member_workflow.py for project → checks → physical
paths → quantities/package data, and Python/examples/candidate_ranking_workflow.py
for ranking genuine calculations. Those teaching profiles state their limited
engineering scope and retain missing, failed and stale outcomes.
The CLI report command exports JSON and HTML. The Python
api.generate_calculation_report() function exports HTML, JSON and Markdown.
For PDF, use structural_lib.services.report.export_pdf(ReportData) with the
pdf extra.
If You Want To…
Design and Detail a Beam Through the Canonical Facade
from structural_lib.design.is456 import beam
detailing = beam.BeamDetailingOptionsV1(
standard=beam.DetailingStandard.IS456,
clear_cover_mm=40,
tension_bar_diameter_mm=20,
compression_bar_diameter_mm=16,
nominal_top_steel_ratio=0.25,
stirrup_diameter_mm=8,
stirrup_legs=2,
stirrup_spacing_support_mm=150,
stirrup_spacing_mid_mm=200,
)
request = beam.input(
member_id="B1",
story="GF",
case_id="ULS-1",
span_mm=5000,
b_mm=300,
D_mm=550,
d_mm=492,
fck_nmm2=25,
fy_nmm2=500,
mu_knm=150,
vu_kn=80,
d_dash_mm=56,
asv_mm2=detailing.asv_mm2,
detailing=detailing,
source_provenance="analysis-envelope:ULS-1",
)
result = beam.design_and_detail(
request,
detailing_standard=beam.DetailingStandard.IS456,
)
print(result.engineering_status)
print(result.to_dict())
The example uses d = 550 - 40 - 8 - 20/2 = 492 mm and
d_dash = 40 + 8 + 16/2 = 56 mm, matching the stated reinforcement.
The complete 13-journey cookbook is maintained at
docs/cookbook/python/family-facades.md in the source repository.
Generate a Bar Bending Schedule (BBS)
bbs = beam.bbs(result)
print(f"Total weight: {bbs.total_weight_kg:.1f} kg")
for item in bbs.items:
print(f" {item.bar_mark}: ø{item.diameter_mm:.0f} × {item.no_of_bars} nos")
Use the Compact Compatibility Beam-to-BBS Route
The canonical facade is recommended for new integrations. The retained
structural_lib.api facade remains useful for existing scripts and quick
evaluations:
from structural_lib import api
result = api.design_and_detail_beam_is456(
units="IS456", beam_id="B1", story="GF",
span_mm=5500, mu_knm=160, vu_kn=85, b_mm=300, D_mm=500, d_mm=444,
)
print(result.summary())
bbs = api.compute_bbs(result)
print(f"BBS weight: {bbs.summary.total_weight_kg:.1f} kg")
The example depth is 500 - 40 - 8 - 16/2 = 444 mm, matching the generated
single-layer 16 mm tension bars. Combined design/detailing rejects mismatched
depths and multiple-layer layouts whose row centroids are not defined. Use
explicit supplied reinforcement when layer positions are needed.
Identity names differ on two retained service functions:
design_and_detail_beam_is456() uses beam_id; the lower-level
design_beam_is456() service uses case_id.
Export DXF Drawings and Reports
Use the fail-closed CLI pipeline for project files and exports:
python -m structural_lib design input.csv -o results.json
python -m structural_lib detail results.json -o detailing.json
python -m structural_lib bbs results.json -o schedule.csv
python -m structural_lib dxf results.json -o drawings.dxf
python -m structural_lib report results.json --format=html -o report.html
Requires the
dxfextra:pip install "structural-lib-is456[dxf]"
Generic CSV imports preserve optional effective depth from d_mm, d (mm),
d, eff_d, effective_depth_mm or Effective Depth. Overall D and effective
d are distinct columns. Supplied depth must be finite and satisfy 0 < d < D;
it survives Python model serialization, API import and saved-project restoration.
When depth is omitted, the existing explicit depth-basis workflow still applies.
An explicit analysis depth does not establish that generated reinforcement fits;
design-to-detailing checks continue to verify that separately.
Batch Design with the Canonical Project Schema
from structural_lib.services.batch import design_project_beams_v1
batch = design_project_beams_v1(
[
{
"schema_version": "project-beam-design/v1",
"member_id": "B1",
"b_mm": 300,
"D_mm": 500,
"d_mm": 442,
"mu_knm": 150,
"vu_kn": 100,
"fck_nmm2": 25,
"fy_nmm2": 500,
}
]
)
print(batch.summary.to_dict())
print(batch.members[0].calculation["flexure"]["ast_required"])
Run the Full Pipeline (design → detail → BBS → report)
See examples/end_to_end_workflow.py for a complete working script (available in the source repository).
The compatibility adapter retains design_inputs, the original case and the
result envelope. compute_detailing() checks that geometry, materials, bar
centroids and stirrups match the passing source design. Default stirrup spacing
respects the calculated maximum; explicit excessive spacing is rejected.
Failed designs remain reportable but cannot produce design-derived schedules.
Regenerate older design JSON that lacks design_inputs before using detail,
bbs or dxf. Explicit steel-only drafting inputs do not establish strength
acceptance. The CLI's unmodified span/depth screen remains supported for the
same geometry. Supplied reinforcement factors, crack strains and torsion need
their documented canonical detailing scope and evidence.
Cost-Optimize a Beam
from structural_lib import optimize_beam_cost
optimized = optimize_beam_cost(
units="IS456", span_mm=6000, mu_knm=150, vu_kn=100,
)
print(f"Optimal: {optimized.optimal_design.b_mm}×{optimized.optimal_design.D_mm} mm")
Check Multi-Case Compliance
from structural_lib import check_beam_is456
report = check_beam_is456(
units="IS456", b_mm=230, D_mm=500, d_mm=450,
fck_nmm2=25, fy_nmm2=500,
cases=[{"case_id": "ULS-1", "mu_knm": 100, "vu_kn": 80}],
)
print(f"Governing case: {report.governing_case_id}")
CLI Usage
The design command is fail-closed. CSV input must explicitly supply
BeamID,Story,b,D,eff_d,Span,Cover,fck,fy,Mu,Vu,Stirrup_Dia,Stirrup_Spacing.
Instead of eff_d, supply tension_bar_diameter_mm so effective depth can be
derived from the explicit cover and stirrup diameter. JSON input uses the
cli-beam-design-input/v1 envelope. Unknown, duplicate, malformed, non-finite,
empty, ambiguous, or mixed-validity input blocks the whole project without a
partial result.
python -m structural_lib design input.csv -o results.json # Beam design
python -m structural_lib bbs results.json -o bbs.csv # Bar bending schedule
python -m structural_lib dxf results.json -o drawings.dxf # DXF drawings
python -m structural_lib report results.json --format=html -o report.html # HTML report
python -m structural_lib job job.json -o output/ # Full job from spec
python -m structural_lib --help # All options
What's Available
Beam Design & Detailing
The primary combined beam route covers flexure and shear. Torsion is available only through the separate explicit torsion workflow.
| Category | Functions | Description |
|---|---|---|
| Beam Design | design_beam_is456, design_and_detail_beam_is456, design_from_input |
IS 456 flexure + shear |
| Detailing | build_detailing_input, compute_detailing, detail_beam_is456 |
Bar sizes, stirrups, cut lengths |
| Optimization | optimize_beam_cost, smart_analyze_design, suggest_beam_design_improvements |
Cost optimization, smart analysis |
| Compliance | check_beam_is456, check_compliance_report, check_beam_slenderness, check_beam_ductility |
Multi-case IS 456 checks |
| Torsion | design_torsion, calculate_equivalent_shear, calculate_equivalent_moment, calculate_torsion_shear_stress, calculate_torsion_stirrup_area, calculate_longitudinal_torsion_steel |
IS 456 Cl 41 torsion design |
| Serviceability | check_deflection_span_depth, check_crack_width |
Deflection + crack width |
| Shear | enhanced_shear_strength_is456 |
Enhanced shear near supports (IS 456 Cl 40.5) |
| Load Analysis | compute_bmd_sfd |
Bending moment & shear force diagrams |
Column Design (IS 456 Cl 25, 39.3–39.7)
| Category | Functions | Description |
|---|---|---|
| Unified Design | design_column_is456 |
Bounded rectangular-column orchestration |
| Axial Capacity | design_column_axial_is456 |
Short column axial capacity (Cl 39.3) |
| Uniaxial Bending | design_short_column_uniaxial_is456 |
Short column with uniaxial moment (Cl 39.5) |
| Biaxial Bending | biaxial_bending_check_is456 |
Biaxial bending check (Cl 39.6) |
| Long/Slender Columns | design_long_column_is456, calculate_additional_moment_is456 |
Slender column design with additional moment (Cl 39.7) |
| Classification | classify_column_is456, calculate_effective_length_is456, min_eccentricity_is456 |
Short/slender classification, effective length (Table 28) |
| Interaction Curve | pm_interaction_curve_is456 |
P-M interaction diagram generation |
| Helical Reinforcement | check_helical_reinforcement_is456 |
Helical reinforcement check (Cl 39.4) |
| Column Detailing | detail_column_is456 |
Reinforcement detailing (Cl 26.5.3) |
Footing Design (IS 456 Cl 34)
| Category | Functions | Description |
|---|---|---|
| Sizing | size_footing |
Footing plan dimensions from load & SBC |
| Flexure | footing_flexure |
Critical section bending design |
| One-Way Shear | footing_one_way_shear |
One-way shear check at d from face |
| Punching Shear | footing_punching_shear |
Two-way punching shear at d/2 perimeter |
| Bearing | check_bearing_pressure, bearing_stress_enhancement |
Bearing pressure & stress enhancement |
| Load Transfer | check_isolated_footing_load_transfer |
Bounded concentric bearing/dowel transfer with approved effective A1 |
The low-level functions in this section cover isolated footings. Separate canonical facades cover bounded symmetric combined-footing and property-line strap-footing cases; use their generated recipes to see every required assumption and evidence field. Raft and pile-cap foundations, settlement, geotechnical design, and lateral stability remain outside the supported routes.
Solid Slab Design (Supported Cases)
| Category | Functions | Description |
|---|---|---|
| One-Way Slab | design_one_way_slab_is456 |
Simply supported solid rectangular strip: flexure and supplied-bar checks |
| Two-Way Slab | design_two_way_slab_is456 |
One interior four-edge-continuous flexure case using accepted caller-supplied coefficients |
| Discovery | get_supported_is456_capabilities |
Machine-readable supported workflows and held cases |
The canonical two-way facade uses the library's bounded normalized coefficient lookup and interpolation for supported common panels. Compatibility functions that accept caller-supplied coefficients remain separate and require explicit source approval. Drop/ribbed slabs, openings, irregular panels, concentrated loads, and FEM remain outside the solid-slab route; use the separate regular interior flat-slab facade only for its documented bounded case.
IS 13920 Ductile Detailing
| Category | Functions | Description |
|---|---|---|
| Ductile Detailing | check_column_ductility_is13920 |
IS 13920 seismic ductile detailing checks |
Export, Import & Visualization
| Category | Functions | Description |
|---|---|---|
| BBS / Export | compute_bbs, export_bbs, compute_dxf, compute_report |
BBS, DXF, HTML reports |
| CSV Import | GenericCSVAdapter (via structural_lib.services.adapters) |
40+ column mappings |
| ETABS Integration | load_etabs_csv, create_job_from_etabs, create_jobs_from_etabs_csv, validate_etabs_csv, normalize_etabs_forces |
ETABS CSV import |
| 3D Geometry | beam_to_3d_geometry, compute_rebar_positions, compute_stirrup_positions, compute_beam_outline |
3D rebar visualization |
| Validation | validate_job_spec, validate_design_results, verify_calculation |
Input/output validation |
| Audit | compute_hash, create_calculation_certificate, generate_calculation_report |
Calculation audit trail |
Full API reference: see the online API reference.
License
MIT — see the repository license.
Engineering-use conditions and professional responsibilities are described in the repository's engineering-use conditions. The software is a design aid, not a substitute for official code publications, independent calculation, or professional approval.
Metadata
Release files for structural-lib-is456 0.29.2
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 |
|---|---|---|---|---|
| structural_lib_is456-0.29.2.tar.gz | 1.2 MB | With provenance | Details for structural_lib_is456-0.29.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| structural_lib_is456-0.29.2-py3-none-any.whl | Python 3 | none | any | Details for structural_lib_is456-0.29.2-py3-none-any.whl |
Total release size: 2.6 MB
Release files / structural_lib_is456-0.29.2.tar.gz
| Download URL | structural_lib_is456-0.29.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfd41e3d6a6b8817ccc18f35c24940b2e2987cd061515a60088e98ae7c31bbd3
|
|
BLAKE2b-256 checksum How to use checksums |
579d2b1bad340c39bd040d5805aa3db54aced172bb6a4204bbbe7fcd7e25a558
|
| 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 15, 2026.
Transparency logRelease files / structural_lib_is456-0.29.2-py3-none-any.whl
| Download URL | structural_lib_is456-0.29.2-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0020714c9f69ce3d7d33b896b04de1d57c07ba63b766c47691f45a070d32bd7a
|
|
BLAKE2b-256 checksum How to use checksums |
75f28e5ec8280074f89686da7d49c394d7fb4a6897ba0ffa9f3155ded68410da
|
| 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 15, 2026.
Transparency logSecurity for structural-lib-is456 0.29.2
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 structural_lib_is456-0.29.2.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 15, 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.