Skip to main content

📐 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.

Download files

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

Source Distribution

floorplan-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

floorplan-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file floorplan-0.1.0.tar.gz.

File metadata

  • Download URL: floorplan-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for floorplan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 753fb8c10e050fc428cd1a753a787042c35f3fed91a34b59c3b867c386744d36
MD5 8f6c4e9460fc5dd3a68189bdc92a9469
BLAKE2b-256 e270f744fd2ed60fc4eb160fdfa57087d747c356c426aea48b3c7daeff855452

See more details on using hashes here.

File details

Details for the file floorplan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: floorplan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for floorplan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6567b2a989d819f18454c3d9fe52a536845043796894372302f6a4b1fbac38c0
MD5 286a02277920f89f76154dbe57f95563
BLAKE2b-256 cecf8bd2bf8db6bdced2334ec812d919a39e1307f3fe5b7ed9f8a3adcc70e5cc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page