📐 floorplan
A lightweight, zero-dependency Python utility for structuring architectural floor plans, managing rooms, computing usable floor area (including attic slopes), and checking room distributions.
⚡ Installation
pip install floorplan
🚀 Quickstart
import floorplan
plan = floorplan.FloorPlan(name="Apartment 4B")
# Add standard rectangular rooms (length, width in meters)
plan.add_room("Living Room", length=5.5, width=4.0)
plan.add_room("Bedroom", length=4.0, width=3.2)
plan.add_room("Bathroom", length=2.5, width=2.0)
# Add attic room with sloped ceiling calculation
# (e.g. 20 sqm total floor area, but 5 sqm has height < 1.4m and 3 sqm is 1.4m - 2.2m)
plan.add_sloped_room(
name="Attic Studio",
total_floor_area=20.0,
area_below_140cm=5.0,
area_between_140_and_220cm=3.0
)
print(f"Total Gross Floor Area: {plan.total_gross_area:.2f} m²")
print(f"Total Usable Area: {plan.total_usable_area:.2f} m²")
print(plan.room_breakdown())
⚠️ Disclaimer
This package provides mathematical modeling for spatial layouts. It does not replace licensed architectural surveying, certified construction obmiar standards, or local building code verifications. Always consult a certified architect or surveyor for official legal documentation.
Metadata
Release files for floorplan 0.1.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 | |
|---|---|---|---|---|
| floorplan-0.1.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| floorplan-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / floorplan-0.1.0.tar.gz
| Download URL | floorplan-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
753fb8c10e050fc428cd1a753a787042c35f3fed91a34b59c3b867c386744d36
|
|
BLAKE2b-256 checksum How to use checksums |
e270f744fd2ed60fc4eb160fdfa57087d747c356c426aea48b3c7daeff855452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / floorplan-0.1.0-py3-none-any.whl
| Download URL | floorplan-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6567b2a989d819f18454c3d9fe52a536845043796894372302f6a4b1fbac38c0
|
|
BLAKE2b-256 checksum How to use checksums |
cecf8bd2bf8db6bdced2334ec812d919a39e1307f3fe5b7ed9f8a3adcc70e5cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for floorplan 0.1.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.