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
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
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
Built Distributions
Hashes for pyascvd-0.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e172387a5a97bcd237d9889be1981deb2f42af9008ab0caec82b8973d08939 |
|
MD5 | 08a950373fc9df8bb3d966fc7b3d93e1 |
|
BLAKE2b-256 | 8a5c3bb861fcccbcf43e1e1e3f7aad065736a686b910d1bfe516c12a47fcbce8 |
Hashes for pyascvd-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21843ae54def4b995773ed0d225292ab97ff9b73acfa3ccff8e7650f14d74a1c |
|
MD5 | f17ccd49cf9daa9ca3f7bac9d9adec5c |
|
BLAKE2b-256 | b083a9d8abb9c032c7d40a8bd9ccbfc176fb6b4169a1a03fc394608d0c7d32b3 |
Hashes for pyascvd-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35356fdbf2a2590cdc26deab84fefc390bd4f895b811bee7328a31123d81fb29 |
|
MD5 | cf9afa0dff4055a1ac96073ce9980974 |
|
BLAKE2b-256 | 99a2683eaeaadc84f8e806e80e12073412b7545db9a999ae6c6de726bdfbcf37 |
Hashes for pyascvd-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcdded5ce580c251e73396dd5e16349d82b7f61415dbadb350fe245b1ee02b52 |
|
MD5 | a059157982cc80ae03be1757552d67ca |
|
BLAKE2b-256 | 49e3973212c951bec19ad60668bab6f633700fc3b3f938075091be7eb38d9e9f |
Hashes for pyascvd-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a9527f9f7ef4c619c6569c324cb17c8bf8fa68efccb536e0eff4c687a02c83 |
|
MD5 | d34259b5c1b95d25c62e48a91128c097 |
|
BLAKE2b-256 | 745fcb309107c23cd170148374d792aec2045958ec38b9d78eca3d706bd01147 |
Hashes for pyascvd-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dcc460629981fcb5a54a5f7519960741a6070f38132f97fb9b56d9bacb365fa |
|
MD5 | 91d4c213094d1374c755257108b68d57 |
|
BLAKE2b-256 | 17eb59799170cee5e189fbbbfca7f18cdc68a6fc61a92c64aa7a013285e01d34 |
Hashes for pyascvd-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5b13ba82ae23410a1fe9d26b5a840431469153cf8d5bf901695c47ca402f72 |
|
MD5 | 52a65e1e8c0e279981625fabbe4fe9db |
|
BLAKE2b-256 | 56de663a66053df034547ae513430d856c0c83ffdcc370e66061a3464ebfa3d5 |
Hashes for pyascvd-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf6066ea54c54ab539335c264a8962577ce519369df6bf3e4e67b5c88ae31c2b |
|
MD5 | b7a5a817174a7876287cea6c871ce04e |
|
BLAKE2b-256 | 92e260a58bd42bfbf818a4edb51a2cf637f2ea879d9f1936b62c7dc422a75308 |
Hashes for pyascvd-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a3edab9a40727b3b819748ac76c076ecd7ea6486a27cb922cac635e1f31347 |
|
MD5 | 5effcb14873803b89c4894b52d51ad17 |
|
BLAKE2b-256 | a8b7f36379a01eaf5f3d431974945d0b410b05b6e6e36f5f1796b7e9c8e4ef9a |
Hashes for pyascvd-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c8aa6a2bf09229132e39ebf9ecea6b3d1aca1dffb7c9011be301b291a7f1a6 |
|
MD5 | bacaa4673d4cf8a58fd7b00a640e1eae |
|
BLAKE2b-256 | 1244cf7dc0e917b7b22fb921a0004c77eca8c7344be3257c24f32d104a992021 |
Hashes for pyascvd-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389eb8d58a2f1fcf1977e9be30b0f2c1eaade43aa6b74047f2bf26992f02c99a |
|
MD5 | dc793c4d7233cec223a45fbe500a5b0c |
|
BLAKE2b-256 | 741172bdf11836121b1f55bc17e6950c66fa5a219c8c76d284d7755f03eeab5b |
Hashes for pyascvd-0.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af49d2935d3a8b8407a0b1b681b9b6832e0b4b5600e92d9ca99c027870256db0 |
|
MD5 | ef770ec2b39a307c31f1379c55a00e5b |
|
BLAKE2b-256 | 17dad096cd5431463b6298c0f7cccc7fbac3b80ac15131686ef1d803aa6ce1c4 |
Hashes for pyascvd-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8462700b81405e8d2b3e5c3e02fafbbde27a48df287808f7fb335f764a6807ea |
|
MD5 | 91901e5d48acd7d0aa9ada6897b97837 |
|
BLAKE2b-256 | 7b3d877f90a359ce3438f9cf0aa71146df974a2412449bbed0a9c72cf72ae573 |
Hashes for pyascvd-0.1.0-cp37-cp37m-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c32ea785cb8ee6f86514d49e265cde0813381ec029284f2a3ccf44fc201099 |
|
MD5 | 538999d3e9cd3391fb850972b9a70271 |
|
BLAKE2b-256 | 4132ecc016c6dc5881aca6d61c78772d1d1234a2cff6a36a7ba0d49022f5c2c2 |