Skip to content

lhegstrom/PyASCVD

Repository files navigation

PyASCVD 🫀

2013 ASCVD (Atherosclerotic and Cardiovascular Disease) risk estimator plus calcualtor

Python- 3.7 --> 3.12 Rust

Introduction

The PyASCVD package implements the American College of Cardiology's Risk Estimator Plus Equation in python. It's a mixed Rust and Python module, leveraging the speed of Rust for equation implementation and the flexibility of Python for ease of use.

Installation

Requirements:

  • Python 3.7 to 3.12 on a Silicon Mac / Linux system (more compatibility coming soon)

To install the package, pip install using:

pip install pypascvd

TL;DR

import pyascvd

pyascvd.ascvd(
        age=40,
        sex="male",
        race="white",
        systolic_blood_pressure=120,
        total_cholesterol=213,
        hdl_cholesterol=50,
        diabetes=False,
        smoker=False,
        on_hypertension_treatment=False,
)

Examples

Coming soon

Program Structure

This is a mixed Rust and Python module.

The rust source code is used to implement the equations. This is a lower level language that requires compilation prior to being run -- and thus is many times faster than pure python.

The rust source code is located in the /src directory.

The python source is located in the /pyascvd directory.

Unit tests are implemented in the /tests directory using slash.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published