useful tools for civil engineering that are needed regularly in the daily tasks for a civil engineer
Project description
civix
Python tools for civil and structural engineering.
civix is a flat collection of domain modules for day-to-day structural work — code-based
design checks, BIM/model interop, and calc-sheet reporting. Design functions are pure and
return typed result dataclasses that carry their own demand/capacity ratio and pass/fail
verdict, so a calculation is auditable end to end.
What's inside
| Module | Purpose |
|---|---|
civix.design |
ACI 318-25 structural design checks (concrete) — pure functions returning result dataclasses |
civix.loads |
Load combination generation |
civix.etabs |
ETABS .NET API automation via pythonnet (Windows) |
civix.ifc |
IFC model querying via ifcopenshell |
civix.geom |
Geometry helpers; reads/writes Rhino .3dm (rhino3dm) |
civix.gh |
Grasshopper snippet helpers |
civix.reports |
Quarto CLI wrapper: render .qmd/.ipynb to PDF/HTML |
civix.notebook |
Display helpers (show_check/show_report/calc_block) for Jupyter |
civix.core |
Config, logging, errors, paths |
Units are carried in variable names (fck_MPa, As_mm2, Mu_Nmm); design compute is in
N·mm internally and converts to display units only at the notebook/report boundary.
Installation
pip install civix # core only (numpy, loguru, pyyaml, plotly, openpyxl)
pip install "civix[etabs]" # + ETABS automation (Windows)
pip install "civix[ifc]" # + IFC parsing (ifcopenshell)
pip install "civix[geom]" # + Rhino/Grasshopper geometry
pip install "civix[notebook]" # + Jupyter notebook + handcalcs rendering
pip install "civix[streamlit]" # + Streamlit app
pip install "civix[all]" # everything
With uv:
uv add civix
uv add "civix[etabs,ifc,geom]"
uv add "civix[all]"
Quickstart
from civix.design.aci318_25.beams import design_flexure
# Singly-reinforced RC beam flexure (ACI 318-25), inputs in N·mm
res = design_flexure(
b_mm=300, d_mm=540, fck_MPa=30, fy_MPa=420, As_mm2=1500, Mu_Nmm=220e6
)
print(f"phiMn = {res.phiMn_Nmm / 1e6:.1f} kN·m DCR = {res.dcr:.3f} "
f"{'PASS' if res.passed else 'FAIL'} ({res.code_ref})")
In a notebook, render the verdict as a card:
from civix.notebook import show_check
show_check("Beam B1 — flexure", res)
Check your environment and optional runtimes (real load-and-one-operation smoke checks):
civix-health # dependency + environment check
civix-init-config # write a default civix.yaml to the current directory
Logging
civix is silent by default — it calls logger.disable("civix") at import and never
attaches a sink itself. To see its logs, opt in from your notebook or script:
import sys
from loguru import logger
logger.enable("civix")
logger.remove()
logger.add(sys.stderr, level="INFO")
Streamlit app
uv run streamlit run streamlit_app/app.py
Documentation
docs/developer_manual.md— architecture, patterns, and design rationaleCONTRIBUTING.md— branch strategy and release workflowCLAUDE.md— binding conventions (the single source of truth)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file civix-0.0.22.tar.gz.
File metadata
- Download URL: civix-0.0.22.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abeca50f4c461dce515eeca62438f55251211bb912547e28976b77fdcc32c101
|
|
| MD5 |
76efd053b964f751f39ce966d6f68c24
|
|
| BLAKE2b-256 |
b5c64f6470b2b24709f7d229bb2de6156e11e5ebe4184a98e27e95ef3b2b6254
|
Provenance
The following attestation bundles were made for civix-0.0.22.tar.gz:
Publisher:
release.yml on mohamadalitellawi/civix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civix-0.0.22.tar.gz -
Subject digest:
abeca50f4c461dce515eeca62438f55251211bb912547e28976b77fdcc32c101 - Sigstore transparency entry: 1662172163
- Sigstore integration time:
-
Permalink:
mohamadalitellawi/civix@d8a76e52419bff344c8c58314ed69974ee1b1ef2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mohamadalitellawi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d8a76e52419bff344c8c58314ed69974ee1b1ef2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file civix-0.0.22-py3-none-any.whl.
File metadata
- Download URL: civix-0.0.22-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
666ec4db469ff209dcc1049be82a67b15ce2ce6747aa71cf18dcac74ece64f56
|
|
| MD5 |
87f2e625ccea2c5899c8d854ddb0f330
|
|
| BLAKE2b-256 |
1677b7ea0af6e24d76489d9517f216b1f822e8bfd549c4ed4620b67a9e01b4a3
|
Provenance
The following attestation bundles were made for civix-0.0.22-py3-none-any.whl:
Publisher:
release.yml on mohamadalitellawi/civix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civix-0.0.22-py3-none-any.whl -
Subject digest:
666ec4db469ff209dcc1049be82a67b15ce2ce6747aa71cf18dcac74ece64f56 - Sigstore transparency entry: 1662172339
- Sigstore integration time:
-
Permalink:
mohamadalitellawi/civix@d8a76e52419bff344c8c58314ed69974ee1b1ef2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mohamadalitellawi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d8a76e52419bff344c8c58314ed69974ee1b1ef2 -
Trigger Event:
push
-
Statement type: