UK Building Mathematics (uk-building-math)
Lightweight mathematical constants and calculation models calibrated for United Kingdom construction benchmarks, British Standards (BS 8500, BS EN 771-1), and standard metric building practices.
Maintained by the engineering team at BuildingCosts.co.uk — the open-access UK construction cost estimation platform.
📌 Features
- British Standards Compliant:
- Standard UK metric brick dimensions ($215 \times 102.5 \times 65\text{ mm}$ with $10\text{ mm}$ mortar joints $\to 60\text{ bricks}/m^2$).
- Concrete mass constant of $2,400\text{ kg}/m^3$ for structural C20/Gen 1 mixes under BS 8500.
- Sub-base MOT Type 1 aggregate compaction density calibrated at $2.2\text{ tonnes}/m^3$.
- Zero Dependencies: Pure, native Python 3 compatible with any environment.
- RICS NRM Benchmarking: Includes 2026 indicative macro rebuild rates for insurance reinstatement models.
🛠️ Installation
pip install uk-building-math
🚀 Quick Usage
1. Concrete Slab & Bag Estimator
Calculates net volume ($m^3$), total mass, and required $25\text{ kg}$ ballast and cement bags for a standard $1:5$ on-site mix.
from uk_building_math import calculate_concrete_volume
# Calculate for a 4m x 3m patio base at 100mm (0.1m) depth with 10% waste
result = calculate_concrete_volume(length_m=4.0, width_m=3.0, depth_m=0.1, waste_ratio=0.10)
print(result)
# {
# 'volume_m3': 1.32,
# 'total_weight_kg': 3168,
# 'ballast_bags_25kg': 111,
# 'cement_bags_25kg': 23
# }
2. Brickwork & Cavity Wall Estimator
Calculates standard UK facing bricks, 100mm blocks, and dry mortar tonnage.
from uk_building_math import calculate_brickwork
# 6m long by 2.8m high cavity wall with 5% waste
wall = calculate_brickwork(length_m=6.0, height_m=2.8, cavity_wall=True, waste_ratio=0.05)
print(wall)
# {
# 'wall_area_m2': 16.8,
# 'standard_bricks': 1059,
# 'mortar_tonnes': 0.88,
# 'blocks_100mm': 177
# }
🔗 Project Links
- Official Web Platform & Calculators: https://buildingcosts.co.uk
- GitHub Repository: https://github.com/buildingcostsuk/uk-building-math
- Documentation & Standards: https://buildingcosts.co.uk/about-us/
Metadata
Release files for uk-building-math 1.0.0
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 |
|---|---|---|---|---|
| uk_building_math-1.0.0.tar.gz | 4.4 kB | Without provenance | Details for uk_building_math-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uk_building_math-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for uk_building_math-1.0.0-py3-none-any.whl |
Total release size: 9.2 kB
Release files / uk_building_math-1.0.0.tar.gz
| Download URL | uk_building_math-1.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0f3e1af7a49036c1e16a6e3ad0546ecd7253929e2e79ea45d193c829b76587e
|
|
BLAKE2b-256 checksum How to use checksums |
a7faa414baf86659abaf3619072e2d10a9707b9ad556ce8ee74ad38e3c4ca000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / uk_building_math-1.0.0-py3-none-any.whl
| Download URL | uk_building_math-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81da175affc5857ae5b7cdea97f65a8d54bb3b70ce692e3214d3ca95b98b7b68
|
|
BLAKE2b-256 checksum How to use checksums |
69c6ac688c4f8792387310d3ffa2d09984ae15fa347d6a473cebb7bc6b46489b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Security for uk-building-math 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.