No project description provided
Project description
PyParous
Easily perform arithmetic for gestational and fetal ages used in OBGYN.
View Demo · Documentation · Report Bug · Request Feature
Table of Contents
Getting Started
Prerequisites
There are no required prerequisites! It only uses built-in Python methods.
Installation
Installation is recommended through the pip command.
pip install pyparous
Usage
The PyParous project relies on the "age" object. The age object takes in a single float value representing the weeks and days the patient is currently pregnant. For example, a patient who is 39 weeks and 4 days age will be declared as follows:
from pyparous import age
>>>myAge = age(39.4)
>>>print(myAge)
>>>age('39.4')
The age object only takes positive float values. Furthermore, the decimal portion my be a value of 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, or 0.6 to properly represent the number of days.
After declaring an object, you are able to perform arithmetic operations of addition and subtraction.
from pyparous import age
>>>A = age(39.4)
>>>B = age(1.1)
>>>print(A + B)
>>>age('40.5')
>>>print(A - B)
>>>age('38.3')
Roadmap
- Complete age definition and basic arithmetic
- Perform age calculations based on a certain day or due date.
Contributing
Code of Conduct
Please read the Code of Conduct
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Duncan Salmon - drsalmon@tamu.edu
Project Link: https://github.com/thesalmonification/pyparous
Acknowledgements
Use this section to mention useful resources and libraries that you have used in your projects.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyparous-0.4.tar.gz.
File metadata
- Download URL: pyparous-0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99c6b07781963b939f79751e1687f96f9e0b4174e83e9262404506cdccf2d4ae
|
|
| MD5 |
40075be1bb5985d0adb96025fc485aff
|
|
| BLAKE2b-256 |
9eccee1013435f12d8bc9267f772480a969c322879e89af9ead45aae672c75bb
|
Provenance
The following attestation bundles were made for pyparous-0.4.tar.gz:
Publisher:
python-publish.yml on thesalmonification/PyParous
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyparous-0.4.tar.gz -
Subject digest:
99c6b07781963b939f79751e1687f96f9e0b4174e83e9262404506cdccf2d4ae - Sigstore transparency entry: 155836300
- Sigstore integration time:
-
Permalink:
thesalmonification/PyParous@22cac94062721fa2d261b0fde451971c816df3fd -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/thesalmonification
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22cac94062721fa2d261b0fde451971c816df3fd -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyparous-0.4-py3-none-any.whl.
File metadata
- Download URL: pyparous-0.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11270bb14370ec5c9f72e4b2bace33050842e2992d5e40cd390118672505f8eb
|
|
| MD5 |
5497cd8a40fb7e5f1eee8b648a49e94c
|
|
| BLAKE2b-256 |
19769fd36cde208b03b67c61858adbaab75af3f647ddc48b85e74727eb4144ae
|
Provenance
The following attestation bundles were made for pyparous-0.4-py3-none-any.whl:
Publisher:
python-publish.yml on thesalmonification/PyParous
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyparous-0.4-py3-none-any.whl -
Subject digest:
11270bb14370ec5c9f72e4b2bace33050842e2992d5e40cd390118672505f8eb - Sigstore transparency entry: 155836302
- Sigstore integration time:
-
Permalink:
thesalmonification/PyParous@22cac94062721fa2d261b0fde451971c816df3fd -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/thesalmonification
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22cac94062721fa2d261b0fde451971c816df3fd -
Trigger Event:
release
-
Statement type: