Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

civix-0.1.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

civix-0.1.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

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

Hashes for civix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9eb24908599c116890f85261b733b35c55638f55cb840afe78dcd3ec21909089
MD5 e9fa2f21fb98593494b0efa30dd0e09e
BLAKE2b-256 b383f4398b2411940a5183af8fd267b05ddbb9420c4eafcebe763665ed8cd65c

See more details on using hashes here.

Provenance

The following attestation bundles were made for civix-0.1.0.tar.gz:

Publisher: release.yml on mohamadalitellawi/civix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for civix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acf611bffd64bc91b3b0e9df6b8967a518c3a27dc5b36b431f7a465a5a9fb92e
MD5 405118704e4bf40f6ccf1e471ebd8db8
BLAKE2b-256 8902ab79642638cfbeaa58a0ebadca0538c63fc4d80ca049421d569e82584c31

See more details on using hashes here.

Provenance

The following attestation bundles were made for civix-0.1.0-py3-none-any.whl:

Publisher: release.yml on mohamadalitellawi/civix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page