How waynemaranga/steelsnakes works
steelsnakes is a Python structural-steel library: users select a regional section, obtain tabulated properties, and run code-specific classification/member checks or finite-element section analysis. Regional modules cover UK, EU, US imperial/metric, BS, and developing IN support; the README also identifies AU, NZ, and JP as scaffolded. Shared base classes, factories, databases, and check result models underpin the regional APIs. Some regional links and the engine’s external solver details are documented rather than fully shown in the sampled source, so those edges cite the README or are omitted.
Main entry points: checks.py Check models · engine/sections.py Analysis engine · __init__.py EU API · base/sections.py Section model
Components 26
Regional APIs
Section catalogs
- EU Sections
src/steelsnakes/EU/sections/beams.py - UK Sections
src/steelsnakes/UK/sections/angles.py - US Sections
src/steelsnakes/US/sections/beams.py - Regional tables
src/steelsnakes/base/database.py - EU factory
src/steelsnakes/EU/factory.py - UK factory
src/steelsnakes/UK/factory.py - US factory
src/steelsnakes/US/factory.py
Design checks
- EU classification
src/steelsnakes/EU/checks/classification.py - EU member checks
src/steelsnakes/EU/checks/uls.py - EU serviceability
src/steelsnakes/EU/checks/sls.py - UK checks
src/steelsnakes/UK/checks - BS checks
src/steelsnakes/BS/checks/uls.py - US classification
src/steelsnakes/US/checks/classification.py - US member checks
src/steelsnakes/US/checks/compression.py - US metric checks
src/steelsnakes/US_Metric/checks/members.py - India checks
src/steelsnakes/IN/checks/uls.py
Shared foundation
- Section model
src/steelsnakes/base/sections.py - Check models
src/steelsnakes/base/checks.py
Section analysis
- Analysis engine
src/steelsnakes/engine/sections.py - sectionproperties
Other components
- Engineer
Connections 40
- Engineer → EU API: select section
- Engineer → UK API: select section
- Engineer → US API: select section
- EU API → EU factory: creates via
src/steelsnakes/EU/__init__.py - EU API → EU Sections: exports
src/steelsnakes/EU/__init__.py - UK API → UK factory: registers through
src/steelsnakes/UK/__init__.py - UK API → UK Sections: exports
src/steelsnakes/UK/__init__.py - EU factory → Regional tables: loads table data
- UK factory → Regional tables: uses shared database
- US factory → Regional tables: uses shared database
- EU factory → EU Sections: constructs sections
src/steelsnakes/EU/sections/beams.py - UK factory → UK Sections: constructs sections
src/steelsnakes/UK/sections/angles.py - US factory → US Sections: constructs sections
src/steelsnakes/US/sections/beams.py - Engineer → BS API: request checks
- Engineer → India API: request checks
- BS API → BS checks: exports
src/steelsnakes/BS/__init__.py - India API → India checks: exports
src/steelsnakes/IN/__init__.py - Engineer → EU classification: classify section
- Engineer → EU member checks: check member
- Engineer → EU serviceability: check serviceability
- Engineer → BS checks: check member
- Engineer → UK checks: check member
- Engineer → US classification: classify section
- Engineer → US member checks: check member
- EU classification → Check models: uses result models
src/steelsnakes/EU/checks/classification.py - EU member checks → EU classification: uses classification
src/steelsnakes/EU/checks/uls.py - EU member checks → Check models: uses result models
src/steelsnakes/EU/checks/uls.py - US classification → Check models: uses result models
src/steelsnakes/US/checks/classification.py - US member checks → US classification: uses classification
src/steelsnakes/US/checks/compression.py - US metric checks → US member checks: reuses checks
src/steelsnakes/US_Metric/checks/members.py - UK checks → Check models: uses shared models
src/steelsnakes/UK/checks/uls.py - BS checks → Check models: uses shared models
src/steelsnakes/BS/checks/uls.py - India checks → Check models: uses shared models
src/steelsnakes/IN/checks/uls.py - EU Sections → Section model: extends section model
src/steelsnakes/EU/sections/beams.py - UK Sections → Section model: extends section model
src/steelsnakes/UK/sections/angles.py - US Sections → Section model: extends section model
src/steelsnakes/US/sections/beams.py - Engineer → Analysis engine: analyze geometry
- Analysis engine → sectionproperties: performs finite elements
- Analysis engine → EU API: accepts regional section
src/steelsnakes/engine/sections.py - Analysis engine → Section model: reads section model
src/steelsnakes/engine/sections.py