Skip to main content

The Syndemic Lab's RESPOND Simulation Python Extension Module.

Project description

RESPONDPY

Coverage Tests Nox Pylint PyPI Deploy

:snake: Welcome to RESPOND for Python! :snake: This repository acts as a set of python bindings for the Syndemics Lab's RESPOND model. As such, it is simply a set of wrappers and helper functions for ease of use in various lab projects. Our project can be installed from PyPI or built locally.

RESPOND

RESPOND is a simulation model developed by the Syndemics Lab at Boston Medical Center to study the various cost-effectiveness impacts of different treatment options for substance use disorders (SUD). While originally built to study opioid use disorder (OUD), RESPOND is a Markov model with the ability to scale to encompass various drug use behaviors and treatment approaches or venues. This repository adds bindings and helper functions to easily work with SQLite. The original RESPOND model is written in R and C++ and can be found on GitHub.

Pybind11

This tool makes use of the popular tool Pybind11. From here, we expose bindings for users to connect to via Python.

Building and Installing

The bindings are available on PyPI! They can be installed via pip install respondpy.

If you want to build the project locally, we make use of scikit-build-core along with CMake to build the library. To build locally, you can clone the repository here.

git clone git@github.com:SyndemicsLab/respondpy.git
uv sync
uv build

This results in a wheel and tar.gz being placed in a dist/ directory. From here, we use uv to include it in other projects. Future work would be to allow for building device independent wheels and publishing to PyPI where we could install anywhere.

Supported OSes

We are currently working on supporting as many OSes as possible. As these are bindings for a C++ project, we are limited in our capacity. For the moment, we are generating many linux builds for python versions >= 3.10. We do not have a Windows or Mac build at the present.

Project details


Download files

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

Source Distribution

respondpy-0.2.0.tar.gz (185.9 kB view details)

Uploaded Source

File details

Details for the file respondpy-0.2.0.tar.gz.

File metadata

  • Download URL: respondpy-0.2.0.tar.gz
  • Upload date:
  • Size: 185.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for respondpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d9784f17c1bbb8fcbacc8a27f8cca1c7b3685ca20a2b76173a9d2d793571d3a3
MD5 72b1b9250198afce78d7381626c8c2f6
BLAKE2b-256 ff00372e78138af2f27fe615dc7c2cf929cdeb3a67c2c80da125c0b4c7c18296

See more details on using hashes here.

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