Skip to main content

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.

Metadata

Release files for pyascvd 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyascvd 0.1.0
File Size Uploaded
pyascvd-0.1.0.tar.gz 10.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyascvd 0.1.0
File
pyascvd-0.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.7 PyPy 3.7 7.3 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
pyascvd-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
pyascvd-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
pyascvd-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
pyascvd-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details
pyascvd-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
pyascvd-0.1.0-cp37-cp37m-macosx_11_0_arm64.whl CPython 3.7 CPython 3.7 pymalloc macOS 11.0+ ARM64 Details

Total release size: 11.4 MB

Release files / pyascvd-0.1.0.tar.gz

Download URL pyascvd-0.1.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7ffe0167ab679e3747566e72e7c30ac4734edda6d2d90f18d206b149b78987d9
BLAKE2b-256 checksum
How to use checksums
f198009384aff7c031e9916643e3f5de0998351172b5a3b0b986def9dc965094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
d9e172387a5a97bcd237d9889be1981deb2f42af9008ab0caec82b8973d08939
BLAKE2b-256 checksum
How to use checksums
8a5c3bb861fcccbcf43e1e1e3f7aad065736a686b910d1bfe516c12a47fcbce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3
SHA-256 checksum
How to use checksums
21843ae54def4b995773ed0d225292ab97ff9b73acfa3ccff8e7650f14d74a1c
BLAKE2b-256 checksum
How to use checksums
b083a9d8abb9c032c7d40a8bd9ccbfc176fb6b4169a1a03fc394608d0c7d32b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
35356fdbf2a2590cdc26deab84fefc390bd4f895b811bee7328a31123d81fb29
BLAKE2b-256 checksum
How to use checksums
99a2683eaeaadc84f8e806e80e12073412b7545db9a999ae6c6de726bdfbcf37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Size 317.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bcdded5ce580c251e73396dd5e16349d82b7f61415dbadb350fe245b1ee02b52
BLAKE2b-256 checksum
How to use checksums
49e3973212c951bec19ad60668bab6f633700fc3b3f938075091be7eb38d9e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
11a9527f9f7ef4c619c6569c324cb17c8bf8fa68efccb536e0eff4c687a02c83
BLAKE2b-256 checksum
How to use checksums
745fcb309107c23cd170148374d792aec2045958ec38b9d78eca3d706bd01147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Size 320.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5dcc460629981fcb5a54a5f7519960741a6070f38132f97fb9b56d9bacb365fa
BLAKE2b-256 checksum
How to use checksums
17eb59799170cee5e189fbbbfca7f18cdc68a6fc61a92c64aa7a013285e01d34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
bc5b13ba82ae23410a1fe9d26b5a840431469153cf8d5bf901695c47ca402f72
BLAKE2b-256 checksum
How to use checksums
56de663a66053df034547ae513430d856c0c83ffdcc370e66061a3464ebfa3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Size 321.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf6066ea54c54ab539335c264a8962577ce519369df6bf3e4e67b5c88ae31c2b
BLAKE2b-256 checksum
How to use checksums
92e260a58bd42bfbf818a4edb51a2cf637f2ea879d9f1936b62c7dc422a75308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
73a3edab9a40727b3b819748ac76c076ecd7ea6486a27cb922cac635e1f31347
BLAKE2b-256 checksum
How to use checksums
a8b7f36379a01eaf5f3d431974945d0b410b05b6e6e36f5f1796b7e9c8e4ef9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Size 321.1 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
93c8aa6a2bf09229132e39ebf9ecea6b3d1aca1dffb7c9011be301b291a7f1a6
BLAKE2b-256 checksum
How to use checksums
1244cf7dc0e917b7b22fb921a0004c77eca8c7344be3257c24f32d104a992021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
389eb8d58a2f1fcf1977e9be30b0f2c1eaade43aa6b74047f2bf26992f02c99a
BLAKE2b-256 checksum
How to use checksums
741172bdf11836121b1f55bc17e6950c66fa5a219c8c76d284d7755f03eeab5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp38-cp38-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp38-cp38-macosx_11_0_arm64.whl
Size 319.9 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
af49d2935d3a8b8407a0b1b681b9b6832e0b4b5600e92d9ca99c027870256db0
BLAKE2b-256 checksum
How to use checksums
17dad096cd5431463b6298c0f7cccc7fbac3b80ac15131686ef1d803aa6ce1c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyascvd-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8462700b81405e8d2b3e5c3e02fafbbde27a48df287808f7fb335f764a6807ea
BLAKE2b-256 checksum
How to use checksums
7b3d877f90a359ce3438f9cf0aa71146df974a2412449bbed0a9c72cf72ae573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / pyascvd-0.1.0-cp37-cp37m-macosx_11_0_arm64.whl

Download URL pyascvd-0.1.0-cp37-cp37m-macosx_11_0_arm64.whl
Size 320.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e9c32ea785cb8ee6f86514d49e265cde0813381ec029284f2a3ccf44fc201099
BLAKE2b-256 checksum
How to use checksums
4132ecc016c6dc5881aca6d61c78772d1d1234a2cff6a36a7ba0d49022f5c2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

15 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page