Skip to main content

No project description provided

Project description

PyParous

Easily perform arithmetic for gestational and fetal ages used in OBGYN.

contributors last update forks stars open issues license

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyparous-0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyparous-0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for pyparous-0.4.tar.gz
Algorithm Hash digest
SHA256 99c6b07781963b939f79751e1687f96f9e0b4174e83e9262404506cdccf2d4ae
MD5 40075be1bb5985d0adb96025fc485aff
BLAKE2b-256 9eccee1013435f12d8bc9267f772480a969c322879e89af9ead45aae672c75bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyparous-0.4.tar.gz:

Publisher: python-publish.yml on thesalmonification/PyParous

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyparous-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11270bb14370ec5c9f72e4b2bace33050842e2992d5e40cd390118672505f8eb
MD5 5497cd8a40fb7e5f1eee8b648a49e94c
BLAKE2b-256 19769fd36cde208b03b67c61858adbaab75af3f647ddc48b85e74727eb4144ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyparous-0.4-py3-none-any.whl:

Publisher: python-publish.yml on thesalmonification/PyParous

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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