Skip to main content

Python implementation of 2013 ACC ASCVD Risk Estimator Plus Equation

Project description

PyASCVD :anatomical_heart:

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.

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

pyascvd-0.1.0.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distributions

pyascvd-0.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (317.5 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pyascvd-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (320.9 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyascvd-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (321.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyascvd-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (321.1 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyascvd-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp38-cp38-macosx_11_0_arm64.whl (319.9 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyascvd-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyascvd-0.1.0-cp37-cp37m-macosx_11_0_arm64.whl (320.0 kB view hashes)

Uploaded CPython 3.7m macOS 11.0+ ARM64

Supported by

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