Skip to main content

Quantitative Sustainable Design for sanitation and resource recovery systems

Project description

https://img.shields.io/pypi/l/qsdsan?color=blue&logo=UIUC&style=flat https://img.shields.io/pypi/pyversions/qsdsan?style=flat https://img.shields.io/pypi/v/qsdsan?style=flat&color=blue https://zenodo.org/badge/doi/10.5281/zenodo.20256569.svg https://img.shields.io/badge/qsdsan--paper-10.1039%2Fd2ew00455k-blue?style=flat https://readthedocs.org/projects/qsdsan/badge/?version=latest https://github.com/QSD-Group/QSDsan/actions/workflows/build-coverage.yml/badge.svg?branch=main https://codecov.io/gh/QSD-Group/QSDsan/branch/main/graph/badge.svg?token=Z1CASBXEOE ./docs/source/images/custom_binder_logo.svg https://img.shields.io/endpoint?color=%23ff0000&label=YouTube%20@qsd-group&url=https%3A%2F%2Fyoutube-channel-badge-blond.vercel.app%2Fapi%2Fvideos


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.):

pip install qsdsan

To upgrade an existing installation:

pip install -U qsdsan

To install a specific version, replace X.X.X with the version number:

pip install qsdsan==X.X.X

To install the latest GitHub version from the main branch:

pip install git+https://github.com/QSD-Group/QSDsan.git

To install from another fork and/or branch, replace <USERNAME_OF_THE_FORK> and <BRANCH_NAME>:

pip install git+https://github.com/<USERNAME_OF_THE_FORK>/QSDsan.git@<BRANCH_NAME>

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):

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:

pip install -e ".[dev]"

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

qsdsan-1.5.2.tar.gz (631.1 kB view details)

Uploaded Source

Built Distribution

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

qsdsan-1.5.2-py3-none-any.whl (699.4 kB view details)

Uploaded Python 3

File details

Details for the file qsdsan-1.5.2.tar.gz.

File metadata

  • Download URL: qsdsan-1.5.2.tar.gz
  • Upload date:
  • Size: 631.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qsdsan-1.5.2.tar.gz
Algorithm Hash digest
SHA256 0bed0dc815f2da7f4fc702d67e5ad03313637943706f5d1811dac94807c64301
MD5 14ae5200d9b464b9ad7d959c588b320e
BLAKE2b-256 a3c95801d6370fcd89366352d083a8bc1ff35fdc7cafdf6d432d77efaefbfe66

See more details on using hashes here.

Provenance

The following attestation bundles were made for qsdsan-1.5.2.tar.gz:

Publisher: release.yml on QSD-Group/QSDsan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qsdsan-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: qsdsan-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 699.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qsdsan-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b796830a0fd152759ab2cf52bfeef80edb9f3f7faa309824477bffe947bfd8bd
MD5 b13e3534d7283b5cd608ea2a027279c8
BLAKE2b-256 fc35a967b8f4b81b1e009fe93730bc9a508a450028b9b4ee4f63bc7f222351f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for qsdsan-1.5.2-py3-none-any.whl:

Publisher: release.yml on QSD-Group/QSDsan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page