pythermalcomfort
Package to calculate several thermal comfort indices (e.g. PMV, PPD, SET, adaptive) and convert physical variables.
https://github.com/pythermalcomfort/pythermalcomfort
Category: Consumption
Sub Category: Buildings and Heating
Keywords from Contributors
air-temperature comfort pmv pmv-prediction thermal-comfort
Last synced: about 4 hours ago
JSON representation
Repository metadata
Package to calculate several thermal comfort indices (e.g. PMV, PPD, SET, adaptive) and convert physical variables.
- Host: GitHub
- URL: https://github.com/pythermalcomfort/pythermalcomfort
- Owner: pythermalcomfort
- License: mit
- Created: 2020-02-10T18:55:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-05-29T20:15:45.000Z (10 days ago)
- Last Synced: 2026-06-05T01:04:04.330Z (4 days ago)
- Language: Python
- Homepage: https://pythermalcomfort.readthedocs.io/en/latest/
- Size: 16.2 MB
- Stars: 213
- Watchers: 11
- Forks: 89
- Open Issues: 45
- Releases: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.bib
- Authors: AUTHORS.rst
README.rst
.. image:: https://github.com/pythermalcomfort/pythermalcomfort/raw/development/docs/images/pythermalcomfort-3-short.png
:align: center
:alt: pythermalcomfort logo
================
pythermalcomfort
================
``pythermalcomfort`` is a Python toolkit for computing thermal comfort indices,
heat/cold stress metrics, and thermophysiological responses.
Its implementations adhere to international standards and peer-reviewed research,
offering researchers, engineers, and building scientists reliable,
standards-compliant calculations without the burden of implementing them manually.
.. important::
When ``pythermalcomfort`` informs published work, please cite it as:
.. code-block:: text
Tartarini, F., Schiavon, S., 2020.
pythermalcomfort: A Python package for thermal comfort research.
SoftwareX 12, 100578.
https://doi.org/10.1016/j.softx.2020.100578
Key Features
============
- **Thermal Comfort Models** – PMV/PPD, adaptive comfort assessments,
SET, and more bundled into a single API surface.
- **Heat & Cold Stress Indices** – UTCI, Heat Index, Wind Chill, Humidex, and
other commonly-referenced metrics.
- **Thermophysiological Modeling** – two-node (Gagge) and multinode (JOS-3)
models for estimating core/skin temperatures and skin wettedness.
- **Standards Compliance** – Calculations based on ASHRAE 55, ISO 7730,
EN 16798, and supporting references.
- **Vectorized Inputs** – Accepts scalars, lists, or NumPy arrays; most
functions broadcast across input arrays automatically.
- **Pythonic API** – Simple, documented entry points that plug into analysis
workflows and pipelines.
- **Rich Documentation** – Tutorials, examples, and reference guides for each
supported model and index.
- **Active Development** – Frequent releases, new features, and responsive
issue resolution.
- **Open Source** – MIT licensed and developed transparently on GitHub.
Why Choose pythermalcomfort?
============================
- **Precision** – Accurate evaluations of comfort and stress that engineers can
trust.
- **Efficiency** – Eliminates repetitive code so teams can focus on insights,
not implementation details.
- **Versatility** – Useful in building science, HVAC design, biometeorology,
sports science, and thermal physiology.
- **Evidence-Based Decisions** – Supports data-driven HVAC sizing, occupant
comfort strategies, and performance benchmarking.
Installation
============
Install from PyPI:
.. code-block:: bash
pip install pythermalcomfort
For alternative installation instructions, including development builds and
optional dependencies, see the
`official docs `_.
Requirements
============
- Python 3.10+
- NumPy, SciPy, Numba, setuptools (installed automatically)
- Optional: pandas, Matplotlib, or other plotting libraries for examples and visualizations
Quick Start
===========
A few lines are all you need to get started:
.. code-block:: python
from pythermalcomfort.models import pmv_ppd_iso, utci
# Calculate PMV and PPD using ISO 7730 standard
result = pmv_ppd_iso(
tdb=25, # dry-bulb temperature in °C
tr=25, # mean radiant temperature in °C
vr=0.1, # relative air speed in m/s
rh=50, # relative humidity in %
met=1.4, # metabolic rate in met
clo=0.5, # clothing insulation in clo
model="7730-2005",
)
print(f"PMV: {result.pmv}, PPD: {result.ppd}")
# Calculate UTCI for heat stress assessment
result = utci(tdb=30, tr=30, v=0.5, rh=50)
print(result.utci)
# Most functions also accept arrays for bulk calculations
result = utci(tdb=[28, 30, 35], tr=[28, 30, 35], v=0.5, rh=50)
print(result.utci)
For a full list of models and indices, see the
`API reference `_.
Support pythermalcomfort
========================
Maintaining an open-source scientific package takes time. You can help by:
- `Sponsoring on GitHub `_
- Submitting code, docs, or tests via a pull request
- Reporting reproducible bugs or feature requests in the
`issue tracker `_
- Assisting with testing, translations, or PR reviews
- Starring or sharing the project to raise awareness
Contributions
=============
We welcome all contributions. Please read the
`contributing guide `_
before you start.
Quick checklist
---------------
* Open an issue when planning large changes to align on scope.
* Fork the repo and create a feature branch.
* Add or update tests for new behavior.
* Run linters/formatters and fix the reported issues.
* Update docs or the changelog when the public API changes.
* Submit clear, focused PRs with related issues linked.
Common commands
---------------
.. code-block:: bash
# clone your fork and add upstream remote
git clone git@github.com:your-username/pythermalcomfort.git
cd pythermalcomfort
git remote add upstream git@github.com:pythermalcomfort/pythermalcomfort.git
git fetch upstream
# create a branch and work on it
git checkout -b Feature/awesome-feature
tox # run the full matrix (slow)
tox -e py312 # run a single env
pytest -k test_name_fragment
# fix linting/formatting
ruff check --fix
ruff format
docformatter --in-place --wrap-summaries 88 --wrap-descriptions 88 pythermalcomfort/*.py
# commit and push
git add .
git commit -m "feat: short description of change"
git push origin Feature/awesome-feature
Release process
---------------
Releases are tag-driven and published via GitHub Actions Trusted Publishing
(OIDC — no ``PYPI_API_TOKEN`` or ``TEST_PYPI_API_TOKEN`` secret is required).
The standard cycle is:
1. Develop and test a release candidate on ``development`` → TestPyPI.
2. Merge ``development`` → ``master`` via pull request.
3. Finalize the version on ``master`` → PyPI.
Step 1 — pre-release on ``development`` (TestPyPI)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
git checkout development
git pull --ff-only
git fetch --tags --prune
# Start the RC cycle for the next patch release (e.g. 3.9.8 → 3.9.9rc1):
bump-my-version bump patch
# Push the bump commit and tag — this triggers tests + TestPyPI deploy:
git push
git push --tags
If the RC needs additional fixes, make the commits then create another RC:
.. code-block:: bash
bump-my-version bump pre_n # e.g. 3.9.9rc1 → 3.9.9rc2
git push
git push --tags
Step 2 — open and merge a pull request from ``development`` to ``master``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CI runs the full test suite on the PR. Once it passes, merge via GitHub.
Step 3 — finalize on ``master`` (PyPI)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
git checkout master
git pull --ff-only
git fetch --tags --prune
# Strip the rc suffix to produce the stable version.
# Replace X.Y.Z with the target version (e.g. 3.9.9):
bump-my-version bump --new-version X.Y.Z patch
# Push the bump commit and tag — this triggers tests + PyPI deploy:
git push
git push --tags
Rules:
* All RC tags (``vX.Y.ZrcN``) must be pushed from ``development``.
* All stable tags (``vX.Y.Z``) must be pushed from ``master`` after merging.
* Tag format: ``vX.Y.Z`` for stable, ``vX.Y.ZrcN`` for pre-release.
* Do not push a stable tag before the corresponding ``development`` → ``master``
PR has been merged; the CI deploy job will reject it.
Getting Help
============
* Open an issue on GitHub with a minimal reproduction in the
`issue tracker `_.
* Ask questions in PR comments for implementation guidance.
* Review the
`contribution guidelines `_
for testing, documentation, and changelog expectations.
* Consult the API reference and examples at
https://pythermalcomfort.readthedocs.io/en/latest/
Changelog
=========
A full list of changes per release is available in the
`CHANGELOG `_.
License
=======
``pythermalcomfort`` is released under the MIT License.
Stats
=====
.. start-badges
.. list-table::
:stub-columns: 1
* - Documentation
- |docs|
* - License
- |license|
* - Downloads
- |downloads|
* - Tests
- | |codecov|
| |tests|
* - Package
- | |version| |wheel|
| |supported-ver|
| |package-health|
.. |tests| image:: https://github.com/pythermalcomfort/pythermalcomfort/actions/workflows/build-test-publish.yml/badge.svg
:target: https://github.com/pythermalcomfort/pythermalcomfort/actions/workflows/build-test-publish.yml
:alt: Tests to ensure pythermalcomfort works on different Python versions and OS
.. |package-health| image:: https://img.shields.io/badge/Snyk_security-monitored-8A2BE2
:target: https://security.snyk.io/package/pip/pythermalcomfort
:alt: Snyk Security Badge
.. |license| image:: https://img.shields.io/pypi/l/pythermalcomfort?color=brightgreen
:target: https://github.com/pythermalcomfort/pythermalcomfort/blob/master/LICENSE
:alt: pythermalcomfort license
.. |docs| image:: https://readthedocs.org/projects/pythermalcomfort/badge/?style=flat
:target: https://readthedocs.org/projects/pythermalcomfort
:alt: Documentation Status
.. |downloads| image:: https://img.shields.io/pypi/dm/pythermalcomfort?color=brightgreen
:alt: PyPI - Downloads
.. |codecov| image:: https://codecov.io/github/pythermalcomfort/pythermalcomfort/coverage.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/pythermalcomfort/pythermalcomfort
.. |version| image:: https://img.shields.io/pypi/v/pythermalcomfort.svg
:alt: PyPI Package latest release
:target: https://pypi.org/project/pythermalcomfort
.. |wheel| image:: https://img.shields.io/pypi/wheel/pythermalcomfort.svg
:alt: pythermalcomfort wheel
:target: https://pypi.org/project/pythermalcomfort
.. |supported-ver| image:: https://img.shields.io/pypi/pyversions/pythermalcomfort.svg
:alt: Supported versions
:target: https://pypi.org/project/pythermalcomfort
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/pythermalcomfort.svg
:alt: Supported implementations
:target: https://pypi.org/project/pythermalcomfort
.. end-badges
Citation (CITATION.bib)
@article{Tartarini2020a,
author = {Tartarini, Federico and Schiavon, Stefano},
doi = {10.1016/j.softx.2020.100578},
issn = {23527110},
journal = {SoftwareX},
month = {jul},
pages = {100578},
publisher = {Elsevier B.V.},
title = {{pythermalcomfort: A Python package for thermal comfort research}},
url = {https://doi.org/10.1016/j.softx.2020.100578 https://linkinghub.elsevier.com/retrieve/pii/S2352711020302910},
volume = {12},
year = {2020}
}
Owner metadata
- Name: pythermalcomfort
- Login: pythermalcomfort
- Email:
- Kind: organization
- Description:
- Website: https://pythermalcomfort.readthedocs.io/en/latest/
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/280882930?v=4
- Repositories: 1
- Last ynced at: 2026-05-01T09:19:03.869Z
- Profile URL: https://github.com/pythermalcomfort
GitHub Events
Total
- Delete event: 4
- Pull request event: 3
- Issue comment event: 13
- Push event: 12
- Pull request review event: 11
- Pull request review comment event: 10
Last Year
- Delete event: 4
- Pull request event: 3
- Issue comment event: 13
- Push event: 12
- Pull request review event: 11
- Pull request review comment event: 10
Committers metadata
Last synced: 4 days ago
Total Commits: 1,333
Total Committers: 24
Avg Commits per committer: 55.542
Development Distribution Score (DDS): 0.291
Commits in past year: 309
Committers in past year: 11
Avg Commits per committer in past year: 28.091
Development Distribution Score (DDS) in past year: 0.405
| Name | Commits | |
|---|---|---|
| federico tartarini | f****i@g****m | 945 |
| AkihisaNomoto | 6****o | 133 |
| Federico Tartarini | {****} | 48 |
| royce-chen | c****i@g****m | 47 |
| Twin Gan | t****n@g****m | 30 |
| Connor Forbes | c****5@g****m | 20 |
| Yehui Huang | y****d@g****m | 19 |
| Lars Buntemeyer | l****r@h****e | 16 |
| number9527-12 | l****0@g****m | 15 |
| kmar0531 | k****4@g****m | 14 |
| Jitao Fu | 2****1@q****m | 9 |
| Jiayi Wang | j****8@u****u | 5 |
| Charles Simpson | c****n@u****k | 5 |
| Tom_Tian | t****7@g****m | 5 |
| copilot-swe-agent[bot] | 1****t | 4 |
| grjonathan | j****m@r****a | 4 |
| 周小希 | z****i@z****l | 4 |
| Jonas Kittner | j****r@r****e | 3 |
| Tyler Hoyt | t****t@g****m | 2 |
| Lorenzo Donadio | 4****o | 1 |
| benterich | 1****h | 1 |
| dependabot[bot] | 4****] | 1 |
| Freya Li | f****i@F****l | 1 |
| t-kramer | t****r@b****u | 1 |
Committer domains:
- berkeley.edu: 1
- rub.de: 1
- ryerson.ca: 1
- ucl.ac.uk: 1
- uni.sydney.edu.au: 1
- qq.com: 1
- hzg.de: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 10
Total pull requests: 22
Average time to close issues: 26 days
Average time to close pull requests: 4 days
Total issue authors: 4
Total pull request authors: 9
Average comments per issue: 3.9
Average comments per pull request: 1.32
Merged pull request: 16
Bot issues: 0
Bot pull requests: 0
Past year issues: 10
Past year pull requests: 22
Past year average time to close issues: 26 days
Past year average time to close pull requests: 4 days
Past year issue authors: 4
Past year pull request authors: 9
Past year average comments per issue: 3.9
Past year average comments per pull request: 1.32
Past year merged pull request: 16
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- FedericoTartarini (5)
- TIAN-TOM (3)
- t-kramer (1)
- JitaoFu (1)
Top Pull Request Authors
- JitaoFu (6)
- TIAN-TOM (5)
- FedericoTartarini (3)
- qdou0670 (2)
- Naif-Alsharif (2)
- caressez15 (1)
- Tong-Yuzhou (1)
- yehui-h (1)
- t-kramer (1)
Top Issue Labels
- enhancement (1)
- bug (1)
Top Pull Request Labels
- enhancement (1)
Package metadata
- Total packages: 1
-
Total downloads:
- pypi: 12,975 last-month
- Total docker downloads: 38,775
- Total dependent packages: 0
- Total dependent repositories: 4
- Total versions: 103
- Total maintainers: 1
pypi.org: pythermalcomfort
pythermalcomfort is a comprehensive toolkit for calculating thermal comfort indices, heat/cold stress metrics, and thermophysiological responses. It supports multiple models, including PMV, PPD, adaptive comfort, SET, UTCI, Heat Index, Wind Chill Index, and Humidex. The package also includes thermophysiological models like the two-node (Gagge) and multinode (JOS-3) models to estimate physiological responses such as core temperature, skin temperature, and skin wettedness.
- Homepage: https://github.com/pythermalcomfort/pythermalcomfort
- Documentation: https://pythermalcomfort.readthedocs.io/
- Licenses: MIT
- Latest release: 3.9.8 (published 14 days ago)
- Last Synced: 2026-06-02T11:31:35.640Z (7 days ago)
- Versions: 103
- Dependent Packages: 0
- Dependent Repositories: 4
- Downloads: 12,975 Last month
- Docker Downloads: 38,775
-
Rankings:
- Downloads: 3.394%
- Forks count: 6.058%
- Average: 6.235%
- Stargazers count: 6.762%
- Dependent packages count: 7.31%
- Dependent repos count: 7.649%
- Maintainers (1)
Dependencies
- docutils <0.18
- sphinx >=1.3
- sphinx-rtd-theme *
- jos3 *
- numba *
- numpy *
- scipy *
- actions/checkout v3 composite
- actions/checkout v2 composite
- actions/setup-python v4 composite
- actions/setup-python v2 composite
- actions/checkout v6.0.2 composite
- actions/setup-python v6.2.0 composite
- actions/checkout v6.0.2 composite
- actions/setup-python v6.2.0 composite
- pypa/gh-action-pypi-publish release/v1 composite
- autopep8 * develop
- blacken-docs * develop
- bump-my-version * develop
- docformatter * develop
- filelock >=3.20.3 develop
- matplotlib * develop
- pandas * develop
- pre-commit * develop
- pytest >=9.0.3 develop
- readme-renderer * develop
- requests >=2.33.0 develop
- ruff * develop
- seaborn * develop
- setuptools >=78.1.1 develop
- tabulate * develop
- twine * develop
- numba *
- numpy *
- scipy *
- setuptools *
- tox *
Score: 19.585309061705406