Skip to main content

db-schema

Python License Tests

Python package for reading, editing, and writing DesignBuilder XML files using Pydantic and pydantic-xml.

Install

pip install dsbxml

The PyPI package is named dsbxml; the import name is db_schema.

Quick Start

from db_schema import load_model, save_model

dsb = load_model("building.xml")
dsb.name = "Updated Building"
save_model(dsb, "building_updated.xml")

Features

  • Type-safe XML handling via Pydantic v2
  • XXE attack protection built-in
  • Full DesignBuilder XML schema support including HVAC
  • Load/save XML and JSON formats

Data Model

dsbXML
└── Site
    ├── Attributes / Tables / AssemblyLibrary
    └── Buildings
        └── Building
            ├── BuildingBlocks / Zones / Surfaces
            └── HVACNetwork
                └── HVACLoops / HVACZoneGroups

Development

git clone https://github.com/DesignBuilderSoftware/db-schema
cd db-schema
pip install -e ".[dev]"
pytest

License

MIT — Bartłomiej Tokarzewski

Release files for dsbxml 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsbxml 1.0.5
File Size Uploaded
dsbxml-1.0.5.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dsbxml 1.0.5
File Interpreter ABI Platform
dsbxml-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 35.9 kB

Release files / dsbxml-1.0.5.tar.gz

Download URL dsbxml-1.0.5.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
115460d7916043569ab8c568e10d97d2cea26e367b43faa67b8b2bc39710942c
BLAKE2b-256 checksum
How to use checksums
bf46a9c1fe26497e5f55e75d696a9072ebe19ed20081f078606c28dec44c3b91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / dsbxml-1.0.5-py3-none-any.whl

Download URL dsbxml-1.0.5-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53a6d1713840762a9acf3e6e8b44cffb4e33d5b554c1ad67a7bab68ebb87510d
BLAKE2b-256 checksum
How to use checksums
2ed347e5b0641df0372b10b937ac1bc448fed4b3d274e28abe13aecab62a0e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

This release

1.0.5 This release

2 release 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