Skip to main content

Convert blood glucose levels between mmol/l and mg/dl.

Project description

Travis Codacy Maintained Python MIT Open Source

A blood sugar conversion tool

Python 3 utility for converting plasma glucose (“blood sugar”) units using argument parsing.

Convert:

  • milligram per decileter to millimole per liter (mg/dl to mmol/l), or

  • millimole per liter to milligram per decileter (mmol/l to mg/dl),

and receive a table of the conversion, e.g:

mg/dl

mmol/l

70.0000

3.8850

71.0000

3.9405

72.0000

3.9960

73.0000

4.0515

74.0000

4.1070

Requirements

None.

Usage

Synopsis:

[-h] [--mg-to-mmol MG_TO_MMOL [MG_TO_MMOL ...] | --mmol-to-mg MMOL_TO_MG [MMOL_TO_MG ...]]

Examples

Single conversion:

python3 gluctool.py --mmol-to-mg 4.0515

Multiple conversions:

python3 gluctool.py --mg-to-mmol 7{0..9}

Change Log

CHANGELOG

License

LICENSE

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

gluctool-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

gluctool-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file gluctool-0.0.2.tar.gz.

File metadata

  • Download URL: gluctool-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gluctool-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cdf19f702e0e63970d35f3cf5e2302029667dc3e65afbf5e709bed08478d5a1d
MD5 cc63f891942621eb803a088d60450e33
BLAKE2b-256 465353f39953b88b551c3b40b16fa8783be6a24215f21639d03affe17eec539c

See more details on using hashes here.

File details

Details for the file gluctool-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gluctool-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gluctool-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8a668529c38a95fe57144b726a0574e2532b3ed4bbd5d9a552fe4f22640770d
MD5 1e2c48343d6f72a61e02843d4f717d7f
BLAKE2b-256 e12138a98b784f5ec1fdaf4f92207ffffac4eb8451b265d0a020e83e804236e4

See more details on using hashes here.

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