Sandbox repository to test core Ladybug Tools Python libraries for building energy modeling workflows, with a focus on Honeybee and Dragonfly.
This project is a practical playground for:
- Creating simple building geometry in Python.
- Assigning basic energy properties (programs, HVAC, loads).
- Converting models to simulation-ready formats.
- Exporting IDF and Honeybee JSON files.
The codebase currently contains exploratory scripts and work-in-progress files, so treat it as a prototyping environment rather than a production package.
building.py: Small customBuildingclass used for local geometry metadata experiments.main.py: Minimal Python entry point placeholder.idf1.idf: Example EnergyPlus IDF output file.scripts/individual-building-simulation-using-Honeybee-Dragonfly.py: Working Dragonfly to Honeybee to IDF example.scripts/individual-building-simulation-using-Honeybee-Only-ToDo.py: Honeybee-only draft script (French comments).scripts/individual-building-simulation-using-Honeybee-Only-ToDo2.py: Honeybee-only draft script (incomplete/broken imports and execution path).scripts/individual-building-simulation-using-Honeybee-Only-ToDo3.py: Honeybee Energy draft for generating a base IDF.
- Python
>=3.12(as declared inpyproject.toml). - Ladybug Tools Python packages (current project dependency includes
lbt-dragonfly). - For full EnergyPlus simulation runs in some scripts, a valid EnergyPlus installation may also be required.
This repo appears to use uv for environment management.
uv sync
source .venv/bin/activateIf you prefer pip, install at least:
pip install lbt-dragonflyDepending on which script you run, you may also need additional Honeybee-related packages (for example honeybee-energy, honeybee-radiance, honeybee-openstudio).
Run the Dragonfly example:
python scripts/individual-building-simulation-using-Honeybee-Dragonfly.pyExpected result:
- One or more
idf*.idffiles are created in the repository root. - Terminal output ends with
IT WORKS!!!.
scripts/individual-building-simulation-using-Honeybee-Dragonfly.py: Best candidate for a first run.scripts/individual-building-simulation-using-Honeybee-Only-ToDo.py: Educational draft, useful as reference.scripts/individual-building-simulation-using-Honeybee-Only-ToDo2.py: Contains unresolved issues and should be fixed before use.scripts/individual-building-simulation-using-Honeybee-Only-ToDo3.py: Draft API usage that may require adjustments to match installed Honeybee package versions.
idf*.idf: EnergyPlus input files generated by scripts.mon_batiment_honeybee.json: Honeybee model export from the Honeybee-only draft.
- Normalize script naming to snake_case.
- Turn scripts into a small importable package with a CLI.
- Add pinned dependencies for reproducible environments.
- Add automated checks (lint/type/test) and at least one regression test script.
This repository is licensed under the terms of the LICENSE file.