QSDsan
A package for the quantitative sustainable design of sanitation and resource recovery systems.
https://github.com/qsd-group/qsdsan
Category: Industrial Ecology
Sub Category: Life Cycle Assessment
Keywords
dynamic-simulations life-cycle-assessment process-modeling quantitative-sustainable-design resource-recovery sanitation sustainability-analysis techno-economic-analysis
Keywords from Contributors
qsdsan multi-criteria-decision-analysis biochemical-process bioprocess biorefinery centrifuge chemical-engineering distillation fermentation flash
Last synced: about 23 hours ago
JSON representation
Repository metadata
Quantitative Sustainable Design (QSD) of sanitation and resource recovery systems.
- Host: GitHub
- URL: https://github.com/qsd-group/qsdsan
- Owner: QSD-Group
- License: other
- Created: 2020-09-29T15:53:46.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-05-21T01:19:15.000Z (4 days ago)
- Last Synced: 2026-05-21T07:53:23.275Z (4 days ago)
- Topics: dynamic-simulations, life-cycle-assessment, process-modeling, quantitative-sustainable-design, resource-recovery, sanitation, sustainability-analysis, techno-economic-analysis
- Language: Python
- Homepage: https://qsdsan.com
- Size: 62.7 MB
- Stars: 41
- Watchers: 4
- Forks: 22
- Open Issues: 3
- Releases: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE.txt
- Agents: AGENTS.md
README.rst
====================================================================================
QSDsan: Quantitative Sustainable Design for Sanitation and Resource Recovery Systems
====================================================================================
.. License
.. image:: https://img.shields.io/pypi/l/qsdsan?color=blue&logo=UIUC&style=flat
:target: https://github.com/QSD-Group/QSDsan/blob/main/LICENSE.txt
.. Tested Python version
.. image:: https://img.shields.io/pypi/pyversions/qsdsan?style=flat
:target: https://pypi.python.org/pypi/qsdsan
.. PyPI version
.. image:: https://img.shields.io/pypi/v/qsdsan?style=flat&color=blue
:target: https://pypi.org/project/qsdsan
.. Zenodo release DOI
.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.20256569.svg
:target: https://doi.org/10.5281/zenodo.20256569
.. Paper DOI
.. image:: https://img.shields.io/badge/qsdsan--paper-10.1039%2Fd2ew00455k-blue?style=flat
:target: https://doi.org/10.1039/d2ew00455k
.. Documentation build
.. image:: https://readthedocs.org/projects/qsdsan/badge/?version=latest
:target: https://qsdsan.readthedocs.io/en/latest
.. GitHub test and coverage of the main branch
.. image:: https://github.com/QSD-Group/QSDsan/actions/workflows/build-coverage.yml/badge.svg?branch=main
:target: https://github.com/QSD-Group/QSDsan/actions/workflows/build-coverage.yml
.. Codecov
.. image:: https://codecov.io/gh/QSD-Group/QSDsan/branch/main/graph/badge.svg?token=Z1CASBXEOE
:target: https://codecov.io/gh/QSD-Group/QSDsan
.. Binder launch of tutorials
.. image:: ./docs/source/images/custom_binder_logo.svg
:target: https://mybinder.org/v2/gh/QSD-Group/QSDsan-env/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FQSD-group%252FQSDsan%26urlpath%3Dlab%252Ftree%252FQSDsan%252Fdocs%252Fsource%252Ftutorials%26branch%3Dmain
.. .. Email subscription form
.. .. image:: https://img.shields.io/badge/news-subscribe-F3A93C?style=flat&logo=rss
.. :target: https://groups.webservices.illinois.edu/subscribe/154591
.. YouTube video
.. image:: https://img.shields.io/endpoint?color=%23ff0000&label=YouTube%20 @qsd-group&url=https%3A%2F%2Fyoutube-channel-badge-blond.vercel.app%2Fapi%2Fvideos
:target: https://www.youtube.com/@qsd-group
|
.. contents::
|
What is ``QSDsan``?
-------------------
``QSDsan`` is an open-source, community-led platform for the quantitative sustainable design (QSD) [1]_ of sanitation and resource recovery systems [2]_. Built in Python, it integrates process modeling, system simulation, techno-economic analysis (TEA), and life cycle assessment (LCA) to support transparent, reproducible, and comprehensive evaluation of emerging technologies. Leveraging BioSTEAM [3]_, the platform provides modular and extensible tools to compare treatment configurations, evaluate resource recovery opportunities, and assess energy, cost, and sustainability tradeoffs. These capabilities support the research, development, and deployment (RD&D) of early-stage technologies for advancing sustainable water management and circular resource recovery.
All systems developed with ``QSDsan`` are included in the package `EXPOsan `_ - exposition of sanitation and resource recovery systems.
Installation
------------
``QSDsan`` requires Python 3.12 or newer. The easiest way to install ``QSDsan`` is through ``pip`` in a command-line interface (e.g., terminal, PowerShell, etc.):
.. code::
pip install qsdsan
To upgrade an existing installation:
.. code::
pip install -U qsdsan
To install a specific version, replace ``X.X.X`` with the version number:
.. code::
pip install qsdsan==X.X.X
To install the latest GitHub version from the `main branch `_:
.. code::
pip install git+https://github.com/QSD-Group/QSDsan.git
To install from another fork and/or branch, replace ```` and ````:
.. code::
pip install git+https://github.com//QSDsan.git@
You can also download the package from `PyPI `_.
To get the git version (use the ``depth`` flag to choose how many commit histories you want to clone):
.. code:: bash
git clone https://github.com/QSD-Group/QSDsan.git --depth=1
Then navigate into the repository (``cd QSDsan``) and install in editable mode with development dependencies:
.. code:: bash
pip install -e ".[dev]"
.. note::
Using the ``depth`` flag will only clone the main branch by default. If you need other branches, add the ``--no-single-branch`` flag:
.. code:: bash
git clone https://github.com//QSDsan.git --depth=1 --no-single-branch
For diagram generation, ``QSDsan`` uses Graphviz. If diagrams fail to render, install Graphviz following the `official Graphviz download instructions `_ and see the `FAQ `_ for a quick check.
Documentation
-------------
You can find tutorials and documents at:
https://qsdsan.readthedocs.io
All tutorials are written using Jupyter Notebook, you can run your own Jupyter environment, or you can click the ``launch binder`` badge on the top to launch the environment in your browser.
Many tutorials have companion video walkthroughs on our `YouTube channel `_. The videos were recorded against earlier versions of ``QSDsan`` and remain useful for the concepts and the big picture, but some APIs may be outdated. Refer to the notebooks for the authoritative reference for syntax and API.
Authors and Contributing
------------------------
``QSDsan`` and its related packages are developed by the Quantitative Sustainable Design Group and the broader community. `Yalin Li `_ is the currently maintainer. See `commit history `_ for contributors who have contributed to the repository.
If you want to contribute to ``QSDsan``, please refer to the `Contributing Guidelines `_ section of the documentation for instructions and guidelines.
License Information
-------------------
Please refer to the ``LICENSE.txt`` for information on the terms & conditions for usage of this software, and a DISCLAIMER OF ALL WARRANTIES.
References
----------
.. [1] Li, Y.; Zhang, X.; Morgan, V.L.; Lohman, H.A.C.; Rowles, L.S.; Mittal, S.; Kogler, A.; Cusick, R.D.; Tarpeh, W.A.; Guest, J.S. QSDsan: An integrated platform for quantitative sustainable design of sanitation and resource recovery systems. Environ. Sci.: Water Res. Technol. 2022, 8 (10), 2289-2303. https://doi.org/10.1039/d2ew00455k.
.. [2] Li, Y.; Trimmer, J.T.; Hand, S.; Zhang, X.; Chambers, K.G.; Lohman, H.A.C.; Shi, R.; Byrne, D.M.; Cook, S.M.; Guest, J.S. Quantitative Sustainable Design (QSD): A Methodology for the Prioritization of Research, Development, and Deployment of Technologies. (Tutorial Review) Environ. Sci.: Water Res. Technol. 2022, 8 (11), 2439–2465. https://doi.org/10.1039/D2EW00431C.
.. [3] Cortés-Peña, Y.; Kumar, D.; Singh, V.; Guest, J.S. BioSTEAM: A Fast and Flexible Platform for the Design, Simulation, and Techno-Economic Analysis of Biorefineries under Uncertainty. ACS Sustainable Chem. Eng. 2020, 8 (8), 3302–3310. https://doi.org/10.1021/acssuschemeng.9b07040.
.. create custom binder badge: https://mybinder.readthedocs.io/en/latest/howto/badges.html
Owner metadata
- Name: Quantitative Sustainable Design (QSD) Group
- Login: QSD-Group
- Email: quantitative.sustainable.design@gmail.com
- Kind: organization
- Description: Tools for quantitative sustainable design (QSD) to guide the research, development, and deployment of technologies and inform decision-making.
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/68925850?v=4
- Repositories: 5
- Last ynced at: 2023-03-08T04:29:41.725Z
- Profile URL: https://github.com/QSD-Group
GitHub Events
Total
- Delete event: 6
- Pull request event: 13
- Fork event: 6
- Issues event: 7
- Watch event: 7
- Issue comment event: 59
- Push event: 366
- Pull request review event: 1
- Create event: 10
- Commit comment event: 7
Last Year
- Delete event: 3
- Pull request event: 5
- Fork event: 5
- Watch event: 5
- Issue comment event: 12
- Push event: 84
- Create event: 2
Committers metadata
Last synced: 7 days ago
Total Commits: 2,105
Total Committers: 13
Avg Commits per committer: 161.923
Development Distribution Score (DDS): 0.456
Commits in past year: 127
Committers in past year: 3
Avg Commits per committer in past year: 42.333
Development Distribution Score (DDS) in past year: 0.126
| Name | Commits | |
|---|---|---|
| Yalin | z****i@g****m | 1145 |
| Joy Zhang | j****4@g****m | 525 |
| RaiSaumitra | 8****a | 286 |
| Smiti Mittal | 5****l | 33 |
| Ga-Yeong Kim | g****5@g****m | 32 |
| Victoria Morgan | v****n@i****u | 28 |
| Jianan Feng | j****2@i****u | 25 |
| haclohman | 6****n | 16 |
| lane-to | 9****o | 6 |
| Steiner | p****r@e****h | 4 |
| Yoel | y****s@g****m | 2 |
| BenGillen1998 | b****8@g****m | 2 |
| lsrowles | s****c@g****m | 1 |
Committer domains:
- illinois.edu: 2
- eawag.ch: 1
Issue and Pull Request metadata
Last synced: 7 days ago
Total issues: 59
Total pull requests: 77
Average time to close issues: 3 months
Average time to close pull requests: 13 days
Total issue authors: 12
Total pull request authors: 9
Average comments per issue: 2.78
Average comments per pull request: 1.52
Merged pull request: 70
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: 28 minutes
Past year issue authors: 2
Past year pull request authors: 1
Past year average comments per issue: 2.0
Past year average comments per pull request: 1.0
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- yalinli2 (47)
- yoelcortes (2)
- vlmorgan93 (1)
- hccroll (1)
- aiical (1)
- joyxyz1994 (1)
- jbolorinos (1)
- pengxiao01 (1)
- GaYeongKim (1)
- akuban26 (1)
- Clubiy (1)
- mckfarm (1)
Top Pull Request Authors
- yalinli2 (48)
- joyxyz1994 (12)
- jiananf2 (6)
- yoelcortes (4)
- GaYeongKim (2)
- BenGillen1998 (2)
- philthestone (1)
- stetsonrowles (1)
- smitimittal (1)
Top Issue Labels
- enhancement (5)
- task list (3)
- documentation (3)
- good first issue (1)
Top Pull Request Labels
Package metadata
- Total packages: 3
-
Total downloads:
- pypi: 1,120 last-month
- Total dependent packages: 1 (may contain duplicates)
- Total dependent repositories: 1 (may contain duplicates)
- Total versions: 84
- Total maintainers: 1
proxy.golang.org: github.com/qsd-group/qsdsan
- Homepage:
- Documentation: https://pkg.go.dev/github.com/qsd-group/qsdsan#section-documentation
- Licenses: other
- Latest release: v1.4.3 (published 8 months ago)
- Last Synced: 2026-05-07T22:03:47.232Z (17 days ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
proxy.golang.org: github.com/QSD-Group/QSDsan
- Homepage:
- Documentation: https://pkg.go.dev/github.com/QSD-Group/QSDsan#section-documentation
- Licenses: other
- Latest release: v1.4.3 (published 8 months ago)
- Last Synced: 2026-05-07T22:03:47.366Z (17 days ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
pypi.org: qsdsan
Quantitative Sustainable Design for sanitation and resource recovery systems
- Homepage: https://github.com/QSD-Group/QSDsan
- Documentation: https://qsdsan.readthedocs.io
- Licenses: UIUC
- Latest release: 1.4.4 (published 19 days ago)
- Last Synced: 2026-05-07T22:03:45.908Z (17 days ago)
- Versions: 64
- Dependent Packages: 1
- Dependent Repositories: 1
- Downloads: 1,120 Last month
-
Rankings:
- Dependent packages count: 3.271%
- Forks count: 10.957%
- Stargazers count: 11.713%
- Average: 12.333%
- Downloads: 13.49%
- Dependent repos count: 22.233%
- Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- SALib >=1.4.5
- furo *
- ipywidgets *
- jupyterlab-widgets *
- matplotlib <=3.6.0
- nbsphinx *
- pandoc *
- seaborn *
- sphinx *
- sphinx-copybutton *
- sphinx-design *
- sympy >=1.8
- widgetsnbextension *
- SALib >=1.4.5
- biosteam >=2.36.1
- matplotlib >=3.3.2
- pandas >=1.3.2
- scikit-learn *
- scipy >=1.7.1
- seaborn *
- sympy >=1.8
- thermosteam >=0.32.0
Score: 13.37289794611824