useful tools for civil engineering that are needed regularly in the daily tasks for a civil engineer
Project description
civix
A structural-engineering design library for Python where Jupyter notebooks are the primary deliverable — living calculation documents suitable for review and submission.
Status: foundation cycle. The cross-cutting infrastructure (errors, logging, notebook display, and the Quarto export pipeline) is in place; structural-domain modules (codes, elements, materials) arrive in later cycles.
Civix has two rendering paths:
civix.display— the live view inside a running notebook (self-rendering PASS/FAIL cards, headers, input tables).civix.report— the printed deliverable: scaffold a Quarto project and render a notebook to PDF/HTML/docx.
Quickstart
uv sync
make demo # executes the foundation reporting demo notebook
In a notebook:
from civix.display import setup_notebook, CheckResult, CalculationReport
setup_notebook(project_name="Office Building A", engineer="J. Doe")
report = CalculationReport(title="Beam B-101")
report.add(CheckResult("Bending", unity_ratio=0.73, demand=180.0,
capacity=245.6, demand_unit="kNm", capacity_unit="kNm"))
report # renders a styled PASS/FAIL report
Exporting a PDF
Scaffold a Quarto project, then render a notebook. Export needs the external Quarto CLI plus a LaTeX engine (e.g. TinyTeX).
from civix.report import init_calc_project, render_report
init_calc_project("calcs", include_sample=True) # writes Quarto templates
render_report("calcs/sample-calcsheet.ipynb") # -> calcs/sample-calcsheet.pdf
The scaffold also has a CLI:
uv run python -m civix.report calcs --sample
Development
make check # format, lint, type-check, test
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.1.0.tar.gz.
File metadata
- Download URL: civix-0.1.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eb24908599c116890f85261b733b35c55638f55cb840afe78dcd3ec21909089
|
|
| MD5 |
e9fa2f21fb98593494b0efa30dd0e09e
|
|
| BLAKE2b-256 |
b383f4398b2411940a5183af8fd267b05ddbb9420c4eafcebe763665ed8cd65c
|
Provenance
The following attestation bundles were made for civix-0.1.0.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.1.0.tar.gz -
Subject digest:
9eb24908599c116890f85261b733b35c55638f55cb840afe78dcd3ec21909089 - Sigstore transparency entry: 1676531891
- Sigstore integration time:
-
Permalink:
mohamadalitellawi/civix@df9ed695185e81132a6c899f110a3f0975850559 -
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@df9ed695185e81132a6c899f110a3f0975850559 -
Trigger Event:
push
-
Statement type:
File details
Details for the file civix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: civix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.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 |
acf611bffd64bc91b3b0e9df6b8967a518c3a27dc5b36b431f7a465a5a9fb92e
|
|
| MD5 |
405118704e4bf40f6ccf1e471ebd8db8
|
|
| BLAKE2b-256 |
8902ab79642638cfbeaa58a0ebadca0538c63fc4d80ca049421d569e82584c31
|
Provenance
The following attestation bundles were made for civix-0.1.0-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.1.0-py3-none-any.whl -
Subject digest:
acf611bffd64bc91b3b0e9df6b8967a518c3a27dc5b36b431f7a465a5a9fb92e - Sigstore transparency entry: 1676531904
- Sigstore integration time:
-
Permalink:
mohamadalitellawi/civix@df9ed695185e81132a6c899f110a3f0975850559 -
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@df9ed695185e81132a6c899f110a3f0975850559 -
Trigger Event:
push
-
Statement type: